Skip to content

Commit

Permalink
operator: remove must-gather-api deployment on upgrade
Browse files Browse the repository at this point in the history
We no longer deploy must-gather-api but we haven't made sure that we
remove the deployment when it already exists and therefore the
must-gather-api pod remains running when upgrading from a version in
which must-gather-api is deployed.

Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed May 19, 2024
1 parent a674470 commit 6ec92d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions operator/roles/forkliftcontroller/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,11 @@
loop_var: resource_kind
vars:
feature_label: "{{ validation_service_name }}"

- name: "Delete must-gather-api deployment"
k8s:
api_version: apps/v1
kind: deployment
namespace: "{{ app_namespace }}"
name: forklift-must-gather-api
state: absent

0 comments on commit 6ec92d9

Please sign in to comment.