[common] Allow setting strategy and replicas (#142)

This commit is contained in:
Bernd Schörgers 2020-11-11 22:09:17 +01:00 committed by GitHub
parent e3420259d5
commit e54addcc77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 8 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: common
description: Function library for k8s-at-home charts
type: library
version: 1.2.0
version: 1.3.0
keywords:
- k8s-at-home
- common

View File

@ -13,7 +13,11 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.replicas }}
{{- with .Values.strategy }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}

View File

@ -13,7 +13,11 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.replicas }}
{{- with .Values.strategy }}
updateStrategy:
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}

View File

@ -5,6 +5,12 @@ controllerAnnotations: {}
# Set labels on the deployment/statefulset
controllerLabels: {}
replicas: 1
strategy:
## For Deployments, valid values are Recreate and RollingUpdate
## For StatefulSets, valid values are OnDelete and RollingUpdate
type: RollingUpdate
# Set annotations on the pod
podAnnotations: {}