-
Notifications
You must be signed in to change notification settings - Fork 431
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
[enhancement] now refuses to create multiple virtual clusters in same ns #2052
[enhancement] now refuses to create multiple virtual clusters in same ns #2052
Conversation
✅ Deploy Preview for vcluster-docs canceled.Built without sensitive environment variables
|
30fe6c3
to
78e2396
Compare
78e2396
to
8b683e1
Compare
8b683e1
to
6d13723
Compare
cmd/vclusterctl/cmd/create.go
Outdated
if v.Namespace == cmd.Namespace && v.Name != args[0] { | ||
return fmt.Errorf("there is already a virtual cluster in namespace %s", cmd.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.
I think this should go into the helm driver only, as there can be many vClusters with the same namespace in the platform in different host clusters
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.
I had it there before, but do we support creating multiple virtual clusters in the same ns with the platform?
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.
it seems that the ListOSS
function should work with platform created virtual clusters too, since it's fetching the statefulset/deployment
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.
See comment above
8a452e9
to
6d13723
Compare
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
[v0.20] [enhancement] now refuses to create multiple virtual clusters in same ns (#2052)
What issue type does this pull request address? (keep at least one, remove the others)
/kind enhancement
What does this pull request do? Which issues does it resolve? (use
resolves #<issue_number>
if possible)resolves eng-4308
Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster would let users create multiple virtual clusters in the same ns
What else do we need to know?