Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
[TT-10152] Create resources only if deployment of corresponding compo…
Browse files Browse the repository at this point in the history
…nent is enabled (#298)

* Create dashboard secret only if it's enabled

* Create cert secret only if tls is enabled
  • Loading branch information
komalsukhani authored Dec 21, 2023
1 parent 59e1665 commit c04dc2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tyk-pro/templates/secret-certs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if or ( and .Values.gateway.enabled .Values.gateway.tls) ( and .Values.mdcb.enabled .Values.mdcb.tls )}}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -13,3 +14,4 @@ data:
{{ .Files.Get "certs/cert.pem" | b64enc }}
key.pem: |-
{{ .Files.Get "certs/key.pem" | b64enc }}
{{ end }}
4 changes: 3 additions & 1 deletion tyk-pro/templates/secret-dashboard.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.dash.enabled }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -13,4 +14,5 @@ data:
TYK_PASS: {{ .Values.dash.adminUser.password | b64enc | quote }}
{{ else }}
TYK_PASS: {{ randAlphaNum 10 | b64enc | quote }}
{{ end }}
{{ end }}
{{- end }}

0 comments on commit c04dc2a

Please sign in to comment.