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

Kind test script Istio install failing with kubectl version v1.18.x #1802

Closed
glindsell opened this issue May 6, 2020 · 3 comments · Fixed by #1810
Closed

Kind test script Istio install failing with kubectl version v1.18.x #1802

glindsell opened this issue May 6, 2020 · 3 comments · Fixed by #1810

Comments

@glindsell
Copy link
Contributor

testing/scripts/kind_test_setup.sh fails with following errors due to CRD not being present:

unable to recognize "istio-1.4.2.yaml": no matches for kind "Gateway" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "VirtualService" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "EnvoyFilter" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "Policy" in version "authentication.istio.io/v1alpha1"
unable to recognize "istio-1.4.2.yaml": no matches for kind "Gateway" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "Sidecar" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "MeshPolicy" in version "authentication.istio.io/v1alpha1"
unable to recognize "istio-1.4.2.yaml": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3"
unable to recognize "istio-1.4.2.yaml": no matches for kind "attributemanifest" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "attributemanifest" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "handler" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "handler" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "handler" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "rule" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "instance" in version "config.istio.io/v1alpha2"
unable to recognize "istio-1.4.2.yaml": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3"

This has only been found to happen when using the following version of kubectl client:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-21T01:25:41Z", GoVersion:"go1.13.10", Compiler:"gc", Platform:"linux/amd64"}

Versions v1.17.x and v1.16.x of kubectl client do not fail.

Additionally if using v1.18.x, if the CRDs are installed separately as shown here before Istio is installed, then the errors do not occur.

@glindsell glindsell added bug triage Needs to be triaged and prioritised accordingly labels May 6, 2020
@glindsell
Copy link
Contributor Author

@glindsell
Copy link
Contributor Author

glindsell commented May 7, 2020

#1808 pins the test scripts to kubectl v1.17.0
Replaced by #1810

@ukclivecox ukclivecox removed triage Needs to be triaged and prioritised accordingly bug labels May 7, 2020
@glindsell
Copy link
Contributor Author

Fixed by #1810

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