Skip to content

Commit

Permalink
fix: re-add missing kong.ingressVersion template
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Jul 6, 2023
1 parent 8324911 commit beb7812
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/kong/ci/admin-api-service-clusterip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
admin:
enabled: true
type: ClusterIP

ingressController:
enabled: false
10 changes: 10 additions & 0 deletions charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1581,3 +1581,13 @@ policy/v1beta1
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
{{- define "kong.ingressVersion" -}}
{{- 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 -}}
{{- end -}}

0 comments on commit beb7812

Please sign in to comment.