Skip to content

Commit

Permalink
hypershift: proper nodepools deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Aug 6, 2024
1 parent e210051 commit 98f1af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2809,7 +2809,7 @@ def delete_kube(self, cluster, overrides={}):
if os.path.exists(f'{clusterdir}/bmcs.yml'):
call(f'KUBECONFIG={kubeconfigmgmt} oc delete -f {clusterdir}/bmcs.yml', shell=True)
call(f'KUBECONFIG={kubeconfigmgmt} oc delete -f {clusterdir}/autoapprovercron.yml', shell=True)
call(f'KUBECONFIG={kubeconfigmgmt} oc delete -f {clusterdir}/nodepool.yaml', shell=True)
call(f'KUBECONFIG={kubeconfigmgmt} oc delete -f {clusterdir}/nodepools.yaml', shell=True)
call(f'KUBECONFIG={kubeconfigmgmt} oc delete -f {clusterdir}/hostedcluster.yaml', shell=True)
if not assisted and ('baremetal_iso' in clusterdata or 'baremetal_hosts' in clusterdata):
call(f'KUBECONFIG={kubeconfigmgmt} oc -n default delete all -l app=httpd-kcli', shell=True)
Expand Down

0 comments on commit 98f1af8

Please sign in to comment.