Skip to content

Commit

Permalink
feat: add onpremises upgrade path from 1.30.0 to 1.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nutellinoit authored and kriive committed Dec 18, 2024
1 parent 86485de commit a142e26
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions configs/upgrades/onpremises/1.30.0-1.31.0/pre-kubernetes.sh.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh

set -e

{{- if index .spec "kubernetes" }}

## master upgrades - only one at a time
{{- range $h := .spec.kubernetes.masters.hosts }}
ansible-playbook 55.upgrade-control-plane.yml --limit "{{ $h.name }}" --become
{{- end }}

{{- if ne .upgrade.skipNodesUpgrade true }}
{{- range $n := .spec.kubernetes.nodes }}
{{- range $h := $n.hosts }}
ansible-playbook 56.upgrade-worker-nodes.yml --limit "{{ $h.name }}"
{{- end }}
{{- end }}
{{- end }}

{{- end }}

0 comments on commit a142e26

Please sign in to comment.