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 a globalflag --create-namespace for vineyardctl to create the namespace if needed. #1243

Merged
merged 7 commits into from Mar 10, 2023

Conversation

dashanji
Copy link
Member

What do these changes do?

As titled.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
log.Fatal(err, "Expects no positional arguments")
}
}
}
Copy link
Member

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.

Copy link
Member Author

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?

Copy link
Member

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

Copy link
Member Author

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 .

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2023

🎊 PR Preview 55cb807 has been successfully built and deployed to https://deploy-preview-pr-1243--v6d.netlify.app
🤖 By netlify

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
sighingnow and others added 2 commits March 10, 2023 14:17
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
@sighingnow sighingnow merged commit d826908 into v6d-io:main Mar 10, 2023
@dashanji dashanji deleted the add-create-namespace branch March 10, 2023 06:23
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