-
Notifications
You must be signed in to change notification settings - Fork 707
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
Switch dashboard's createDockerRegistrySecret to use resources API. #3916
Conversation
be5935e
to
f201bff
Compare
29ec032
to
7182417
Compare
f201bff
to
7ebab5f
Compare
7182417
to
3ef2bee
Compare
7ebab5f
to
275bf2d
Compare
3ef2bee
to
64ff9c3
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.
Great, thanks!
namespace, | ||
); | ||
dispatch(createImagePullSecret(secret)); | ||
await Secret.createPullSecret(currentCluster, name, user, password, email, server, namespace); |
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.
Not sure if we can/want use the Context
here instead of passing the cluster/ns directly
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.
Yep, we probably can now, but will need to update the form props and call-sites etc.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We probably want to keep this PR open. |
275bf2d
to
6866aea
Compare
Signed-off-by: Michael Nelson <minelson@vmware.com>
64ff9c3
to
fe69999
Compare
Signed-off-by: Michael Nelson minelson@vmware.com
Description of the change
Switches the
Secret.createDockerRegistrySecret
helper from using the k8s API directly to using the resources plugin.Tested IRL to ensure both the dashboard change and the backend grpc function work together as expected (which they do).
Benefits
Possible drawbacks
Applicable issues
Additional information
Next up is switching the dashboard's
Secret.list
to use the plugin'sGetSecretNames
which will be trickier, as it also involves updating the dashboard to no longer require the secret data for the UX interaction.