Skip to content

Commit 03431b7

Browse files
pshanoopSanoob Pattanath
andauthored
Add support for AWS LoadBalancer Controller with actions annotation (#40)
* Add support for AWS LoadBalancer Controller * Bump chart version * Remove empty line changes Co-authored-by: Sanoob Pattanath <[email protected]>
1 parent 638e76d commit 03431b7

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

charts/verdaccio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: A lightweight private npm proxy registry (sinopia fork)
33
name: verdaccio
4-
version: 0.16.2
4+
version: 0.16.3
55
appVersion: 4.7.2
66
home: https://verdaccio.org
77
icon: https://cdn.verdaccio.dev/logos/default.png

charts/verdaccio/templates/ingress.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{- $serviceName := include "verdaccio.fullname" . -}}
33
{{- $servicePort := .Values.service.port -}}
44
{{- $paths := .Values.ingress.paths -}}
5+
{{- $ingressExtraPaths := .Values.ingress.extraPaths -}}
56
{{- if .Values.ingress.useExtensionsApi }}
67
apiVersion: extensions/v1beta1
78
{{- else }}
@@ -26,6 +27,12 @@ spec:
2627
- host: {{ $host }}
2728
http:
2829
paths:
30+
{{- range $ingressExtraPaths }}
31+
- path: {{ default "/" .path | quote }}
32+
backend:
33+
serviceName: {{ default $serviceName .service }}
34+
servicePort: {{ default $servicePort .port }}
35+
{{- end }}
2936
{{- range $p := $paths }}
3037
- path: {{ $p }}
3138
backend:

charts/verdaccio/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ ingress:
4545
useExtensionsApi: false
4646
paths:
4747
- /
48+
# Use this to define, ALB ingress's actions annotation based routing. Ex: for ssl-redirect
49+
# Ref: https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/tasks/ssl_redirect/
50+
extraPaths: []
4851
# hosts:
4952
# - npm.blah.com
5053
# annotations:

0 commit comments

Comments
 (0)