fix(odoo): handle existing secret for github personal access token
This commit is contained in:
1 file changed
+5
@@ -5,7 +5,12 @@ metadata:
|
||||
labels:
|
||||
app: odoo
|
||||
data:
|
||||
{{- $existingSecret := lookup "v1" "Secret" .Release.Namespace .Values.secretRef }}
|
||||
{{- if and $existingSecret (index $existingSecret.data GITHUB_PERSONAL_ACCESS_TOKEN) }}
|
||||
GITHUB_PERSONAL_ACCESS_TOKEN: {{ index $existingSecret.data GITHUB_PERSONAL_ACCESS_TOKEN }}
|
||||
{{- else }}
|
||||
GITHUB_PERSONAL_ACCESS_TOKEN: {{ .Values.githubPersonalAccessToken | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- if and .Values.postgresql.enabled (not (lookup "v1" "Secret" .Release.Namespace .Values.postgresql.auth.existingSecret)) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
Reference in new issue
Block a user