Skip to content

Commit

Permalink
♻️ Refactoring code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorsk1 authored and at91mm committed Oct 19, 2023
1 parent 65dc03f commit d8572a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/openmetadata/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Warning to update openmetadata global keyword to openmetadata.config */}}
{{/*
OpenMetadata Configurations Environment Variables*/}}
{{- define "OpenMetadata.configs" -}}
{{- if .Values.openmetadata.config.fernetkey.secretRef -}}
{{- if .Values.openmetadata.config.fernetkey.secretRef }}
{{- with .Values.openmetadata.config.fernetkey -}}
- name: FERNET_KEY
valueFrom:
Expand Down Expand Up @@ -182,7 +182,7 @@ OpenMetadata Configurations Environment Variables*/}}
value: "{{ .Values.openmetadata.config.authentication.ldapConfiguration.port }}"
- name: AUTHENTICATION_LOOKUP_ADMIN_DN
value: "{{ .Values.openmetadata.config.authentication.ldapConfiguration.dnAdminPrincipal }}"
{{- if .Values.openmetadata.config.authentication.ldapConfiguration.dnAdminPassword.secretRef -}}
{{- if .Values.openmetadata.config.authentication.ldapConfiguration.dnAdminPassword.secretRef }}
{{- with .Values.openmetadata.config.authentication.ldapConfiguration.dnAdminPassword }}
- name: AUTHENTICATION_LOOKUP_ADMIN_PWD
valueFrom:
Expand Down Expand Up @@ -407,7 +407,7 @@ OpenMetadata Configurations Environment Variables*/}}
{{- if .Values.openmetadata.config.secretsManager.additionalParameters.enabled }}
- name: OM_SM_REGION
value: "{{ .Values.openmetadata.config.secretsManager.additionalParameters.region }}"
{{- if .Values.openmetadata.config.secretsManager.additionalParameters.accessKeyId.secretRef -}}
{{- if .Values.openmetadata.config.secretsManager.additionalParameters.accessKeyId.secretRef }}
{{- with .Values.openmetadata.config.secretsManager.additionalParameters.accessKeyId }}
- name: OM_SM_ACCESS_KEY_ID
valueFrom:
Expand All @@ -416,7 +416,7 @@ OpenMetadata Configurations Environment Variables*/}}
key: {{ .secretKey }}
{{- end }}
{{- end }}
{{- if .Values.openmetadata.config.secretsManager.additionalParameters.secretAccessKey.secretRef -}}
{{- if .Values.openmetadata.config.secretsManager.additionalParameters.secretAccessKey.secretRef }}
{{- with .Values.openmetadata.config.secretsManager.additionalParameters.secretAccessKey }}
- name: OM_SM_ACCESS_KEY
valueFrom:
Expand Down

0 comments on commit d8572a5

Please sign in to comment.