-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to skipPhases: addons/coredns #3606
Comments
cc: @neolit123 |
kind should not use --skip-phases and instead allow the user to pass their custom skipPhases in init configuration. the user will have the override control that way. also v1beta3 has noderegistration. imagepullpolicy: never. skipping image pull was the main reason to skip the preflight phase in kind. prs welcome. |
I think we're still using skip-phases as a legacy thing because the config field didn't exist when we added the flag, +1 to revisiting that |
I could take a stab at this. @neolit123 Should we keep compatibility with Kubernetes 1.22 and earlier by only using the config file fields for 1.23 and newer? |
Yes, we have many places where we introduce behavior based on the version. Normally we do that for future versions users have not already been depending on to avoid breakage, but the behavior here is broken enough that it's probably better to just backport the change to all possible versions. |
We can consider dropping support for <= 1.22 but that should probably be a separate discussion unless it's a significant obstacle. We haven't published a 1.22 image since https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0 (we soft-support N-3 additional releases versus upstream Kubernetes currently, buy anything not currently supported by Kubernetes upstream is best-effort), but we haven't actively broken anything for a long time and old releases mostly still work. |
Thanks for the context! So just to make sure I understand, I'll plan to add /assign |
Sounds good, thanks! |
Thank you very much for prompt discussion and PR 🙏. |
What happened:
When trying to install
kind
cluster with coredns disabled usingskipPhases
, theskipPhases
are not honored. From the verbose log I attached you can see thatskipPhases
were added to InitConfiguration usingkubeadmConfigPatches
I used in my config (see how to reproduce).Attached Log: kind-test.log
The result is this:
What you expected to happen:
CoreDNS will not be installed.
How to reproduce it (as minimally and precisely as possible):
Create cluster with following configuration:
For example
kind create cluster --name my-dev-cluster --config=kind-test.yaml -v9
.Anything else we need to know?:
Probably it is overriden here - https://github.com/kubernetes-sigs/kind/blob/v0.22.0/pkg/cluster/internal/create/actions/kubeadminit/init.go#L63-L80
Environment:
kind version
): kind v0.22.0 go1.20.13 linux/amd64docker info
,podman info
ornerdctl info
): Server Version: 20.10.22/etc/os-release
): Fedora 35kubectl version
):The text was updated successfully, but these errors were encountered: