zlhgo commented on pull request #208:
URL: 
https://github.com/apache/apisix-helm-chart/pull/208#issuecomment-1005555638


   i want to upgrade ingress to 1.4.0, but i get some errors bleow. thanks.
   
   command
   ```
   kubectl apply -f 
https://raw.githubusercontent.com/tao12345666333/apisix-helm-chart/ingress-v1.4/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml
   ```
   output
   ```
   
customresourcedefinition.apiextensions.k8s.io/apisixpluginconfigs.apisix.apache.org
 configured
   error validating "crd.yaml": error validating data: 
ValidationError(CustomResourceDefinition.spec.versions[0]): unknown field 
"deprecated" in 
io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion;
 if you choose to ignore these errors, turn validation off with --validate=false
   Error from server (Invalid): error when applying patch:
   
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"labels\":{\"apisix.apache.org/app\":\"ingress-apisix\"},\"name\":\"apisixclusterconfigs.apisix.apache.org\"},\"spec\":{\"group\":\"apisix.apache.org\",\"names\":{\"kind\":\"ApisixClusterConfig\",\"plural\":\"apisixclusterconfigs\",\"shortNames\":[\"acc\"],\"singular\":\"apisixclusterconfig\"},\"preserveUnknownFields\":false,\"scope\":\"Cluster\",\"versions\":[{\"name\":\"v2beta3\",\"schema\":{\"openAPIV3Schema\":{\"properties\":{\"spec\":{\"properties\":{\"admin\":{\"properties\":{\"adminKey\":{\"type\":\"string\"},\"baseURL\":{\"pattern\":\"https?://[^:]+:(\\\\d+)\",\"type\":\"string\"}},\"required\":[\"baseURL\"],\"type\":\"object\"},\"monitoring\":{\"properties\":{\"prometheus\":{\"properties\":{\"enable\":{\"type\":\"boolean\"}},\"type\":\"object\"},\"skywalking\":{\"properties\":{\"
 
enable\":{\"type\":\"boolean\"},\"sampleRatio\":{\"maximum\":1,\"minimum\":0.00001,\"type\":\"number\"}},\"type\":\"object\"}},\"type\":\"object\"}},\"type\":\"object\"}},\"type\":\"object\"}},\"served\":true,\"storage\":true,\"subresources\":{\"status\":{}}}]}}\n"},"labels":{"apisix.apache.org/app":"ingress-apisix"}},"spec":{"preserveUnknownFields":false,"versions":[{"name":"v2beta3","schema":{"openAPIV3Schema":{"properties":{"spec":{"properties":{"admin":{"properties":{"adminKey":{"type":"string"},"baseURL":{"pattern":"https?://[^:]+:(\\d+)","type":"string"}},"required":["baseURL"],"type":"object"},"monitoring":{"properties":{"prometheus":{"properties":{"enable":{"type":"boolean"}},"type":"object"},"skywalking":{"properties":{"enable":{"type":"boolean"},"sampleRatio":{"maximum":1,"minimum":0.00001,"type":"number"}},"type":"object"}},"type":"object"}},"type":"object"}},"type":"object"}},"served":true,"storage":true,"subresources":{"status":{}}}]}}
   to:
   Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", 
GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
   Name: "apisixclusterconfigs.apisix.apache.org", Namespace: ""
   for: "crd.yaml": CustomResourceDefinition.apiextensions.k8s.io 
"apisixclusterconfigs.apisix.apache.org" is invalid: status.storedVersions[0]: 
Invalid value: "v2alpha1": must appear in spec.versions
   Error from server (Invalid): error when applying patch:
   
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"labels\":{\"apisix.apache.org/app\":\"ingress-apisix\"},\"name\":\"apisixconsumers.apisix.apache.org\"},\"spec\":{\"group\":\"apisix.apache.org\",\"names\":{\"kind\":\"ApisixConsumer\",\"plural\":\"apisixconsumers\",\"shortNames\":[\"ac\"],\"singular\":\"apisixconsumer\"},\"preserveUnknownFields\":false,\"scope\":\"Namespaced\",\"versions\":[{\"name\":\"v2beta3\",\"schema\":{\"openAPIV3Schema\":{\"properties\":{\"spec\":{\"properties\":{\"authParameter\":{\"oneOf\":[{\"required\":[\"basicAuth\"]},{\"required\":[\"keyAuth\"]}],\"properties\":{\"basicAuth\":{\"oneOf\":[{\"required\":[\"value\"]},{\"required\":[\"secretRef\"]}],\"properties\":{\"secretRef\":{\"properties\":{\"name\":{\"minLength\":1,\"type\":\"string\"}},\"required\":[\"name\"],\"type\":\"object\"},\"value\":{\"properties\"
 
:{\"password\":{\"minLength\":1,\"type\":\"string\"},\"username\":{\"minLength\":1,\"type\":\"string\"}},\"required\":[\"username\",\"password\"],\"type\":\"object\"}},\"type\":\"object\"},\"keyAuth\":{\"oneOf\":[{\"required\":[\"value\"]},{\"required\":[\"secretRef\"]}],\"properties\":{\"secretRef\":{\"properties\":{\"name\":{\"minLength\":1,\"type\":\"string\"}},\"required\":[\"name\"],\"type\":\"object\"},\"value\":{\"properties\":{\"key\":{\"minLength\":1,\"type\":\"string\"}},\"required\":[\"key\"],\"type\":\"object\"}},\"type\":\"object\"}},\"type\":\"object\"}},\"required\":[\"authParameter\"],\"type\":\"object\"}},\"type\":\"object\"}},\"served\":true,\"storage\":true,\"subresources\":{\"status\":{}}}]}}\n"},"labels":{"apisix.apache.org/app":"ingress-apisix"}},"spec":{"preserveUnknownFields":false,"versions":[{"name":"v2beta3","schema":{"openAPIV3Schema":{"properties":{"spec":{"properties":{"authParameter":{"oneOf":[{"required":["basicAuth"]},{"required":["keyAuth"]}],"prope
 
rties":{"basicAuth":{"oneOf":[{"required":["value"]},{"required":["secretRef"]}],"properties":{"secretRef":{"properties":{"name":{"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"value":{"properties":{"password":{"minLength":1,"type":"string"},"username":{"minLength":1,"type":"string"}},"required":["username","password"],"type":"object"}},"type":"object"},"keyAuth":{"oneOf":[{"required":["value"]},{"required":["secretRef"]}],"properties":{"secretRef":{"properties":{"name":{"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"value":{"properties":{"key":{"minLength":1,"type":"string"}},"required":["key"],"type":"object"}},"type":"object"}},"type":"object"}},"required":["authParameter"],"type":"object"}},"type":"object"}},"served":true,"storage":true,"subresources":{"status":{}}}]}}
   to:
   Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", 
GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
   Name: "apisixconsumers.apisix.apache.org", Namespace: ""
   for: "crd.yaml": CustomResourceDefinition.apiextensions.k8s.io 
"apisixconsumers.apisix.apache.org" is invalid: status.storedVersions[0]: 
Invalid value: "v2alpha1": must appear in spec.versions
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to