Skip to content

Commit

Permalink
Fix k3s binary perms
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Dinov <[email protected]>
  • Loading branch information
atanasdinov committed Mar 27, 2024
1 parent de7244b commit 1d570fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/combustion/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func TestConfigureKubernetes_SuccessfulSingleNodeK3sCluster(t *testing.T) {
assert.Contains(t, contents, "export INSTALL_K3S_SKIP_DOWNLOAD=true")
assert.Contains(t, contents, "export INSTALL_K3S_SKIP_START=true")
assert.Contains(t, contents, "export INSTALL_K3S_BIN_DIR=/opt/bin")
assert.Contains(t, contents, "chmod +x $ARTEFACTS_DIR/kubernetes/install/cool-k3s-binary")
assert.Contains(t, contents, "chmod +x $INSTALL_K3S_BIN_DIR/k3s")
assert.Contains(t, contents, "cp $ARTEFACTS_DIR/kubernetes/install/cool-k3s-binary $INSTALL_K3S_BIN_DIR/k3s")
assert.Contains(t, contents, "sh $ARTEFACTS_DIR/kubernetes/install-kubernetes.sh")

Expand Down Expand Up @@ -308,7 +308,7 @@ func TestConfigureKubernetes_SuccessfulMultiNodeK3sCluster(t *testing.T) {
assert.Contains(t, contents, "export INSTALL_K3S_SKIP_DOWNLOAD=true")
assert.Contains(t, contents, "export INSTALL_K3S_SKIP_START=true")
assert.Contains(t, contents, "export INSTALL_K3S_BIN_DIR=/opt/bin")
assert.Contains(t, contents, "chmod +x $ARTEFACTS_DIR/kubernetes/install/cool-k3s-binary")
assert.Contains(t, contents, "chmod +x $INSTALL_K3S_BIN_DIR/k3s")
assert.Contains(t, contents, "cp $ARTEFACTS_DIR/kubernetes/install/cool-k3s-binary $INSTALL_K3S_BIN_DIR/k3s")
assert.Contains(t, contents, "sh $ARTEFACTS_DIR/kubernetes/install-kubernetes.sh")

Expand Down
2 changes: 1 addition & 1 deletion pkg/combustion/templates/k3s-multi-node-installer.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export INSTALL_K3S_SKIP_START=true
export INSTALL_K3S_BIN_DIR=/opt/bin

mkdir -p $INSTALL_K3S_BIN_DIR
chmod +x {{ .binaryPath }}
cp {{ .binaryPath }} $INSTALL_K3S_BIN_DIR/k3s
chmod +x $INSTALL_K3S_BIN_DIR/k3s

sh {{ .installScript }}
2 changes: 1 addition & 1 deletion pkg/combustion/templates/k3s-single-node-installer.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export INSTALL_K3S_SKIP_START=true
export INSTALL_K3S_BIN_DIR=/opt/bin

mkdir -p $INSTALL_K3S_BIN_DIR
chmod +x {{ .binaryPath }}
cp {{ .binaryPath }} $INSTALL_K3S_BIN_DIR/k3s
chmod +x $INSTALL_K3S_BIN_DIR/k3s

sh {{ .installScript }}

0 comments on commit 1d570fc

Please sign in to comment.