Skip to content

skoala-init x-kubernetes-validations Error

When upgrading skoala-init from v0.11.0 to v0.12.0, an error occurred that prevented the upgrade:

unknown field "x-kubernets-validations" in io.k8s.apiextensions-apiserver....

error

Troubleshooting Process

  1. Q: Is the operation procedure correct?

    A: Apply the CRD(s) first, then perform the helm upgrade. The operation procedure is correct, ruling out operation issues.

  2. Q: Is the version tested and passed by QA, and was the upgrade function tested successfully during internal testing?

    A: Confirm that it is correct.

  3. Q: Confirm that the version being used matches the version of the Kubernetes cluster used for testing?

    A: v1.21 (version being used), v1.26 (version used for testing).

  4. Q: Based on the error screenshot and the above information, it is initially inferred that the customer's Kubernetes cluster version does not match the corresponding CRD. Additionally, skoala-init provides initial conditional configurations for all microservices, which includes multiple CRDs. According to the skoala-init v0.12.0 ChangeLog, the Gateway-API CRD has been upgraded. Therefore, the inference is:

    A: The issue is caused by the upgrade of the Gateway-API.

Reference Documents

Solution

Choose the appropriate solution based on the actual situation.

Comments