Skip to content

Commit

Permalink
chore: only add BackendTLSPolicy when Gateway API is installed in the…
Browse files Browse the repository at this point in the history
… cluster
  • Loading branch information
pmalek committed Jan 21, 2025
1 parent 64a5c50 commit 3201afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,6 @@ resource roles into their separate templates.
- list
- watch
{{- if or (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1alpha3") (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1alpha2") (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1beta1") (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1")}}
{{- end }}
- apiGroups:
- gateway.networking.k8s.io
resources:
Expand All @@ -1331,6 +1330,7 @@ resource roles into their separate templates.
- patch
- update
{{- end }}
{{- end }}
{{- if (semverCompare ">= 3.2.0" (include "kong.effectiveVersion" .Values.ingressController.image)) }}
- apiGroups:
- configuration.konghq.com
Expand Down

0 comments on commit 3201afe

Please sign in to comment.