-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 v1 credential provider API in 1.27+ #1269
Conversation
Something is off with our cred provider config. The We haven't disabled the in-tree credential providers by way of kubelet's If you invoke
|
The in-tree ECR credential provider is gone in 1.27. |
This likely went unnoticed because the stderr from failed cred provider plugin invocations is discarded: https://github.com/kubernetes/kubernetes/blob/master/pkg/credentialprovider/plugin/plugin.go#L413 |
Can you elaborate on the implications of not using |
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.
What kind of validation did you do to confirm that your fix works? Probably need to validation a version 1.24-1.26 and 1.27 to ensure it works correctly.
@mmerkes We'll need to turn on the |
I tested this with 1.26 by:
|
@prasad0896 has tested this with 1.27. |
@cartermckinnon if a feature flag in an old release is not already on, then i don't think we should go back and switch it on... 2 cents. |
@dims agree! I only turned this on for testing, otherwise the kubelet falls back to the in-tree Also opened this: kubernetes/kubernetes#117448 because debugging this issue was roundabout. |
whew! thanks Carter! |
|
||
--- | ||
|
||
## Image credential provider plugins |
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.
Tx for the addition here.
Issue #, if available:
Closes #1268 .
Description of changes:
This moves to the
v1
API forCredentialProviderRequest
/CredentialProviderResponse
. These API's have graduated tov1
.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Testing Done
You can observe the issue by placing a shim in between
kubelet
and theecr-credential-provider
.cred-provider-shim
:ecr-credential-provider-config
to use this executable.--image-credential-provider-bin-dir
flag to the directory containing the shim executable./tmp/cred-provider-shim.log
:You can also change the
apiVersion
inecr-credential-provider-config
tov1alpha1
and see a token generated successfully.