From 60a29597cc772c1ddc191ae8c64aeef6228cf3c4 Mon Sep 17 00:00:00 2001 From: shucheng Date: Wed, 13 Jan 2021 16:28:05 +0800 Subject: [PATCH] add ingresshost --- templates/ingress/ingresshost.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 templates/ingress/ingresshost.yaml diff --git a/templates/ingress/ingresshost.yaml b/templates/ingress/ingresshost.yaml new file mode 100644 index 0000000..9c77585 --- /dev/null +++ b/templates/ingress/ingresshost.yaml @@ -0,0 +1,28 @@ +{{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1/IngressHost" -}} +--- +apiVersion: bcc.bd-apaas.com/v1alpha1 +kind: IngressHost +metadata: + name: "{{ template "harbor.ingress" . }}-core" + annotations: + {{- with .Values.expose.ingress.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{ include "harbor.labels" . | nindent 4 }} +spec: + host: "{{ .Values.expose.ingress.hosts.core }}" +--- +apiVersion: bcc.bd-apaas.com/v1alpha1 +kind: IngressHost +metadata: + name: "{{ template "harbor.ingress" . }}-notary" + annotations: + {{- with .Values.expose.ingress.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{ include "harbor.labels" . | nindent 4 }} +spec: + host: "{{ .Values.expose.ingress.hosts.notary }}" +{{- end -}} -- 2.26.0