Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
baznikin opened this issue Dec 9, 2022 · 0 comments

Comments

@baznikin
Copy link

baznikin commented Dec 9, 2022

This issue was already addressed in #13
However, in my environment it is not working. For example see DefectDojo/django-DefectDojo#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 -}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant