Commit 5d5455ac authored by 舒成's avatar 舒成

update

parent 60a29597
{{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1/IngressHost" -}} {{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1" -}}
--- ---
apiVersion: bcc.bd-apaas.com/v1alpha1 apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressHost kind: IngressHost
......
{{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1/IngressRoute" -}} {{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1" -}}
--- ---
apiVersion: bcc.bd-apaas.com/v1alpha1 apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute kind: IngressRoute
...@@ -31,6 +31,8 @@ spec: ...@@ -31,6 +31,8 @@ spec:
port: {{ template "harbor.core.servicePort" . }} port: {{ template "harbor.core.servicePort" . }}
- match: Host(`{{ .Values.expose.ingress.hosts.core }}`) && PathPrefix(`/v2/`) - match: Host(`{{ .Values.expose.ingress.hosts.core }}`) && PathPrefix(`/v2/`)
kind: Rule kind: Rule
middlewares:
- name: "{{ template "harbor.ingress" . }}-https"
services: services:
- name: {{ template "harbor.core" . }} - name: {{ template "harbor.core" . }}
port: {{ template "harbor.core.servicePort" . }} port: {{ template "harbor.core.servicePort" . }}
......
{{- if .Capabilities.APIVersions.Has "bcc.bd-apaas.com/v1alpha1" -}}
apiVersion: bcc.bd-apaas.com/v1alpha1
kind: Middleware
metadata:
name: "{{ template "harbor.ingress" . }}-https"
spec:
headers:
customRequestHeaders:
X-Forwarded-Proto: "https"
{{- end -}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment