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

View File

@@ -18,4 +18,4 @@ maintainers:
name: common
sources:
type: library
version: 6.1.1
version: 6.2.0

View File

@@ -12,15 +12,17 @@ Main entrypoint for the common library chart. It will render all underlying temp
{{- include "common.serviceAccount" . }}
{{- end -}}
{{- if eq .Values.controller.type "deployment" }}
{{- include "common.deployment" . | nindent 0 }}
{{ else if eq .Values.controller.type "daemonset" }}
{{- include "common.daemonset" . | nindent 0 }}
{{ else if eq .Values.controller.type "statefulset" }}
{{- include "common.statefulset" . | nindent 0 }}
{{ else }}
{{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) }}
{{- end -}}
{{- if .Values.controller.enabled }}
{{- if eq .Values.controller.type "deployment" }}
{{- include "common.deployment" . | nindent 0 }}
{{ else if eq .Values.controller.type "daemonset" }}
{{- include "common.daemonset" . | nindent 0 }}
{{ else if eq .Values.controller.type "statefulset" }}
{{- include "common.statefulset" . | nindent 0 }}
{{ else }}
{{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) }}
{{- end -}}
{{- end -}}
{{ include "common.classes.hpa" . | nindent 0 }}

View File

@@ -5,6 +5,8 @@ global:
fullnameOverride:
controller:
# -- enable the controller.
enabled: true
# -- Set the controller type.
# Valid options are deployment, daemonset or statefulset
type: deployment