apache / apisix-helm-chart

Apache APISIX Helm Chart
https://apisix.apache.org/
Apache License 2.0
218 stars 208 forks source link

CRD ApisixGlobalRule is not automatically deployed by helm chart #743

Open sebschlue opened 3 months ago

sebschlue commented 3 months ago

I have updated Apisix from chart version apisix-2.1.0 to chart version apisix-2.6.0 and noticed that CRD ApisixGlobalRule was missing. It did not get installed automatically.

I have now manually installed this missing CRD by running

kubectl apply --server-side -f https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-2.6.0/charts/apisix-ingress-controller/crds/ApisixGlobalRule.yaml

There does not seem to be a helm chart option like installCRDs = true/false or something similar.

And since the other CRDs may be outdated by now, I also update those but I need "--force-conflicts" because those CRDs were managed by Helm in the past and are apparently no longer managed by helm.

kubectl apply --force-conflicts --server-side -f https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-2.6.0/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml

So in this sense, there are two issues: a) the new CRD does not get deployed and b) the old CRDs do not get updated any more.

DGolubets commented 3 months ago

I had to do the same. Expected a smother upgrade, tbh.