wandb/helm-charts

Unable to unstall from helm repo but can use local git clone for launch-agent install

flowinh2o opened this issue · 2 comments

Hello. When I try to install from your repo source i get the following.

helm upgrade --namespace=wandb --create-namespace --install wandb-launch wandb/launch-agent -f helm_vars/wandb_launch/values-usw2.yaml -f helm_vars/wandb_launch/secrets.yaml --namespace=wandb-launch

Error: INSTALLATION FAILED: namespaces "wandb" already exists

Installing from local git clone seems to work fine. I am curious if it has to do with the namespace.yaml template that is in there but did not remove from the local copy.

Also you might want to check your README.md since the helm syntax has a couple --namespace options.

Hello @flowinh2o,

I would recommend removing the --create-namespace flag after the namespace is created the first time.

I will look to see if there is a way to ensure that this works idempotently and iteratively with the same helm command.

I am running this job from a cicd job so would be nice to be able to just reinstall like most helm charts. The issue of creating namespaces with labels does seem to be somewhat contentious in the k8s community. One possible solution could be to use a Chart hook here https://stackoverflow.com/questions/69940055/how-to-add-label-to-existed-namespace-by-helm/76276158#76276158.