From 6d05ca2b45e44405782a265a54d0d5c2072349b8 Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Thu, 20 Aug 2020 08:19:26 +0200 Subject: [PATCH] enable service by default --- charts/cups-airprint/Chart.yaml | 2 +- charts/cups-airprint/templates/service.yaml | 2 ++ charts/cups-airprint/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/cups-airprint/Chart.yaml b/charts/cups-airprint/Chart.yaml index 3e290d1..5d93062 100644 --- a/charts/cups-airprint/Chart.yaml +++ b/charts/cups-airprint/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.2 +version: 0.1.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/cups-airprint/templates/service.yaml b/charts/cups-airprint/templates/service.yaml index 45ae4c4..bd4f017 100644 --- a/charts/cups-airprint/templates/service.yaml +++ b/charts/cups-airprint/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if .Values.service.enabled -}} apiVersion: v1 kind: Service metadata: @@ -13,3 +14,4 @@ spec: name: http selector: {{- include "cups-airprint.selectorLabels" . | nindent 4 }} +{{- end }} diff --git a/charts/cups-airprint/values.yaml b/charts/cups-airprint/values.yaml index 3796725..a1e23a3 100644 --- a/charts/cups-airprint/values.yaml +++ b/charts/cups-airprint/values.yaml @@ -40,6 +40,7 @@ securityContext: {} # runAsUser: 1000 service: + enabled: false type: ClusterIP port: 631