Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cluster name parameter #559

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions charts/testkube-api/slack-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@
{
"type": "divider"
},
{{ if .ClusterName }}
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Cluster Name: {{ .ClusterName }}"
}
},
{{ end }}
{
"type": "section",
"text": {
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ spec:
- name: CDEVENTS_TARGET
value: "{{ .Values.cdeventsTarget }}"
- name: TESTKUBE_DASHBOARD_URI
value: "{{ .Values.dashboardUri }}"
value: "{{ .Values.dashboardUri }}"
- name: TESTKUBE_CLUSTER_NAME
value: "{{ .Values.clusterName }}"
image: {{ include "testkube-api.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ cdeventsTarget: ""
## dashboard uri to be used in notification events
dashboardUri: ""

## cluster name to be used in events
clusterName: ""

## Testkube API resource requests and limits
resources:
{}
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ kubectl label --overwrite crds scripts.tests.testkube.io app.kubernetes.io/manag
| testkube-api.cloud.key | string | `""` | Testkube Clouc License Key (for Environment) |
| testkube-api.cloud.url | string | `"agent.testkube.io:443"` | Testkube Cloud API URL |
| testkube-api.dashboardUri | string | `""` | dashboard uri to be used in notification events |
| testkube-api.clusterNme | string | `""` | cluster name to be used in events |
vsukhin marked this conversation as resolved.
Show resolved Hide resolved
| testkube-api.executors | string | `""` | default executors as base64-encoded string |
| testkube-api.extraEnvVars | list | `[]` | Extra environment variables to be set on deployment |
| testkube-api.fullnameOverride | string | `"testkube-api-server"` | Testkube API fullname override |
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ testkube-api:
executors: ""
cdeventsTarget: ""
dashboardUri: ""
clusterName: ""

##Test Connection pod
testConnection:
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ testkube-api:
executors: ""
cdeventsTarget: ""
dashboardUri: ""
clusterName: ""

##Test Connection pod
testConnection:
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ testkube-api:
executors: ""
cdeventsTarget: ""
dashboardUri: ""
clusterName: ""

##Test Connection pod
testConnection:
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ testkube-api:
# https://webhook.site/#!/f99d020e-8815-4bed-963c-1ed7c54a0d0c
cdeventsTarget: "https://webhook.site/f99d020e-8815-4bed-963c-1ed7c54a0d0c"
dashboardUri: ""
clusterName: ""

##Test Connection pod
testConnection:
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ testkube-api:
cdeventsTarget: ""
## dashboard uri to be used in notification events
dashboardUri: ""
## cluster name to be used in events
clusterName: ""

# Test Connection pod
testConnection:
Expand Down