-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: mirror credentials support in DynamicCredentialProviderConfig #359
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supershal
commented
Feb 13, 2024
...utation/imageregistries/credentials/templates/dynamic-credential-provider-config.yaml.gotmpl
Show resolved
Hide resolved
supershal
force-pushed
the
shalin/mirror-creds
branch
from
February 13, 2024 23:15
7c30c4b
to
cdb7b7f
Compare
dkoshkin
approved these changes
Feb 14, 2024
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.
Nicely done!
Merged
dkoshkin
pushed a commit
that referenced
this pull request
Feb 14, 2024
🤖 I have created a release *beep* *boop* --- ## 0.4.1 (2024-02-14) <!-- Release notes generated using configuration in .github/release.yaml at main --> ## What's Changed ### Fixes 🔧 * fix: mirror credentials support in DynamicCredentialProviderConfig by @supershal in #359 ### Other Changes * ci: Ignore devbox update PRs in release notes by @jimmidyson in #356 * build: Add v0.4 series to provider metadata by @jimmidyson in #358 **Full Changelog**: v0.4.0...v0.4.1 --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
dkoshkin
added a commit
that referenced
this pull request
Feb 15, 2024
Follow up to #359 I noticed that when the only setting `globalImageRegistryMirror` without `imageRegistries` that the credential provider configs were not being generated. Tested locally and verified in the Docker container : ``` kubectl get kubeadmconfig.bootstrap.cluster.x-k8s.io/docker-quick-start-helm-addon-cilium-dgz8d-dk7c5 -o yaml | grep "path:" audit-log-path: /var/log/audit/kube-apiserver-audit.log path: /etc/kubernetes/audit-policy/apiserver-audit-policy.yaml path: /etc/konvoy/install-kubelet-credential-providers.sh path: /etc/kubernetes/image-credential-provider-config.yaml path: /etc/kubernetes/dynamic-credential-provider-config.yaml path: /etc/kubernetes/static-image-credentials.json path: /etc/containerd/certs.d/_default/hosts.toml ``` ``` root@docker-quick-start-helm-addon-cilium-md-0-7zv45-plbrx-wv86j:/# ls -lat /etc/kubernetes/ total 44 drwxr-xr-x 1 root root 4096 Feb 14 23:02 .. drwxr-xr-x 1 root root 4096 Feb 14 22:59 . drwxr-xr-x 4 root root 4096 Feb 14 22:59 node-feature-discovery -rw------- 1 root root 1911 Feb 14 22:59 kubelet.conf drwxr-xr-x 2 root root 4096 Feb 14 22:59 pki drwxr-xr-x 2 root root 4096 Feb 14 22:59 image-credential-provider -rw------- 1 root root 248 Feb 14 22:59 static-image-credentials.json -rw------- 1 root root 694 Feb 14 22:59 dynamic-credential-provider-config.yaml -rw------- 1 root root 383 Feb 14 22:59 image-credential-provider-config.yaml drwxr-xr-x 2 root root 4096 May 25 2023 manifests ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes : #329 (Support for mirror credentials for "globalImageRegistryMirror")
mirror
configuration in DynamicCredentialsConfige.g.
e.g.