diff --git a/templates/ingress/ingresshost.yaml b/templates/ingress/ingresshost.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9c775858c49c3bb467ffbdd25fb2e08c7e5274f2 --- /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 -}}