We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fbf262 commit b7102eaCopy full SHA for b7102ea
1 file changed
builtin/core/roles/defaults/defaults/main/02-image_registry.yaml
@@ -13,7 +13,7 @@ image_registry:
13
# Image registry authentication settings
14
auth:
15
registry: >-
16
- {{- if .image_registry.type | empty | not }}
+ {{- if .image_registry.type | empty | not -}}
17
{{- if .image_registry.ha_vip | empty | not -}}
18
{{ .image_registry.ha_vip }}
19
{{- else if .groups.image_registry | default list | empty | not -}}
@@ -30,8 +30,14 @@ image_registry:
30
hub.kubesphere.com.cn
31
{{- end -}}
32
33
- username: admin
34
- password: Harbor12345
+ username: >-
+ {{- if .zone | ne "cn" -}}
35
+ admin
36
+ {{- end -}}
37
+ password: >-
38
39
+ Harbor12345
40
41
skip_tls_verify: >-
42
{{- if .image_registry.type | empty -}}
43
true
0 commit comments