orangezhang123 commented on issue #1810:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1810#issuecomment-1519055032

   
https://github.com/apache/apisix-ingress-controller/pull/1479/commits/c241811081cef80316396e74e877d2be33284e44#diff-4794137938ef7143c08dce702859051113682b655dea211c9d09997c0f70c894
   i tried the link method to update crd ,but failed too
   
    kubectl apply -f  
https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-0.11.1/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml
 
   
   error: error validating 
"https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-0.11.1/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml":
 error validating data: 
[ValidationError(CustomResourceDefinition.spec.versions[1]): unknown field 
"deprecated" in 
io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion,
 ValidationError(CustomResourceDefinition.spec.versions[2]): 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
   
   
    kubectl apply -f  
https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-0.11.1/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml
  --validate=false
   
   
customresourcedefinition.apiextensions.k8s.io/apisixclusterconfigs.apisix.apache.org
 configured
   
customresourcedefinition.apiextensions.k8s.io/apisixconsumers.apisix.apache.org 
configured
   
customresourcedefinition.apiextensions.k8s.io/apisixpluginconfigs.apisix.apache.org
 configured
   Warning: resource customresourcedefinitions/apisixroutes.apisix.apache.org 
is missing the kubectl.kubernetes.io/last-applied-configuration annotation 
which is required by kubectl apply. kubectl apply should only be used on 
resources created declaratively by either kubectl create --save-config or 
kubectl apply. The missing annotation will be patched automatically.
   customresourcedefinition.apiextensions.k8s.io/apisixtlses.apisix.apache.org 
configured
   
customresourcedefinition.apiextensions.k8s.io/apisixupstreams.apisix.apache.org 
configured
   The CustomResourceDefinition "apisixroutes.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