Skip to content

Commit

Permalink
feat(cf-common): extend external-secrets to allow dataFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko committed May 20, 2024
1 parent f5465a3 commit 2375ae9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions charts/cf-common/templates/classic/_env_var_secret_ref.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,24 @@ New secret implementation
{{- end }}
{{- end }}

{{- /*
MONGO_URI env var value
*/}}
{{- define "cf-common-0.18.2.classic.mongo-uri-archive-env-var-value" }}
{{- /*
Check for legacy global.mongoURI
*/}}
{{- if if or .Values.global.mongoURIArchive .Values.global.mongoURI }}
{{- print "$(MONGO_URI_ARCHIVE)" }}
{{- /*
New secret implementation
*/}}
{{- else }}
{{- print "$(MONGODB_PROTOCOL)://$(MONGODB_USER):$(MONGODB_PASSWORD)@$(MONGODB_HOST)/$(MONGODB_DATABASE_ARCHIVE)?$(MONGODB_OPTIONS)" }}
{{- end }}
{{- end }}


{{- /*
REDIS_URL env var secret name
*/}}
Expand Down

0 comments on commit 2375ae9

Please sign in to comment.