Skip to content

Commit

Permalink
Proxy: Handle multiple proxies correct
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed May 21, 2020
1 parent 2e486a7 commit 250bcf0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: proxy
description: A Helm chart for Kubernetes
type: application
version: 0.1.1
version: 0.1.2
appVersion: 1.0.0
1 change: 1 addition & 0 deletions charts/proxy/templates/endpoints.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- range .Values.proxy }}
---
apiVersion: v1
kind: Endpoints
metadata:
Expand Down
1 change: 1 addition & 0 deletions charts/proxy/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{{- $k8sVersion := .Capabilities.KubeVersion.GitVersion -}}
{{- range .Values.proxy }}
{{- $name := .name -}}
---
{{- if semverCompare ">=1.14-0" $k8sVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
Expand Down
1 change: 1 addition & 0 deletions charts/proxy/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $servicePort := .Values.service.port -}}
{{- range .Values.proxy }}
---
apiVersion: v1
kind: Service
metadata:
Expand Down

0 comments on commit 250bcf0

Please sign in to comment.