Skip to content

Commit b80928e

Browse files
committed
chore(workflow): add auth for k3s
1 parent 9e0597f commit b80928e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

_scripts/install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ function configure_registries {
9292
elif [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]]; then
9393
if [[ "$1" == "runtime" ]] ; then
9494
cat << EOF > "/etc/rancher/k3s/registries.yaml"
95+
configs:
96+
"registry.drycc.cc":
97+
auth:
98+
username: anonymous
99+
password: anonymous
95100
mirrors:
96101
"docker.io":
97102
endpoint:
@@ -100,6 +105,11 @@ mirrors:
100105
EOF
101106
else
102107
cat << EOF > "/etc/rancher/k3s/registries.yaml"
108+
configs:
109+
"registry.drycc.cc":
110+
auth:
111+
username: anonymous
112+
password: anonymous
103113
mirrors:
104114
"docker.io":
105115
endpoint:

charts/workflow/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ registry:
279279
password: ""
280280
# The redirect parameters is configured only when using an on-cluster Registry instance
281281
# The subsection provides configuration for managing redirects from content backends.
282-
# For backends that support it, redirecting is enabled by default.
283-
redirect: "true"
282+
# For backends that support it, redirecting is disabled by default.
283+
redirect: "false"
284284

285285
passport:
286286
# The following parameters are configured only when using an on-cluster passport

0 commit comments

Comments
 (0)