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: [TKC-2622] container env var #946

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions charts/testkube-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ A Helm chart for Testkube api
| cloud.url | string | `"agent.testkube.io:443"` | |
| clusterName | string | `""` | |
| configValues | string | `""` | |
| containerEnv | string | `""` | |
| containerResources | object | `{}` | |
| dashboardUri | string | `""` | |
| defaultStorageClassName | string | `""` | Whether to generate RBAC for test job or use manually provided generateTestJobRBAC: true # default storage class name for PVC volumes |
Expand Down
4 changes: 4 additions & 0 deletions charts/testkube-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ spec:
value: "{{ .Values.global.features.whitelistedContainers }}"
- name: TESTKUBE_IMAGE_CREDENTIALS_CACHE_TTL
value: "{{ .Values.imageInspectionCache.ttl }}"
{{- if .Values.containerEnv }}
- name: TESTKUBE_CONTAINER_ENV
value: "{{ .Values.containerEnv }}"
{{- end }}
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 @@ -266,6 +266,9 @@ storageRequest: "1Gi"
## enable k8s events for testkube events
enableK8sEvents: true

## container environment used to run Testkube Agent, by default it's "kubernetes"
containerEnv: ""

# Testkube log server parameters
testkubeLogs:
# -- GRPC address
Expand Down
1 change: 1 addition & 0 deletions charts/testkube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ kubectl label --overwrite crds scripts.tests.testkube.io app.kubernetes.io/manag
| testkube-api.cloud.url | string | `"agent.testkube.io:443"` | Testkube Cloud API URL |
| testkube-api.clusterName | string | `""` | cluster name to be used in events |
| testkube-api.containerResources | object | `{}` | |
| testkube-api.containerEnv | string | "" | container environment used to run Testkube Agent, by default it's "kubernetes" |
| testkube-api.dashboardUri | string | `""` | dashboard uri to be used in notification events |
| testkube-api.defaultStorageClassName | string | `""` | default storage class name for PVC volumes |
| testkube-api.disableSecretCreation | bool | `false` | disable secret creation for tests and test sources |
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 @@ -397,6 +397,7 @@ testkube-api:
disableSecretCreation: false
defaultStorageClassName: ""
enableK8sEvents: true
containerEnv: ""

testkubeLogs:
grpcAddress: "testkube-logs:9090"
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 @@ -342,6 +342,7 @@ testkube-api:
disableSecretCreation: false
defaultStorageClassName: ""
enableK8sEvents: true
containerEnv: ""

testkubeLogs:
grpcAddress: "testkube-logs:9090"
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 @@ -343,6 +343,7 @@ testkube-api:
disableSecretCreation: false
defaultStorageClassName: ""
enableK8sEvents: true
containerEnv: ""

priorityClassName: "highest-priority"

Expand Down
3 changes: 3 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ testkube-api:
# -- enable k8s events for testkube events
enableK8sEvents: true

# -- container environment used to run Testkube Agent, by default it's "kubernetes"
containerEnv: ""

# Testkube log server parameters
testkubeLogs:
# -- GRPC address
Expand Down