helm enable resource for template (#5268)

enable resource for template
This commit is contained in:
cuisongliu
2024-01-31 12:54:50 +08:00
committed by GitHub
parent f8c4fb3ebd
commit 9abd3a90c3
12 changed files with 30 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
{{- if or .Values.s3.enabled .Values.filer.s3.enabled }}
apiVersion: v1
kind: Service
metadata:
@@ -30,3 +31,4 @@ spec:
selector:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
app.kubernetes.io/component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}
{{- end }}