Skip to content

Commit

Permalink
feat: container env var
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Oct 1, 2024
1 parent e31d68d commit 9d019db
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
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

0 comments on commit 9d019db

Please sign in to comment.