Skip to content

Commit

Permalink
Fix logic issues with external and create flags to actually do the ri…
Browse files Browse the repository at this point in the history
…ght thing (#48)
  • Loading branch information
rocktavious authored Dec 4, 2024
1 parent 5194247 commit 19168ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions charts/opslevel/templates/elasticsearch/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if eq .Values.elasticsearch.external false }}
{{- if .Values.elasticsearch.secret.create }}
apiVersion: v1
kind: Secret
Expand All @@ -10,5 +9,4 @@ metadata:
type: Opaque
data:
ELASTIC_PASSWORD: '{{ .Values.elasticsearch.secret.password | b64enc }}'
{{- end }}
{{- end }}
2 changes: 0 additions & 2 deletions charts/opslevel/templates/postgres/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if eq .Values.postgres.external false }}
{{- if .Values.postgres.secret.create }}
apiVersion: v1
kind: Secret
Expand All @@ -12,5 +11,4 @@ data:
POSTGRES_PASSWORD: '{{ .Values.postgres.secret.password | b64enc }}'
POSTGRES_USER: '{{ .Values.postgres.secret.username | b64enc }}'
POSTGRES_DB: '{{ .Values.postgres.secret.databaseName | b64enc }}'
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/opslevel/templates/redis/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.redis.secret.create }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -11,4 +12,5 @@ data:
REDIS_HOST: '{{ .Values.redis.secret.host | b64enc }}'
REDIS_PORT: '{{ .Values.redis.secret.port | b64enc }}'
REDIS_USERNAME: '{{ .Values.redis.secret.username | b64enc }}'
REDIS_PASSWORD: '{{ .Values.redis.secret.password | b64enc }}'
REDIS_PASSWORD: '{{ .Values.redis.secret.password | b64enc }}'
{{- end }}

0 comments on commit 19168ae

Please sign in to comment.