From 668b2625e3a595f49334dd415fbc25fd6d07f602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sat, 23 Jun 2018 19:37:59 +0200 Subject: [PATCH] Options to disable ingress objects --- contrib/helm/harbor/README.md | 2 ++ contrib/helm/harbor/templates/ingress/ingress.yaml | 3 +++ contrib/helm/harbor/values.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/contrib/helm/harbor/README.md b/contrib/helm/harbor/README.md index cf0cdc6e0..0387366ef 100644 --- a/contrib/helm/harbor/README.md +++ b/contrib/helm/harbor/README.md @@ -211,6 +211,8 @@ The following tables lists the configurable parameters of the Harbor chart and t | `notary.nodeSelector` | Node labels for pod assignment | `{}` | | `notary.tolerations` | Tolerations for pod assignment | `[]` | | `notary.affinity` | Node/Pod affinities | `{}` | +| **Ingress** | +| `ingress.enabled` | Enable ingress objects. | `true` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example: diff --git a/contrib/helm/harbor/templates/ingress/ingress.yaml b/contrib/helm/harbor/templates/ingress/ingress.yaml index a8d482745..d1c4870f3 100644 --- a/contrib/helm/harbor/templates/ingress/ingress.yaml +++ b/contrib/helm/harbor/templates/ingress/ingress.yaml @@ -1,3 +1,4 @@ +{{ if .Values.ingress.enabled }} apiVersion: extensions/v1beta1 kind: Ingress metadata: @@ -56,3 +57,5 @@ spec: serviceName: {{ template "harbor.fullname" . }}-ui servicePort: 80 + +{{ end }} \ No newline at end of file diff --git a/contrib/helm/harbor/values.yaml b/contrib/helm/harbor/values.yaml index 4abcd29e9..59f5c461b 100644 --- a/contrib/helm/harbor/values.yaml +++ b/contrib/helm/harbor/values.yaml @@ -51,6 +51,7 @@ secretKey: not-a-secure-key # These annotations allow the registry to work behind the nginx # ingress controller. ingress: + enabled: true annotations: ingress.kubernetes.io/ssl-redirect: "true" ingress.kubernetes.io/proxy-body-size: "0"