Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tyu0912 committed Dec 16, 2024
1 parent 3e2fa5b commit be8490c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions charts/datalayer-iam/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ spec:
ports:
- containerPort: {{ .Values.iam.port }}
protocol: TCP
{{- if or .Values.iam.env .Values.iam.envValueFrom }}
{{- if .Values.iam.env }}
env:
{{- range $key, $value := .Values.iam.envValueFrom }}
- name: {{ $key }}
valueFrom: {{- $value | toYaml | nindent 16 }}
{{- end }}
{{- range $key, $value := .Values.iam.env }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else }}
valueFrom: {{- $value | toYaml | nindent 16}}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.iam.resources }}
Expand Down
10 changes: 5 additions & 5 deletions charts/datalayer-jupyter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ spec:
ports:
- containerPort: {{ .Values.jupyter.port }}
protocol: TCP
{{- if or .Values.jupyter.env .Values.jupyter.envValueFrom }}
{{- if .Values.jupyter.env }}
env:
{{- range $key, $value := .Values.jupyter.envValueFrom }}
- name: {{ $key }}
valueFrom: {{- $value | toYaml | nindent 16 }}
{{- end }}
{{- range $key, $value := .Values.jupyter.env }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else }}
valueFrom: {{- $value | toYaml | nindent 16}}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.jupyter.resources }}
Expand Down
10 changes: 5 additions & 5 deletions charts/datalayer-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ spec:
ports:
- containerPort: {{ .Values.operator.port }}
protocol: TCP
{{- if or .Values.operator.sharedFsPVC .Values.operator.env .Values.operator.envValueFrom }}
{{- if or .Values.operator.sharedFsPVC .Values.operator.env }}
env:
{{- if .Values.operator.sharedFsPVC }}
- name: 'DATALAYER_USERS_VOLUME_CLAIM_NAME'
value: {{ .Values.operator.sharedFsPVC }}
{{- end }}
{{- range $key, $value := .Values.operator.envValueFrom }}
- name: {{ $key }}
valueFrom: {{- $value | toYaml | nindent 16 }}
{{- end }}
{{- range $key, $value := .Values.operator.env }}
- name: {{ $key }}
{{- if kindIs "string" $value }}
value: {{ $value | quote }}
{{- else }}
valueFrom: {{- $value | toYaml | nindent 16}}
{{- end }}
{{- end }}
{{- end }}
readinessProbe:
Expand Down

0 comments on commit be8490c

Please sign in to comment.