-
Hi, I am try to call argo workflow api using methods mentioned here. https://github.com/argoproj/argo-workflows/blob/master/examples/example-golang/main.go inside operator sdk.
The code works if I run it in a seperate file but gives error inside operator when I use operatorsdk way of getting rest.config. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the issue. |
Beta Was this translation helpful? Give feedback.
Found the issue.
If you are using
config, _ := rest.InClusterConfig()
. It can only generate config if you are executing your code inside a pod in containers. So actually kube config was not loaded hence failure.