diff --git a/chart/templates/traefikproxy/configmap.yaml b/chart/templates/traefikproxy/configmap.yaml index a63a0501..f3b31de6 100644 --- a/chart/templates/traefikproxy/configmap.yaml +++ b/chart/templates/traefikproxy/configmap.yaml @@ -1,3 +1,4 @@ +{{- if .Values.traefikproxy.enabled -}} apiVersion: v1 kind: ConfigMap metadata: @@ -52,4 +53,5 @@ data: phantomtest-auth: loadBalancer: servers: - - url: http://phantomtest-auth.phantomtest.svc.cluster.local:8080/ \ No newline at end of file + - url: http://phantomtest-auth.phantomtest.svc.cluster.local:8080/ +{{- end }} \ No newline at end of file diff --git a/chart/templates/traefikproxy/deployment.yaml b/chart/templates/traefikproxy/deployment.yaml index f5543297..e862e9f4 100644 --- a/chart/templates/traefikproxy/deployment.yaml +++ b/chart/templates/traefikproxy/deployment.yaml @@ -1,3 +1,4 @@ +{{- if .Values.traefikproxy.enabled -}} apiVersion: apps/v1 kind: Deployment metadata: @@ -101,3 +102,4 @@ spec: {{- with .Values.traefikproxy.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} +{{- end }} \ No newline at end of file diff --git a/chart/templates/traefikproxy/service.yaml b/chart/templates/traefikproxy/service.yaml index 6737a5a1..fb7491f9 100644 --- a/chart/templates/traefikproxy/service.yaml +++ b/chart/templates/traefikproxy/service.yaml @@ -1,3 +1,4 @@ +{{- if .Values.traefikproxy.enabled -}} apiVersion: v1 kind: Service metadata: @@ -26,3 +27,4 @@ spec: name: websecure selector: {{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.traefikproxy.name) | nindent 4 }} +{{- end }} \ No newline at end of file diff --git a/chart/templates/traefikproxy/serviceaccount.yaml b/chart/templates/traefikproxy/serviceaccount.yaml index 5ae35f9b..0c2b5be3 100644 --- a/chart/templates/traefikproxy/serviceaccount.yaml +++ b/chart/templates/traefikproxy/serviceaccount.yaml @@ -1,3 +1,4 @@ +{{- if .Values.traefikproxy.enabled -}} {{- if .Values.traefikproxy.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount @@ -11,3 +12,4 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} +{{- end }} \ No newline at end of file