[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation to the dev.okteto.com/inject-token annotation #151

Open
mnevadom opened this issue Jul 21, 2022 · 2 comments
Open

Add documentation to the dev.okteto.com/inject-token annotation #151

mnevadom opened this issue Jul 21, 2022 · 2 comments

Comments

@mnevadom
Copy link
Contributor

Adding the annotation

dev.okteto.com/inject-token: "true"

to the okteto manifest will the the webhook to add the env OKTETO_TOKEN with the uid to de dev container.

Maybe we should find a place to document this

@rberrelleza
Copy link
Member
rberrelleza commented Jul 22, 2022

@mnevadom this is great. What is the main use case for adding that injection? Is this something that we expect people to do a lot? (or maybe we already have people using it this way?)

@mnevadom
Copy link
Contributor Author

In my case when I was doing okteto up in staging.

I needed to build images from inside the container, and for that I had to use the staging buildkit.

Therefore I needed to run okteto context use with the token I used, because I need any user to be able to run it without having an ENV token in staging (cindylopez for example).

I don't know if it is a very common to use it this way :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants