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

Use ~/.kube/config for getting authentication information #350

Closed
rhuss opened this issue Dec 7, 2015 · 3 comments
Closed

Use ~/.kube/config for getting authentication information #350

rhuss opened this issue Dec 7, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@rhuss
Copy link
Collaborator

rhuss commented Dec 7, 2015

Add a dedicated property like docker.kubernetesAuth which does the following when enabled:

  • Read ~/.kube/config as YAML file
  • Look for the default context (i.e. the active context)
  • Lookup the corresponding server and the credentials
  • Use user, password, email for authentication against a docker registry
@rhuss
Copy link
Collaborator Author

rhuss commented Dec 7, 2015

This is a followup story to #147

@rhuss rhuss added this to the 0.14.0 milestone Dec 7, 2015
@rhuss rhuss added the feature label Dec 7, 2015
@jgangemi
Copy link
Collaborator

jgangemi commented Dec 7, 2015

fyi: i am using snakeyaml to handle #57...just in case you decide to tackle this before i get my PR in.

@rhuss
Copy link
Collaborator Author

rhuss commented Dec 8, 2015

thanks for the heads up, we hereby settle on snakeyaml as the library for parsing yaml ;-)

@rhuss rhuss self-assigned this Dec 8, 2015
rhuss added a commit that referenced this issue Jan 20, 2016
Now, if either `-Ddocker.useOpenShiftAuth` or `<useOpenShiftAuth>true</useOpenShiftAuth>` in the plugin configuration is used, then the currently connected OpenShift user is used for authentication in pull and/or push operation. This is typicallt performed with a 'oc login'. Using this features correspond to use `oc whoami`  for the user part and `oc whoami -t` for the token which is to be used as password.
@rhuss rhuss modified the milestones: 0.13.8, 0.14.0 Jan 20, 2016
@rhuss rhuss closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants