8gears / plausible-analytics-helm-chart

A Plausible Analytics Helm Chart for Kubernetes
Apache License 2.0
40 stars 19 forks source link

no matches for kind "Ingress" in version "networking.k8s.io/v1beta1" stikes back #17

Open baznikin opened 1 year ago

baznikin commented 1 year ago

This issue was already addressed in #13 However, in my environment it is not working. For example see https://github.com/DefectDojo/django-DefectDojo/issues/6466 Better way to workaround this issue is to use Has Capabilities feature:

{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
"networking.k8s.io/v1"
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}}
"networking.k8s.io/v1beta1"
{{- else -}}
"extensions/v1beta1"
{{- end -}}