Skip to content

Commit

Permalink
update deployment.yaml template as per updated secrets.yaml template
Browse files Browse the repository at this point in the history
  • Loading branch information
preetsshah committed Dec 6, 2023
1 parent eeb2e32 commit 5f55ce6
Showing 1 changed file with 40 additions and 12 deletions.
52 changes: 40 additions & 12 deletions charts/openmetadata/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,38 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-config-secret
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-omd-secret
{{- if .Values.openmetadata.config.database.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-db-secret
{{- end }}
{{- if .Values.openmetadata.config.elasticsearch.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-search-secret
{{- end }}
{{- if .Values.openmetadata.config.authorizer.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-authorizer-secret
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-omd-secret
{{- end }}
{{- if .Values.openmetadata.config.secretsManager.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-secretsmanager-secret
{{- end }}
{{- if .Values.openmetadata.config.web.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-web-secret
{{- end }}
{{- if .Values.openmetadata.config.authentication.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-authentication-secret
{{- end }}
{{- if .Values.openmetadata.config.eventMonitor.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-eventmonitor-secret
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-config-secret
{{- end }}
{{- if .Values.openmetadata.config.pipelineServiceClientConfig.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-pipeline-secret
Expand Down Expand Up @@ -116,25 +130,39 @@ spec:
{{- with .Values.extraEnvs }}
{{- toYaml . | nindent 10 }}
{{- end }}
envFrom:
envFrom:
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-config-secret
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-omd-secret
{{- if .Values.openmetadata.config.database.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-db-secret
{{- end }}
{{- if .Values.openmetadata.config.elasticsearch.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-search-secret
{{- end }}
{{- if .Values.openmetadata.config.authorizer.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-authorizer-secret
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-omd-secret
{{- end }}
{{- if .Values.openmetadata.config.secretsManager.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-secretsmanager-secret
{{- end }}
{{- if .Values.openmetadata.config.web.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-web-secret
{{- end }}
{{- if .Values.openmetadata.config.authentication.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-authentication-secret
{{- end }}
{{- if .Values.openmetadata.config.eventMonitor.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-eventmonitor-secret
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-config-secret
{{- end }}
{{- if .Values.openmetadata.config.pipelineServiceClientConfig.enabled }}
- secretRef:
name: {{ include "OpenMetadata.fullname" . }}-pipeline-secret
Expand All @@ -153,9 +181,9 @@ spec:
name: {{ include "OpenMetadata.fullname" $ }}-fernetkey-secret
{{- end }}
{{- end }}
{{- with .Values.envFrom }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.envFrom }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.sidecars }}
Expand Down

0 comments on commit 5f55ce6

Please sign in to comment.