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
kind: ConfigMap
metadata:
@ -53,3 +54,4 @@ data:
loadBalancer:
servers:
- url: http://phantomtest-auth.phantomtest.svc.cluster.local:8080/
{{- end }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}