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 18, 2024
1 parent 24851d8 commit ab230d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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 @@ -16,7 +17,5 @@
kind: Pod
namespace: openshift-marketplace
wait: true
wait_condition:
type: Ready
status: "True"
wait_timeout: 300
wait_sleep: 10

0 comments on commit ab230d3

Please sign in to comment.