diff --git a/templates/NOTES.txt b/templates/NOTES.txt index d32387ef2e60765da408527d1c66c78a6bf32617..f9b57e270b082192035d17e1edd1e8d7820b87e7 100644 --- a/templates/NOTES.txt +++ b/templates/NOTES.txt @@ -1,3 +1,3 @@ Please wait for several minutes for Harbor deployment to complete. -Then you should be able to visit the Harbor portal at {{ .Values.externalURL }}.{{ $.Values.global.host }} +Then you should be able to visit the Harbor portal at {{ $.Values.global.host }} For more details, please visit https://github.com/goharbor/harbor diff --git a/templates/ingress/ingresshost.yaml b/templates/ingress/ingresshost.yaml index 3ba76aa52e9fb49f998d5d3e47b64b5be6b785c8..5cae3983032b678dae27941983ab404cc0bad9dd 100644 --- a/templates/ingress/ingresshost.yaml +++ b/templates/ingress/ingresshost.yaml @@ -3,7 +3,7 @@ apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressHost metadata: - name: "{{ template "harbor.ingress" . }}-core" + name: "{{ template "harbor.ingress" . }}" annotations: {{- with .Values.expose.ingress.annotations }} {{- toYaml . | nindent 4 }} @@ -11,18 +11,6 @@ metadata: 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 }}" + host: "{{ $.Values.global.host }}" + {{- end -}} diff --git a/templates/ingress/ingressroute.yaml b/templates/ingress/ingressroute.yaml index 4bc0d140b0a83dffab1630fcc2b915d550905051..d689ace518a70503251f3fda6a764edfbd8327b4 100644 --- a/templates/ingress/ingressroute.yaml +++ b/templates/ingress/ingressroute.yaml @@ -14,45 +14,39 @@ spec: entryPoints: - websecure routes: - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/`) kind: Rule services: - name: {{ template "harbor.portal" . }} port: {{ template "harbor.portal.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/api/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/api/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/service/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/service/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/v2/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/v2/`) kind: Rule middlewares: - name: "{{ template "harbor.ingress" . }}-https" services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/chartrepo/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/chartrepo/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/c/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/c/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.notary }}.{{ $.Values.global.host }}`) && PathPrefix(`/`) - kind: Rule - services: - - name: {{ template "harbor.notary-server" . }} - port: 4443 - tls: - certResolver: default + tls: {} --- apiVersion: bcc.bd-apaas.com/v1alpha1 kind: IngressRoute @@ -68,39 +62,34 @@ spec: entryPoints: - web routes: - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/`) kind: Rule services: - name: {{ template "harbor.portal" . }} port: {{ template "harbor.portal.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/api/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/api/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/service/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/service/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/v2/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/v2/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/chartrepo/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/chartrepo/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.core }}.{{ $.Values.global.host }}`) && PathPrefix(`/c/`) + - match: Host(`{{ $.Values.global.host }}`) && PathPrefix(`/c/`) kind: Rule services: - name: {{ template "harbor.core" . }} port: {{ template "harbor.core.servicePort" . }} - - match: Host(`{{ .Values.expose.ingress.hosts.notary }}.{{ $.Values.global.host }}`) && PathPrefix(`/`) - kind: Rule - services: - - name: {{ template "harbor.notary-server" . }} - port: 4443 {{- end -}}