Port some changes from KAH common 3.1.0 (#556)

This commit is contained in:
Kjeld Schouten-Lebbing
2021-06-14 11:24:24 +02:00
committed by GitHub
parent 3a9b6cc552
commit 614790c8cc
3 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ maintainers:
name: common name: common
sources: sources:
type: library type: library
version: 6.1.1 version: 6.2.0
+11 -9
View File
@@ -12,15 +12,17 @@ Main entrypoint for the common library chart. It will render all underlying temp
{{- include "common.serviceAccount" . }} {{- include "common.serviceAccount" . }}
{{- end -}} {{- end -}}
{{- if eq .Values.controller.type "deployment" }} {{- if .Values.controller.enabled }}
{{- include "common.deployment" . | nindent 0 }} {{- if eq .Values.controller.type "deployment" }}
{{ else if eq .Values.controller.type "daemonset" }} {{- include "common.deployment" . | nindent 0 }}
{{- include "common.daemonset" . | nindent 0 }} {{ else if eq .Values.controller.type "daemonset" }}
{{ else if eq .Values.controller.type "statefulset" }} {{- include "common.daemonset" . | nindent 0 }}
{{- include "common.statefulset" . | nindent 0 }} {{ else if eq .Values.controller.type "statefulset" }}
{{ else }} {{- include "common.statefulset" . | nindent 0 }}
{{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) }} {{ else }}
{{- end -}} {{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) }}
{{- end -}}
{{- end -}}
{{ include "common.classes.hpa" . | nindent 0 }} {{ include "common.classes.hpa" . | nindent 0 }}
+2
View File
@@ -5,6 +5,8 @@ global:
fullnameOverride: fullnameOverride:
controller: controller:
# -- enable the controller.
enabled: true
# -- Set the controller type. # -- Set the controller type.
# Valid options are deployment, daemonset or statefulset # Valid options are deployment, daemonset or statefulset
type: deployment type: deployment