Closed tino415 closed 1 year ago
Remove forcing all variables to be bound in shell scripts that are run when gcloud commands are executed
Remove set -u option from scripts executed when gcloud commands are executed to support commands without arguments for instance gke-gcloud-auth-plugin
set -u
gke-gcloud-auth-plugin
gcloud kubectl was not working because it is using command without argument under the hood. It fixes this issue
kubectl get pods without error.
kubectl get pods
Installed locally and tried to run kubectl get pods
+1 this worked for me, too. (comment edit: removed red herring alternative suggestion)
Remove forcing all variables to be bound in shell scripts that are run when gcloud commands are executed
Description
Remove
set -u
option from scripts executed when gcloud commands are executed to support commands without arguments for instancegke-gcloud-auth-plugin
Motivation and Context
gcloud kubectl was not working because it is using command without argument under the hood. It fixes this issue
Types of changes
Usage examples
kubectl get pods
without error.How Has This Been Tested?
Installed locally and tried to run
kubectl get pods
Checklist: