File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ setup_acs_credentials() {
7070
7171main () {
7272 for ag in $( get_affinity_groups) ; do
73- echo " Checking CloudStack Affinity Group: $ag "
73+ echo " [info] Checking CloudStack Affinity Group: $ag "
7474 cluster=$( get_cluster $ag )
7575 for credential in $( get_cluster_credentials $cluster ) ; do
7676 setup_acs_credentials $credential
@@ -79,7 +79,7 @@ main() {
7979 if [[ " $CS_AG_VMS " == " null" ]]; then
8080 echo " [info] Found Affinity Group ($CS_AG_ID ) with no instances assigned:" $ag
8181 if [[ " $DRY_RUN " == " false" ]]; then
82- _kubectl delete cloudstackaffinitygroup $ag
82+ kubectl -n $NAMESPACE delete cloudstackaffinitygroup $ag
8383 echo " [info] Affinity Group ($CS_AG_ID ) $ag has been removed"
8484 else
8585 echo " [dryrun] Affinity Group ($CS_AG_ID ) $ag has been removed"
You can’t perform that action at this time.
0 commit comments