Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Validate hostname, name, and cluster address on wsp create #277

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Mar 10, 2021

must be merged before https://github.com/cdr/m/pull/7417

@f0ssel f0ssel force-pushed the wsp-create-validation branch from 38cb952 to a08bfa6 Compare March 10, 2021 19:01
@f0ssel f0ssel requested review from cmoog and deansheather March 10, 2021 19:44

cmd.Flags().StringVar(&name, "name", "", "workspace provider name")
cmd.Flags().StringVar(&hostname, "hostname", "", "workspace provider hostname")
cmd.Flags().StringVar(&clusterAddress, "clusterAddress", "", "kubernetes cluster apiserver endpoint")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we've been doing cluster-address

cmd := &cobra.Command{
Use: "create [workspace_provider_name]",
Use: "create --name=[name] --hostname=[hostname] --clusterAddress=[clusterAddress]",
Copy link
Contributor

Choose a reason for hiding this comment

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

for consistency we may want to do name as a required positional argument, similar to coder envs create

@f0ssel f0ssel force-pushed the wsp-create-validation branch from 0b54f02 to 710e3cf Compare March 10, 2021 19:53
@f0ssel f0ssel merged commit f34aafe into master Mar 10, 2021
@f0ssel f0ssel deleted the wsp-create-validation branch March 10, 2021 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants