Skip to content

Commit

Permalink
fix(ingress): update to new ingress v1 backend format
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaktar committed May 27, 2021
1 parent 684a2ab commit 444686d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/verdaccio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A lightweight, private NPM proxy registry for GKE
name: verdaccio-gke-charts
version: 0.1.0
version: 0.1.1
appVersion: 5.0.4
home: https://xlts-dev.github.io/verdaccio-gke-charts/
icon: https://cdn.verdaccio.dev/logos/default.png
Expand Down
18 changes: 12 additions & 6 deletions charts/verdaccio/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ spec:
{{- range $ingressExtraPaths }}
- path: {{ default "/" .path | quote }}
backend:
serviceName: {{ default $serviceName .service }}
servicePort: {{ default $servicePort .port }}
service:
name: {{ default $serviceName .service }}
port:
number: {{ default $servicePort .port }}
{{- end }}
{{- range $p := $paths }}
- path: {{ $p }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
service:
name: {{ $serviceName }}
port:
number: {{ $servicePort }}
{{- end -}}
{{- end -}}
{{- else }}
Expand All @@ -43,8 +47,10 @@ spec:
{{- range $p := $paths }}
- path: {{ $p }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
service:
name: {{ $serviceName }}
port:
number: {{ $servicePort }}
{{- end -}}
{{- end -}}
{{- if .Values.ingress.tls }}
Expand Down

0 comments on commit 444686d

Please sign in to comment.