add conditional enable

This commit is contained in:
Arlan Lloyd 2025-04-10 20:11:55 +00:00 committed by Zoe Roux
parent 594e0233ca
commit cfafe12c82
No known key found for this signature in database
4 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,4 @@
{{- if .Values.traefikproxy.enabled -}}
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@ -52,4 +53,5 @@ data:
phantomtest-auth: phantomtest-auth:
loadBalancer: loadBalancer:
servers: servers:
- url: http://phantomtest-auth.phantomtest.svc.cluster.local:8080/ - url: http://phantomtest-auth.phantomtest.svc.cluster.local:8080/
{{- end }}

View File

@ -1,3 +1,4 @@
{{- if .Values.traefikproxy.enabled -}}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -101,3 +102,4 @@ spec:
{{- with .Values.traefikproxy.extraVolumes }} {{- with .Values.traefikproxy.extraVolumes }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- end }}

View File

@ -1,3 +1,4 @@
{{- if .Values.traefikproxy.enabled -}}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -26,3 +27,4 @@ spec:
name: websecure name: websecure
selector: selector:
{{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.traefikproxy.name) | nindent 4 }} {{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.traefikproxy.name) | nindent 4 }}
{{- end }}

View File

@ -1,3 +1,4 @@
{{- if .Values.traefikproxy.enabled -}}
{{- if .Values.traefikproxy.serviceAccount.create -}} {{- if .Values.traefikproxy.serviceAccount.create -}}
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
@ -11,3 +12,4 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}