Skip to content

Commit

Permalink
Revert "fix: failed to install without image_registry (#2442)"
Browse files Browse the repository at this point in the history
This reverts commit 23e91cd.
  • Loading branch information
redscholar authored Nov 4, 2024
1 parent 23e91cd commit a2eea67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builtin/roles/install/cri/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ image_registry:
registry: |
{{- if and .image_registry.ha_vip (ne .image_registry.ha_vip "") }}
{{ .image_registry.ha_vip }}
{{- else if .groups.image_registry | default list | len | lt 0 }}
{{- else }}
{{ index .inventory_hosts (.groups.image_registry | default list | first) "internal_ipv4" }}
{{- end }}
username: admin
Expand Down
2 changes: 1 addition & 1 deletion builtin/roles/install/image-registry/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image_registry:
registry: |
{{- if and .image_registry.ha_vip (ne .image_registry.ha_vip "") }}
{{ .image_registry.ha_vip }}
{{- else if .groups.image_registry | default list | len | lt 0 }}
{{- else }}
{{ index .inventory_hosts (.groups.image_registry | default list | first) "internal_ipv4" }}
{{- end }}
username: admin
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubesphere/kubekey/v4

go 1.23.0
go 1.22.0

require (
github.com/Masterminds/sprig/v3 v3.2.3
Expand Down

0 comments on commit a2eea67

Please sign in to comment.