From f36de85c15fb8e09fb9c52d6871d7da96b1b4184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Sch=C3=B6rgers?= Date: Fri, 6 Nov 2020 20:28:01 +0100 Subject: [PATCH] [common] Better defaults for service and ingress (#111) --- charts/common/Chart.yaml | 2 +- charts/common/templates/_service.tpl | 4 +++- charts/common/values.yaml | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 03cf74d6..c6f7d72e 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: common description: Function library for k8s-at-home charts type: library -version: 1.0.0 +version: 1.0.1 keywords: - k8s-at-home - common diff --git a/charts/common/templates/_service.tpl b/charts/common/templates/_service.tpl index ad5b4201..cc0fbeef 100644 --- a/charts/common/templates/_service.tpl +++ b/charts/common/templates/_service.tpl @@ -1,3 +1,5 @@ {{- define "common.service" -}} - {{- include "common.classes.service" . }} + {{- if .Values.service.enabled -}} + {{- include "common.classes.service" . }} + {{- end }} {{- end }} diff --git a/charts/common/values.yaml b/charts/common/values.yaml index 77727a4f..c24ef155 100644 --- a/charts/common/values.yaml +++ b/charts/common/values.yaml @@ -26,7 +26,9 @@ probes: periodSeconds: 10 service: + enabled: true type: ClusterIP + # Specify the default port information port: portNumber: "" name: http @@ -46,7 +48,7 @@ service: labels: {} ingress: - enabled: true + enabled: false annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" @@ -81,7 +83,7 @@ ingress: persistence: config: - enabled: true + enabled: false mountPath: /config ## configuration data Persistent Volume Storage Class ## If defined, storageClassName: