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

create-cluster.sh produces error "field dnsSearch not found in type v1alpha4.Networking" #4954

Open
candita opened this issue Dec 19, 2024 · 3 comments
Labels

Comments

@candita
Copy link

candita commented Dec 19, 2024

Description:

The create-cluster.sh includes a configuration item (dnsSearch) that doesn't exist for the Cluster apiVersion.
https://github.com/envoyproxy/gateway/blob/main/tools/hack/create-cluster.sh#L25-L27

Repro steps:

create-cluster.sh will fail to create a cluster, with the output:

ERROR: failed to create cluster: unable to decode config: yaml: unmarshal errors:
line 8: field dnsSearch not found in type v1alpha4.Networking

Removing dnsSearch from Cluster.networking fixes it.

Environment:

main branch

@candita candita added the triage label Dec 19, 2024
@zirain
Copy link
Member

zirain commented Dec 20, 2024

this's used for avoid some issue on ipv6 cluster, and it worked as expected.
can you share more details about when this happen?

@candita
Copy link
Author

candita commented Dec 20, 2024

This happens on an ipv4 cluster, kind version 0.14.0. Perhaps this version of kind doesn't yet have the API update for dnsSearch.

@zirain
Copy link
Member

zirain commented Dec 21, 2024

the script should use kind binary in tools/bin/kind, which should be built from v0.25.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants