Skip to content

Refactor kube auth#2340

Merged
smarterclayton merged 1 commit intokubernetes:masterfrom
erictune:refactor_kube_auth
Nov 14, 2014
Merged

Refactor kube auth#2340
smarterclayton merged 1 commit intokubernetes:masterfrom
erictune:refactor_kube_auth

Conversation

@erictune
Copy link
Copy Markdown
Contributor

Partially resolves #2302

@smarterclayton
Copy link
Copy Markdown
Contributor

@deads2k can you review this? And then for the clientcmd stuff can you open a separate pull to upstream that introduces the utility functions so eric can review?

Comment thread pkg/kubecfg/kubecfg.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err is guaranteed to be nil here. Returning "authPtr, nil" instead of "authPrt, err" might make it more clear.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@erictune
Copy link
Copy Markdown
Contributor Author

@deads2k PTAL

@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented Nov 13, 2014

I didn't tag the copy/paste methods between kubecfg and kubectl, but could you make the corresponding "return authPtr, nil" change in kubectl and the TODO in kubecfg?

Otherwise, lgtm.

@erictune
Copy link
Copy Markdown
Contributor Author

Sure, done.

@erictune
Copy link
Copy Markdown
Contributor Author

This is ready for merge.

Refactored common code to that package.
Subsequent PRs will load and emit these files.
@erictune
Copy link
Copy Markdown
Contributor Author

PTAL

@smarterclayton
Copy link
Copy Markdown
Contributor

LGTM

smarterclayton added a commit that referenced this pull request Nov 14, 2014
@smarterclayton smarterclayton merged commit c95b869 into kubernetes:master Nov 14, 2014
@smarterclayton
Copy link
Copy Markdown
Contributor

Sorry for delay.

----- Original Message -----

PTAL


Reply to this email directly or view it on GitHub:
#2340 (comment)

@erictune erictune deleted the refactor_kube_auth branch November 14, 2014 19:43
k8s-ci-robot added a commit that referenced this pull request Jul 12, 2023
benluddy pushed a commit to benluddy/kubernetes that referenced this pull request Jul 18, 2025
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

Successfully merging this pull request may close these issues.

Inconsistent use of .kubernetes_auth file format and code

3 participants