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

Add imagePullSecrets option to repos API #5081

Merged
merged 6 commits into from
Jul 26, 2022
Merged

Conversation

castelblanque
Copy link
Collaborator

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

Description of the change

This PR changes the new package repositories API with regards to handling the images pull secret credentials in the direct Helm plugin.
Until now, the new API allowed to set such credentials by specifying the secret name only. With this PR it is now possible to do it in one of this mutually exclusive ways:

  • Specifying the secret name
  • Providing the credentials (server, user, password and email)

Using one way or the other still depends on the global configuration parameter userManagedSecrets (defaults to false).

Benefits

Images pull secret management is more in line with the authentication and other secrets management in the API.

Possible drawbacks

Backwards incompatibility with previous state of package repositories API, but it wasn't being used.

Applicable issues

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@netlify
Copy link

netlify bot commented Jul 15, 2022

Deploy Preview for kubeapps-dev ready!

Name Link
🔨 Latest commit 45b766b
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/62dfc1879c41f10008a9662f
😎 Deploy Preview https://deploy-preview-5081--kubeapps-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Rafa Castelblanque added 2 commits July 15, 2022 15:12
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
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.

Apart from the suggestion for the bug I found (when performing the integration of these changes with my current UI work), LGTM. Thanks!

castelblanque and others added 3 commits July 26, 2022 12:20
…auth.go

Co-authored-by: Antonio Gámez, PhD <agamez@vmware.com>
Signed-off-by: Rafa Castelblanque <67455978+castelblanque@users.noreply.github.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@castelblanque castelblanque merged commit 59e33a3 into main Jul 26, 2022
@castelblanque castelblanque deleted the 5015-Helm-pullSecrets branch July 26, 2022 14:31
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.

Specify imgPullSecrets in Helm's Repos API by its values, not only by secret name
3 participants