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
Do not register Kubelet In tree credential provider if external provider is enabled #102951
Do not register Kubelet In tree credential provider if external provider is enabled #102951
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: adisky The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1a1ee15
to
c549568
Compare
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.
/kind cleanup
/priority backlog
/triage accepted
/skip
@@ -48,7 +48,7 @@ var ( | |||
|
|||
// init registers a credential provider for each registryURLTemplate and creates | |||
// an ECR token getter factory with a new cache to store token getters | |||
func init() { | |||
func Register() { |
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.
Comments need to be updated... is Register
part of an interface somewhere?
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.
Updated, No it is not part of any interface. Introduced this to have collective initialisation at
pkg/credentialprovider/register/register.go
disable intree credential providers if fetaure flag for external credential provider is enabled Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
c549568
to
7753587
Compare
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.
/lgtm
/retest |
This is pretty similar to #102507 as @andrewsykim already noted - the other PR is an implementation of an already-approved KEP as well. |
@andrewsykim @DangerOnTheRanger It is pretty similar I agree, they are introducing same behaviour
IMO intree providers should be disabled in both the cases |
closing this in favour of #102507 |
/close |
@adisky: Closed this PR. In response to this:
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. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Kubelet registers credential provider while startup, This PR proposes to not register in-tree credential providers if feature flag for external credential provider is enabled.
Secondly if both external and intree registered then on any error from external providers it falls back to in tree which makes it difficult to catch any errors from external providers.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: