diff --git a/charts/service/Chart.yaml b/charts/service/Chart.yaml index 95954ce..3280025 100644 --- a/charts/service/Chart.yaml +++ b/charts/service/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: service description: A generic k8s service chart type: application -version: 1.4.0 +version: 1.5.0 maintainers: - email: devops@codecademy.com name: devops diff --git a/charts/service/ci/custom-values.yaml b/charts/service/ci/custom-values.yaml index 3f99564..a1044b0 100644 --- a/charts/service/ci/custom-values.yaml +++ b/charts/service/ci/custom-values.yaml @@ -21,6 +21,9 @@ image: - '-g' - 'daemon off;' +service: + enabled: false + ingress: enabled: true annotations: diff --git a/charts/service/templates/service.yaml b/charts/service/templates/service.yaml index 38de211..411c543 100644 --- a/charts/service/templates/service.yaml +++ b/charts/service/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if .Values.service.enabled -}} apiVersion: v1 kind: Service metadata: @@ -18,3 +19,4 @@ spec: {{- end }} selector: {{- include "service.selectorLabels" . | nindent 4 }} +{{- end }} diff --git a/charts/service/values.yaml b/charts/service/values.yaml index 2ee98f7..8b330ae 100644 --- a/charts/service/values.yaml +++ b/charts/service/values.yaml @@ -67,6 +67,7 @@ volumes: {} # Defaults to port 80 on service resources # DO NOT CHANGE, unless you absolutely need to service: + enabled: true type: ClusterIP port: 80