Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit b1a7897

Browse files
committed
add enabled to service
1 parent e041bb4 commit b1a7897

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/onechart/templates/service.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if or (not (and (hasKey .Values "service") (hasKey .Values.service "enabled"))) .Values.service.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -84,3 +85,4 @@ spec:
8485
{{- end }}
8586
selector:
8687
{{- include "helm-chart.selectorLabels" . | nindent 4 }}
88+
{{- end }}

charts/onechart/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,6 @@ monitor:
8080

8181
container: {}
8282
podSpec: {}
83+
84+
service:
85+
enabled: false

0 commit comments

Comments
 (0)