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

Error in creating kind cluster using kind setup script #6838

Open
jainpulkit22 opened this issue Nov 29, 2024 · 1 comment · May be fixed by #6839
Open

Error in creating kind cluster using kind setup script #6838

jainpulkit22 opened this issue Nov 29, 2024 · 1 comment · May be fixed by #6839
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jainpulkit22
Copy link
Contributor

jainpulkit22 commented Nov 29, 2024

Describe the bug
If suppose there are two clusters with the name "kindxyz" and "kindabc" is present in the vm and now we try to create another cluster with the name "kind123", it will give an error that "Cluster is already created".

To Reproduce
Create a cluster named kind1 and then try to create another cluster kind using the kind-setup.sh script, it will generate an error.

Expected
Cluster creation should be successful.

Actual behavior
cluster creation fails

@jainpulkit22 jainpulkit22 added the kind/bug Categorizes issue or PR as related to a bug. label Nov 29, 2024
@jainpulkit22
Copy link
Contributor Author

The reason for the failure is in kind-setup.sh script we have

kind get clusters | grep $CLUSTER_NAME > /dev/null 2>&1
  if [[ $? -eq 0 ]]; then
    echoerr "cluster $CLUSTER_NAME already created"
    exit 0
  fi

So when we already have a cluster named "kind2" and now we try to create a cluster name "kind", the grep command will show that there is already a cluster named kind present even though the cluster named kind is not present.

@jainpulkit22 jainpulkit22 self-assigned this Nov 29, 2024
@jainpulkit22 jainpulkit22 linked a pull request Nov 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant