pgwatch2 icon indicating copy to clipboard operation
pgwatch2 copied to clipboard

Helm: outdated version for networking.k8s.io

Open barazbay opened this issue 1 year ago • 2 comments

cybertec-postgresql/pgwatch2/openshift_k8s/helm-chart-k8s-pg-storage/templates/exporter-ingress.yaml cybertec-postgresql/pgwatch2/openshift_k8s/helm-chart-k8s-pg-storage/templates/grafana-ingress.yaml cybertec-postgresql/pgwatch2/openshift_k8s/helm-chart-k8s-pg-storage/templates/web-ingress.yaml

https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingress-v122 The extensions/v1beta1 and networking.k8s.io/v1beta1 API versions of Ingress is no longer served as of v1.22.

{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1beta1 {{- else -}} apiVersion: extensions/v1beta1

I tried to install helm charts in newer versions of kubernetes with no success because of the outdated version of ingress

barazbay avatar Dec 14 '23 14:12 barazbay

Thanks for letting know! Would you like to provide a patch for it?

Thanks in advance!

pashagolub avatar Dec 16 '23 15:12 pashagolub

I agree the chart is not state of the art or maintainable,

I've adjusted the templates (Grafana ConfigMaps that are not obeying the desired namespace for example, and many small other issues, PodSecurityPolicy deprecated coming from old Grafana chart etc.) rendered it manually on disk, using helm template, and cleaned up the components, one by one, again. I have it working:

Screenshot 2024-02-03 at 11 44 24

i'll try to come up with a patch which would include:

  • cleanup & cleanup and more cleanup, mapping of all resources needed
  • Github actions to build and test the chart
  • Github pages hosting for the chart
  • Probably a complete different alternative / layout of the chart

Since it is a little bit more than a patch, would it be something for a conversation with other team members from Cybertec @pashagolub ?

mariusrugan avatar Feb 03 '24 10:02 mariusrugan

helm and openshift templates are deprecated. No changes/fixes are accepted anymore. Thanks

pashagolub avatar Feb 28 '24 09:02 pashagolub