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 rancher credential provider #40160

Merged
merged 2 commits into from
Apr 8, 2017

Conversation

wlan0
Copy link
Member

@wlan0 wlan0 commented Jan 19, 2017

This adds rancher as a credential provider in kubernetes.

@erictune This might be a good opportunity to discuss adding a provision for people to have their own credential providers that is similar to the new cloud provider changes (kubernetes/community#128). WDYT?

release-note
Added Rancher Credential Provider to use Rancher Registry credentials when running in a Rancher cluster

@k8s-ci-robot
Copy link
Contributor

Hi @wlan0. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with @k8s-bot ok to test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 19, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-label-needed labels Jan 19, 2017
@wlan0
Copy link
Member Author

wlan0 commented Jan 23, 2017

ping @erictune

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 25, 2017
@k8s-github-robot k8s-github-robot assigned vishh and deads2k and unassigned erictune and vishh Jan 30, 2017
@deads2k
Copy link
Contributor

deads2k commented Jan 31, 2017

@kubernetes/sig-auth-feature-requests

}

func init() {
client, err := getRancherClient()
Copy link
Member

Choose a reason for hiding this comment

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

I can't tell if this might return an error or not. If it can, then it should not be called here because init gets called for every cloud provider. If it can't consider removing error from the function signature.

}

// Assuming it's always enabled
func (p *rancherProvider) Enabled() bool {
Copy link
Member

Choose a reason for hiding this comment

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

You should not be enabled if you fail to detect that you are running on Rancher (e.g. no CATTLE env vars.

@wlan0 wlan0 force-pushed the credentialprovider branch from eeeb873 to 30827b8 Compare February 17, 2017 20:47
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2017
@yujuhong yujuhong removed their assignment Feb 17, 2017
@wlan0 wlan0 force-pushed the credentialprovider branch from 30827b8 to 03923f4 Compare February 17, 2017 21:48
@wlan0
Copy link
Member Author

wlan0 commented Feb 17, 2017

ping @erictune. I've made the changed you suggested.

@k8s-github-robot k8s-github-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 17, 2017
@wlan0 wlan0 force-pushed the credentialprovider branch from 948c35d to 0b809fe Compare February 17, 2017 23:06
@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2017
@wlan0 wlan0 force-pushed the credentialprovider branch from 0b809fe to 6592ce2 Compare February 17, 2017 23:09
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2017
@wlan0
Copy link
Member Author

wlan0 commented Feb 17, 2017

I've split the PR into two commits - one for the code changes, the other for the vendor dirs.

This commit has the relevant code changes -
b2c25d0

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 21, 2017
@k8s-ci-robot
Copy link
Contributor

@wlan0: you can't request testing unless you are a kubernetes member.

In response to this comment:

@k8s-bot ok to test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dchen1107
Copy link
Member

/approve
and
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 7, 2017
@erictune
Copy link
Member

erictune commented Mar 7, 2017

@k8s-bot ok to test

@wlan0 wlan0 force-pushed the credentialprovider branch from c117166 to 7dfd7da Compare March 7, 2017 21:58
@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 7, 2017
@erictune
Copy link
Member

erictune commented Mar 7, 2017

/lgtm
and
/approved

@wlan0 wlan0 force-pushed the credentialprovider branch from 7dfd7da to 40051ee Compare March 8, 2017 00:40
@wlan0
Copy link
Member Author

wlan0 commented Mar 8, 2017

@wlan0: The following test(s) failed:

Test name Commit Details Rerun command
Jenkins GCE e2e 40051ee link @k8s-bot cvm gce e2e test this
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

This is a flake!

@k8s-bot cvm gce e2e test this

@wlan0
Copy link
Member Author

wlan0 commented Mar 8, 2017

How do I add a milestone to this?

This is aimed for 1.7 release, or if possible 1.6.x

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 11, 2017
@wlan0 wlan0 force-pushed the credentialprovider branch from 40051ee to ac374e4 Compare March 17, 2017 17:31
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 17, 2017
@wlan0 wlan0 force-pushed the credentialprovider branch from ac374e4 to 44ab110 Compare March 17, 2017 17:45
@wlan0 wlan0 force-pushed the credentialprovider branch from 44ab110 to 3d58d79 Compare March 27, 2017 23:45
@wlan0
Copy link
Member Author

wlan0 commented Mar 28, 2017

The error seems to be a flake - @k8s-bot unit test this

@wlan0
Copy link
Member Author

wlan0 commented Mar 28, 2017

@k8s-bot gce etcd3 e2e test this

@thockin
Copy link
Member

thockin commented Apr 7, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 7, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dchen1107, erictune, thockin, wlan0

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

return registryCreds
}

func TestRancherCredentialsProvide(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

s/Provide/Provider/

@wlan0
Copy link
Member Author

wlan0 commented Apr 8, 2017

@k8s-bot gce node e2e test this

The tests are already green, but Submit Queue doesn't seem to recognize it

@k8s-ci-robot
Copy link
Contributor

@wlan0: The following test(s) failed:

Test name Commit Details Rerun command
Jenkins non-CRI GCE e2e 3d58d79 link @k8s-bot non-cri e2e test this

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 6702985 into kubernetes:master Apr 8, 2017
@bg-chun bg-chun mentioned this pull request Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.