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

Switch dashboard to use checkNamespaceExists. #3911

Merged
merged 4 commits into from
Dec 13, 2021

Conversation

absoludity
Copy link
Contributor

@absoludity absoludity commented Dec 7, 2021

Signed-off-by: Michael Nelson minelson@vmware.com

Description of the change

Updates the dashboard to use the resources plugin to check if a namespace exists (rather than the more generic getNamespace which was hitting the k8s API server directly from the dashboard).

Also updates the Namespace.create shared helper to use the resources client.

Benefits

See #3896

Possible drawbacks

Applicable issues

Additional information

Comment on lines +22 to +25
await this.resourcesClient().CreateNamespace({
context: {
cluster,
namespace,
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks cleaner than before :)

@castelblanque
Copy link
Collaborator

castelblanque commented Dec 9, 2021

One more step to abstract away from direct K8s API calls. Thanks!

plugin.

Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity
Copy link
Contributor Author

One more step to abstract away from direct K8s API calls. Thanks!

Thanks for the approval. Just note that I can't land this as the previous PR isn't yet approved. If it's easier, you can see the whole series of PRs for this work on #3896

Base automatically changed from 3896-namespaces-via-plugin-2 to master December 10, 2021 08:49
@absoludity absoludity merged commit 8c93bd1 into master Dec 13, 2021
@absoludity absoludity deleted the 3896-namespaces-via-plugin-3 branch December 13, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants