Skip to content

Commit

Permalink
simplified logic if existing secret exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Stiefel committed Aug 5, 2024
1 parent e9de414 commit a8b1351
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions charts/greptimedb-cluster/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{- if .Values.objectStorage }}
{{- if .Values.objectStorage.credentials }}
{{- if .Values.objectStorage.credentials.existingSecretName }}
{{- else }}
{{- if not .Values.objectStorage.credentials.existingSecretName }}
apiVersion: v1
metadata:
name: {{ default "storage-credentials" .Values.objectStorage.credentials.secretName }}
Expand Down

0 comments on commit a8b1351

Please sign in to comment.