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 a globalflag --create-namespace for vineyardctl to create the namespace if needed. #1243
Conversation
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
k8s/cmd/commands/util/namespace.go
Outdated
log.Fatal(err, "Expects no positional arguments") | ||
} | ||
} | ||
} |
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 should be ok to put it into util/client.go
, as we already have many utils e.g., create/delete, it in.
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.
Do you mean while creating a resource if the namespace doesn't exist, then create a namespace first?
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 mean no need to put the "CreateNamespace" function into a seperate file, as we already have some similar things in client.go
https://github.com/v6d-io/v6d/blob/main/k8s/cmd/commands/util/client.go
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.
Got it and resolved. Also, the reference doc updated .
🎊 PR Preview 55cb807 has been successfully built and deployed to https://deploy-preview-pr-1243--v6d.netlify.app |
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
What do these changes do?
As titled.