Skip to content

Commit

Permalink
Delete all the resources of openshift-marketplace
Browse files Browse the repository at this point in the history
ansible-collections/kubernetes.core#517 added
delete_all: true to delete all the resources.

It needs to be added in fix openshift-marketplace task files
to make sure all pods are deleted otherwise
fix_openshift_marketplace.yml taskfile does not work as expected.

Note: It also adds wait_sleep attributes and drop wait condition to
make sure all pods are running.

Signed-off-by: Chandan Kumar <raukadah@gmail.com>
  • Loading branch information
raukadah committed Apr 19, 2024
1 parent c4a895d commit 1e77f75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/openshift_setup/tasks/fix_openshift_marketplace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
kubernetes.core.k8s:
kind: Pod
state: absent
delete_all: true
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
namespace: openshift-marketplace

Expand All @@ -15,6 +16,8 @@
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
kind: Pod
namespace: openshift-marketplace
label_selectors:
- name = openshift-marketplace
wait: true
wait_condition:
type: Ready
Expand Down

0 comments on commit 1e77f75

Please sign in to comment.