Skip to content

Commit

Permalink
fix(helm): update networking API version detection (#4106)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoareguer authored Apr 23, 2023
1 parent be47b68 commit 76662d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/trivy/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 76662d5

Please sign in to comment.