Skip to content

Commit 2a5060a

Browse files
qike-msQi Ke
andauthored
fix node bootstrap script for held kube packages (#53)
Co-authored-by: Qi Ke <noreply@ked.com>
1 parent 616ab5c commit 2a5060a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cli/internal/config/nodebootstrap/assets/script.sh.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apt-get update -y
2525
apt-get upgrade -y
2626
{{- end }}
2727
{{- if .Packages }}
28-
apt-get install -y {{ join .Packages " " }}
28+
apt-get install -y --allow-change-held-packages {{ join .Packages " " }}
2929
{{- end }}
3030
{{- end }}
3131
{{- if .FQDN }}

cli/internal/config/nodebootstrap/script_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func Test_marshalScript_basic(t *testing.T) {
3636
"#!/bin/bash",
3737
"set -euo pipefail",
3838
"apt-get update -y",
39-
"apt-get install -y curl",
39+
"apt-get install -y --allow-change-held-packages curl",
4040
"mkdir -p '/tmp'",
4141
`cat <<'EOF' > '/tmp/config.json'`,
4242
`{"key":"value"}`,

0 commit comments

Comments
 (0)