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

Update setup-kind.sh to correctly set docker login and remove unused variables from the script #10617

Merged
merged 5 commits into from
Sep 20, 2024

Conversation

im-konge
Copy link
Member

@im-konge im-konge commented Sep 20, 2024

Type of change

  • Bugfix

Description

Similarly to setup-kubernetes.sh, where we are setting the Minikube cluster, in setup-kind.sh we have possibility to "copy docker login" -> meaning that it will basically copy the login to registries from the local machine. This works perfectly for the Minikube cluster, but doesn't work on the Kind cluster -> because we need to update this "pull secret" for every node of the Kind cluster. More about this is mentioned in the documentation - https://kind.sigs.k8s.io/docs/user/private-registries/#use-an-access-token

Other than fixing this behavior, I'm removing the unused variables, which were copy-pasted from the setup-kubernetes.sh, but not really used in the script right now. In case of need, we can add it back in the future (from the documentation, we can limit the docker with the CPU and memory requests, but it's not possible for the whole Kind cluster).

Checklist

  • Make sure all tests pass

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge im-konge requested a review from a team September 20, 2024 10:06
@im-konge im-konge self-assigned this Sep 20, 2024
@im-konge im-konge added this to the 0.44.0 milestone Sep 20, 2024
@im-konge
Copy link
Member Author

/packit test --labels regression

Copy link
Member

@see-quick see-quick left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks 👍

@im-konge im-konge merged commit 2fad621 into strimzi:main Sep 20, 2024
19 checks passed
@im-konge im-konge deleted the kind-docker-login branch September 20, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants