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

Issue-711, Avoiding cluster creation if cluster with provided name exists #732

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

worryg0d
Copy link
Collaborator

@worryg0d worryg0d commented Mar 4, 2024

closes #711

@worryg0d worryg0d added the enhancement New feature or request label Mar 4, 2024
@worryg0d worryg0d self-assigned this Mar 4, 2024
r.EventRecorder.Eventf(c, models.Warning, models.CreationFailed,
"Failed to create cluster. Cluster %s already exists", c.Spec.Name,
)
return fmt.Errorf("cluster %s already exists", c.Spec.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

add please info to change a name of a cluster

func (c *Client) ListClusters() ([]*models.ActiveClusters, error) {
url := c.serverHostname + ClustersEndpoint
func (c *Client) ListClustersByName(name string) ([]*models.ActiveCluster, error) {
url := c.serverHostname + ClustersEndpoint + "?search=name:" + name
Copy link
Contributor

Choose a reason for hiding this comment

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

please add app_type

@worryg0d worryg0d force-pushed the issue-711 branch 4 times, most recently from d5972aa to 91db04a Compare March 5, 2024 16:44
@testisnullus testisnullus merged commit ef8d9ea into main Mar 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid duplicate cluster creation
3 participants