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

Added Helm global secret for namespaced repos #5140

Merged
merged 3 commits into from
Aug 1, 2022

Conversation

castelblanque
Copy link
Collaborator

@castelblanque castelblanque commented Jul 28, 2022

Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com

Description of the change

This PR adds the handling of global secrets that affects to namespaced package repositories with secrets related.
Asset-syncer spings up the sync jobs in the global namespace and therefore it is requiring every namespace repo's secret to be copied to that location. Otherwise, private repos won't sync.

This management wasn't implemented yet in the new package repos API logic.

This wasn't, and isn't the best solution (cloning secrets into the global ns) but for now we have followed the same approach as in the old implementation.

Benefits

Repos controller can find now the secret for namespaced repositories in the global namespace.

Possible drawbacks

Maybe some edge cases not yet detected where repository controller needs the global secret? Can't think of any now.

Applicable issues

Rafa Castelblanque added 2 commits July 28, 2022 11:58
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@netlify
Copy link

netlify bot commented Jul 28, 2022

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit cf52776
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/62e7823f0cb76d0009975413

Copy link
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks! Looking forward to integrating these changes into my branch to see if the e2e tests finally pass!

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repos API/Helm - Support global private repos
3 participants