DopplerHQ / kubernetes-operator

Apache License 2.0
44 stars 18 forks source link

Getting started from Readme not working #13

Open koanplaned opened 2 years ago

koanplaned commented 2 years ago

Hi, I try to follow the getting started instructions from this readme, but running into issues at step 2

I'm using the option with doppler CLI: kubectl create secret generic doppler-token-secret -n doppler-operator-system --from-literal=serviceToken=$(doppler configs tokens create doppler-kubernetes-operator --plain)

This results in following error: Doppler Error: You must specify a project

When I add a project (and after the second error message the "config"), I receive following error message

Unable to create service token Doppler Error: Please provide a valid config. error: failed to create secret secrets "doppler-token-secret" already exists

Can anyone help here please?

nmanoogian commented 2 years ago

Hi @adluste 👋

Sorry for the trouble here. I think what happened is that your first attempt (without a project) failed to create a Doppler service token but successfully created the doppler-token-secret in Kubernetes (probably with an empty value).

You should be able to run kubectl delete secret doppler-token-secret -n doppler-operator-system to delete the empty secret and then run the kubectl create secret ... command again.

Can you give this a try and let me know if this works for you?