-
Notifications
You must be signed in to change notification settings - Fork 137
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 all pull secrets to all components #3365
Conversation
d298fd3
to
452ca72
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3365 +/- ##
==========================================
- Coverage 57.26% 57.23% -0.03%
==========================================
Files 344 344
Lines 19753 19781 +28
==========================================
+ Hits 11311 11322 +11
- Misses 7206 7221 +15
- Partials 1236 1238 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a0d10f4
to
b6c318d
Compare
I tested this PR by pulling a code module image from the Google Cloud Artifactory Repository. Worked fine! |
0a19682
to
2bd02ae
Compare
I think the troubleshoot command might also need some adoption in a follow-up taking these changes into account. |
2bd02ae
to
da51247
Compare
75f737f
to
a99735e
Compare
6642ff7
to
e92f0d5
Compare
4c0db2c
to
3b7f99c
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.
Code LGTM, didn't test it because I don't have a podman setup (pls anyone else, test it)
3b7f99c
to
399899b
Compare
399899b
to
a9771db
Compare
Description
K8S-10395
All dynakube image pull secrets added to OneAgent, ActiveGate specs.
All dynakube image pull secrets used by csi.ImageInstaller.
EdgeConnect controller uses registry.Client but depends on EdgeConnect.Spec.CustomPullSecret.
dynakube.controller.registryClientBuilder is not used (
registry.Client).csiprovisioner.OneAgentProvisioner.registryClientBuilder is not used (
registry.Client).How it works:
dockerAuth(s) loaded by
configFile.LoadFromReader(...)
from different secrets are stored in a single instance ofconfigFile.AuthConfigs
map.configFile.LoadFromReader(...)
basically doesmap[k] = v
so it works for many secrets.See:
How can this be tested?
Copy codemodules image to a private registry:
Create pull image secret:
Enable DEBUG log level:
Apply dynakube:
Check csi logs:
Check OneAgent image pull secrets:
there should be two secrets: