Skip to content

Commit 91e2fe2

Browse files
authored
Add workaround for services added to existing cluster post-upgrade not working (#964)
* add workaround for broken services after upgrade * linting
1 parent 321f64d commit 91e2fe2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

playbooks/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,22 @@
5151
when: azimuth_apps_enabled
5252
- role: azimuth_cloud.azimuth_ops.azimuth
5353

54-
# Ensure that Consul is uninstalled
5554
post_tasks:
55+
# Ensure that Consul is uninstalled
5656
- name: Ensure Consul is uninstalled
5757
ansible.builtin.include_role:
5858
name: azimuth_cloud.azimuth_ops.consul
5959
tasks_from: uninstall.yml
6060
when:
6161
- consul_server_host is defined
6262
- consul_server_port is defined
63+
# Workaround for new services on existing Clusters not getting added
64+
# to Platforms after upgrades
65+
- name: Restart CAPI Operator
66+
ansible.builtin.include_role:
67+
name: azimuth_cloud.azimuth_ops.azimuth_capi_operator
68+
tasks_from: restart.yml
69+
when: azimuth_kubernetes_enabled
70+
6371
environment:
6472
KUBECONFIG: "{{ kubeconfig_path | default('') }}"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
- name: Restart deployment
3+
ansible.builtin.command: "kubectl rollout restart deployment {{ azimuth_capi_operator_release_name }} -n {{ azimuth_capi_operator_release_namespace }}"
4+
changed_when: true

0 commit comments

Comments
 (0)