diff --git a/helm/trivy/templates/ingress.yaml b/helm/trivy/templates/ingress.yaml index c07410e19ff..fc4a59fc98c 100644 --- a/helm/trivy/templates/ingress.yaml +++ b/helm/trivy/templates/ingress.yaml @@ -1,6 +1,6 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "trivy.fullname" . -}} -{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} +{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }} apiVersion: networking.k8s.io/v1 {{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} apiVersion: networking.k8s.io/v1beta1