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

kubelet: K8s 1.26 use v1alpha1 credential provider #3070

Merged

Conversation

stmcginnis
Copy link
Contributor

@stmcginnis stmcginnis commented May 2, 2023

Issue number:

Closes #3069

Description of changes:

In Kubernetes 1.26, the image credential provider graduated to API version v1. Due to a bug in the ecr-credential-provider though, the provider apiVersion needs to still be v1alpha1. Using the v1 version causes an error from the provider.

Testing done:

Before:

/usr/libexec/kubernetes/kubelet/plugins/ecr-credential-provider <<< '{"apiVersion": "credentialprovider.kubelet.k8s.io/v1", "kind": "CredentialProviderRe>
E0502 16:52:22.809788    6287 main.go:161] Error running credential provider plugin: group version credentialprovider.kubelet.k8s.io/v1 is not supported

After:

/usr/libexec/kubernetes/kubelet/plugins/ecr-credential-provider <<< '{"apiVersion": "credentialprovider.kubelet.k8s.io/v1", "kind": "CredentialProviderRe>
[expected credential output]

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

In Kubernetes 1.26, the image credential provider graduated to API
version v1. Due to a bug in the ecr-credential-provider though, the
provider apiVersion needs to still be v1alpha1. Using the v1 version
causes an error from the provider.

Signed-off-by: Sean McGinnis <stmcg@amazon.com>
@stmcginnis stmcginnis merged commit 1749be3 into bottlerocket-os:develop May 3, 2023
37 checks passed
@stmcginnis stmcginnis deleted the k8s-126-cred-provider branch May 3, 2023 21:41
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.

K8s 1.26 image credential provider fails to get credentials
3 participants