Skip to content

Commit

Permalink
fix: env var + bump iam version
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Dec 17, 2024
1 parent 998f427 commit 947e7d7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion charts/datalayer-iam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ For full documentation please checkout [Datalayer Tech](https://datalayer.tech).
| iam.env.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT | string | `""` | |
| iam.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | string | `""` | |
| iam.env.OTEL_SDK_DISABLED | string | `"false"` | |
| iam.image | string | `"datalayer/iam:1.0.5"` | |
| iam.image | string | `"datalayer/iam:1.0.6"` | |
| iam.imagePullPolicy | string | `"Always"` | |
| iam.ingressClass | string | `"datalayer-traefik"` | |
| iam.port | int | `9700` | |
Expand Down
6 changes: 2 additions & 4 deletions charts/datalayer-iam/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ spec:
env:
{{- range $key, $value := .Values.iam.env }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else if kindIs "map" $value }}
{{- if kindIs "map" $value }}
valueFrom: {{- $value | toYaml | nindent 16}}
{{- else }}
{{- fail "Env value must be either string or map with key secretKeyRef or configMapKeyRef" }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/datalayer-iam/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ tests:
value: ""
- name: OTEL_SDK_DISABLED
value: "false"
image: datalayer/iam:1.0.5
image: datalayer/iam:1.0.6
imagePullPolicy: Always
name: iam
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/datalayer-iam/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
iam:
image: datalayer/iam:1.0.5
image: datalayer/iam:1.0.6
imagePullPolicy: Always
port: 9700
sidecar:
Expand Down
6 changes: 2 additions & 4 deletions charts/datalayer-jupyter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ spec:
env:
{{- range $key, $value := .Values.jupyter.env }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else if kindIs "map" $value }}
{{- if kindIs "map" $value }}
valueFrom: {{- $value | toYaml | nindent 16}}
{{- else }}
{{- fail "Env value must be either string or map with key secretKeyRef or configMapKeyRef" }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
6 changes: 2 additions & 4 deletions charts/datalayer-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ spec:
{{- end }}
{{- range $key, $value := .Values.operator.env }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else if kindIs "map" $value }}
{{- if kindIs "map" $value }}
valueFrom: {{- $value | toYaml | nindent 16}}
{{- else }}
{{- fail "Env value must be either string or map with key secretKeyRef or configMapKeyRef" }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 947e7d7

Please sign in to comment.