-
Notifications
You must be signed in to change notification settings - Fork 137
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 docs for secrets based on existing credentials #430
Add docs for secrets based on existing credentials #430
Conversation
docs/authentication.md
Outdated
Set the namespace and name of the Kubernetes service account: | ||
|
||
```shell | ||
export NAMESPACE=<your namespace> | ||
export SERVICE_ACCOUNT_NAME=<service account name> | ||
``` | ||
|
||
### Create a Secret based on existing credentials | ||
|
||
If you already ran `docker login`, you can copy the credentials into Kubernetes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a step here where users confirm that the ~/.docker/config.json file is in this format?
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "redacted"
}
}
on mac the dockerconfig uses keychain so it usually isn't in this format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@priyawadhwa makes sense! Updated, PTAL 🙃
The current docs on "Authenticating to an OCI Registry" cover creating a secret by providing credentials on the command line but do not cover creating a secret based on existing credentials; this commit adds that.
f5c5e7e
to
3d42d31
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: priyawadhwa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @concaf ! |
/lgtm |
The current docs on "Authenticating to an OCI Registry" cover creating a
secret by providing credentials on the command line but do not cover
creating a secret based on existing credentials; this commit adds that.
Fixes #314
CC: @priyawadhwa