[bitnami/common] Fix incorrect backend calculation for networking/v1beta1

This commit is contained in:
Javier Salmeron Garcia
2020-12-31 11:56:55 +01:00
parent f1cf4b87f6
commit c59b86919f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ annotations:
category: Infrastructure
apiVersion: v2
# Please make sure that version and appVersion are always the same.
appVersion: 1.2.2
appVersion: 1.2.3
description: A Library Helm Chart for grouping common logic between bitnami charts. This chart is not deployable by itself.
home: https://github.com/bitnami/charts/tree/master/bitnami/common
icon: https://bitnami.com/downloads/logos/bitnami-mark.png
@@ -20,4 +20,4 @@ sources:
- https://github.com/bitnami/charts
- http://www.bitnami.com/
type: library
version: 1.2.2
version: 1.2.3
+1 -1
View File
@@ -13,7 +13,7 @@ Params:
*/}}
{{- define "common.ingress.backend" -}}
{{- $apiVersion := (include "common.capabilities.ingress.apiVersion" .context) -}}
{{- if (eq $apiVersion "extensions/v1beta1") -}}
{{- if or (eq $apiVersion "extensions/v1beta1") (eq $apiVersion "networking.k8s.io/v1beta1") -}}
serviceName: {{ .serviceName }}
servicePort: {{ .servicePort }}
{{- else -}}