Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion complex/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: complex
description: For deploying applications with consumers and cronjobs
type: application
version: 1.8.1
version: 1.8.2
kubeVersion: ">= 1.25.0-0 < 2.0.0-0"

dependencies:
Expand Down
5 changes: 5 additions & 0 deletions complex/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ metadata:
spec:
replicas: {{ $component.replicas }}
progressDeadlineSeconds: {{ default 300 $component.progressDeadlineSeconds }}
{{- if eq (default "RollingUpdate" $component.strategyType) "Recreate" }}
strategy:
type: Recreate
{{- else }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: {{ coalesce (index $component "rollingUpdate" | default dict).maxUnavailable $.Values.global.rollingUpdate.maxUnavailable | quote}}
maxSurge: {{ coalesce (index $component "rollingUpdate" | default dict).maxSurge $.Values.global.rollingUpdate.maxSurge | quote}}
{{- end }}
selector:
matchLabels:
{{ include "cookielab.kubernetes.labels.selector" $kubeLabels | indent 6 | trim }}
Expand Down
18 changes: 18 additions & 0 deletions complex/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,15 @@
"rollingUpdate": {
"$ref": "#/definitions/rollingUpdate"
},
"strategyType": {
"description": "Deployment strategy type. 'RollingUpdate' gradually replaces pods, 'Recreate' kills all existing pods before creating new ones.",
"type": "string",
"enum": [
"RollingUpdate",
"Recreate"
],
"default": "RollingUpdate"
},
"nodeSelector": {
"$ref": "#/definitions/nodeSelector"
},
Expand Down Expand Up @@ -3101,6 +3110,15 @@
"rollingUpdate": {
"$ref": "#/definitions/rollingUpdate"
},
"strategyType": {
"description": "Deployment strategy type. 'RollingUpdate' gradually replaces pods, 'Recreate' kills all existing pods before creating new ones.",
"type": "string",
"enum": [
"RollingUpdate",
"Recreate"
],
"default": "RollingUpdate"
},
"envs": {
"type": "object",
"properties": {
Expand Down