{{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1" -}} --- 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 }}.{{ $.Values.global.host }}" --- 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 }}.{{ $.Values.global.host }}" {{- end -}}