Skip to content

Commit 6bc771e

Browse files
authored
Merge pull request #812 from ywk253100/201214_ingress
Backport several fixes into the 1.5 branch
2 parents 82c61c0 + 5ffaa33 commit 6bc771e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

templates/core/core-dpl.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ spec:
4242
- name: core
4343
image: {{ .Values.core.image.repository }}:{{ .Values.core.image.tag }}
4444
imagePullPolicy: {{ .Values.imagePullPolicy }}
45+
{{- if .Values.core.startupProbe.enabled }}
4546
startupProbe:
4647
httpGet:
4748
path: /api/v2.0/ping
@@ -50,6 +51,7 @@ spec:
5051
failureThreshold: 360
5152
initialDelaySeconds: {{ .Values.core.startupProbe.initialDelaySeconds }}
5253
periodSeconds: 10
54+
{{- end }}
5355
livenessProbe:
5456
httpGet:
5557
path: /api/v2.0/ping

templates/ingress/ingress.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
{{- $_ := set . "notary_path" "/.*" -}}
2020
{{- else }}
2121
{{- $_ := set . "portal_path" "/" -}}
22-
{{- $_ := set . "api_path" "/api/" -}}
23-
{{- $_ := set . "service_path" "/service/" -}}
24-
{{- $_ := set . "v2_path" "/v2/" -}}
25-
{{- $_ := set . "chartrepo_path" "/chartrepo/" -}}
26-
{{- $_ := set . "controller_path" "/c/" -}}
22+
{{- $_ := set . "api_path" "/api" -}}
23+
{{- $_ := set . "service_path" "/service" -}}
24+
{{- $_ := set . "v2_path" "/v2" -}}
25+
{{- $_ := set . "chartrepo_path" "/chartrepo" -}}
26+
{{- $_ := set . "controller_path" "/c" -}}
2727
{{- $_ := set . "notary_path" "/" -}}
2828
{{- end }}
2929

values.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ expose:
99
# images. Refer to https://github.com/goharbor/harbor/issues/5291
1010
# for the detail.
1111
enabled: true
12-
# The source of the tls certificate. Set it as "auto", "secret"
12+
# The source of the tls certificate. Set it as "auto", "secret"
1313
# or "none" and fill the information in the corresponding section
1414
# 1) auto: generate the tls certificate automatically
1515
# 2) secret: read the tls certificate from the specified secret.
@@ -415,6 +415,7 @@ core:
415415
replicas: 1
416416
## Startup probe values
417417
startupProbe:
418+
enabled: true
418419
initialDelaySeconds: 10
419420
# resources:
420421
# requests:

0 commit comments

Comments
 (0)