Describe the bug
When using kgoss run, i can't override kubectl run command with some extra args like --overrides in $GOSS_KUBECTL_OPTS, its work for starting the pod but not recognized with kubectl wait and kubectl delete
How To Reproduce
$ export GOSS_KUBECTL_OPTS=--namespace=default --overrides={"apiVersion":"v1","spec":{"imagePullSecrets":[{"name":"secret"}]}}
$ kgoss run -i "nginx"
Expected Behavior
Running tests on kubernetes
Actual Behavior
[INFO]: Parsing command line
[INFO]: using image: nginx
[INFO]: going to execute (may be blank): --
[INFO]: Preparing files to copy into container
[INFO]: Creating Kubernetes pod/container to test
++ /usr/local/bin/kubectl run --namespace=default '--overrides={"apiVersion":"v1","spec":{"imagePullSecrets":[{"name":"secret"}]}}' kgoss-tester-1895 --image-pull-policy=Always --restart=Never --labels=app=kgoss-test '--output=jsonpath={.metadata.name}' --image=nginx --
+ id=kgoss-tester-1895
+ set +x
[INFO]: Waiting for container to be ready
error: unknown flag: --overrides
See 'kubectl wait --help' for usage.
[INFO]: Deleting pod/container
error: unknown flag: --overrides
See 'kubectl delete --help' for usage.
Environment:
Version of goss: v0.3.21
OS/Distribution version (if applicable): linux/ubuntu
Describe the bug When using kgoss run, i can't override
kubectl run
command with some extra args like--overrides
in $GOSS_KUBECTL_OPTS, its work for starting the pod but not recognized withkubectl wait
andkubectl delete
How To Reproduce
Expected Behavior Running tests on kubernetes
Actual Behavior
Environment: