File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ setup_acs_credentials() {
70
70
71
71
main () {
72
72
for ag in $( get_affinity_groups) ; do
73
- echo " Checking CloudStack Affinity Group: $ag "
73
+ echo " [info] Checking CloudStack Affinity Group: $ag "
74
74
cluster=$( get_cluster $ag )
75
75
for credential in $( get_cluster_credentials $cluster ) ; do
76
76
setup_acs_credentials $credential
@@ -79,7 +79,7 @@ main() {
79
79
if [[ " $CS_AG_VMS " == " null" ]]; then
80
80
echo " [info] Found Affinity Group ($CS_AG_ID ) with no instances assigned:" $ag
81
81
if [[ " $DRY_RUN " == " false" ]]; then
82
- _kubectl delete cloudstackaffinitygroup $ag
82
+ kubectl -n $NAMESPACE delete cloudstackaffinitygroup $ag
83
83
echo " [info] Affinity Group ($CS_AG_ID ) $ag has been removed"
84
84
else
85
85
echo " [dryrun] Affinity Group ($CS_AG_ID ) $ag has been removed"
You can’t perform that action at this time.
0 commit comments