Skip to content

Commit

Permalink
feat: add fix to launch create playbook for haproxy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiodionisi committed Aug 28, 2024
1 parent 6c0edf9 commit 6f18b8f
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

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

## launch create playbook on haproxy nodes due to an update on the underlying role
ansible-playbook create-playbook.yaml --tags haproxy

## master upgrades - only one at a time
{{- range $h := .spec.kubernetes.masters.hosts }}
ansible-playbook 55.upgrade-control-plane.yml --limit "{{ $h.name }}" --become
Expand Down
10 changes: 10 additions & 0 deletions configs/upgrades/onpremises/1.27.6-1.27.7/pre-kubernetes.sh.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

set -e

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

## launch create playbook on haproxy nodes due to an update on the underlying role
ansible-playbook create-playbook.yaml --tags haproxy

{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

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

## launch create playbook on haproxy nodes due to an update on the underlying role
ansible-playbook create-playbook.yaml --tags haproxy

## master upgrades - only one at a time
{{- range $h := .spec.kubernetes.masters.hosts }}
ansible-playbook 55.upgrade-control-plane.yml --limit "{{ $h.name }}" --become
Expand Down
10 changes: 10 additions & 0 deletions configs/upgrades/onpremises/1.28.1-1.28.2/pre-kubernetes.sh.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

set -e

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

## launch create playbook on haproxy nodes due to an update on the underlying role
ansible-playbook create-playbook.yaml --tags haproxy

{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

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

## launch create playbook on haproxy nodes due to an update on the underlying role
ansible-playbook create-playbook.yaml --tags haproxy

## master upgrades - only one at a time
{{- range $h := .spec.kubernetes.masters.hosts }}
ansible-playbook 55.upgrade-control-plane.yml --limit "{{ $h.name }}" --become
Expand Down
10 changes: 10 additions & 0 deletions configs/upgrades/onpremises/1.29.1-1.29.2/pre-kubernetes.sh.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

set -e

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

## launch create playbook on haproxy nodes due to an update on the underlying role
ansible-playbook create-playbook.yaml --tags haproxy

{{- end }}

0 comments on commit 6f18b8f

Please sign in to comment.