Skip to content

Commit

Permalink
Fix ownership of /opt/cni (#379)
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <[email protected]>
  • Loading branch information
ahmedwaleedmalik authored Apr 24, 2024
1 parent 73d0d0b commit ba7524a
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 9 deletions.
3 changes: 3 additions & 0 deletions deploy/osps/default/osp-amzn2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down
6 changes: 4 additions & 2 deletions deploy/osps/default/osp-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ spec:
{{- /* unpack CNI */}}
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/osps/default/osp-flatcar-cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down
3 changes: 3 additions & 0 deletions deploy/osps/default/osp-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down
3 changes: 3 additions & 0 deletions deploy/osps/default/osp-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down
3 changes: 3 additions & 0 deletions deploy/osps/default/osp-rockylinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down
3 changes: 3 additions & 0 deletions deploy/osps/default/osp-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.30.0"
CRI_TOOLS_RELEASE="${CRI_TOOLS_RELEASE:-v1.29.0}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.30.0"
cri_tools_base_url="https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRI_TOOLS_RELEASE}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.30.0"
CRI_TOOLS_RELEASE="${CRI_TOOLS_RELEASE:-v1.29.0}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.30.0"
CRI_TOOLS_RELEASE="${CRI_TOOLS_RELEASE:-v1.29.0}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.29.0"
cri_tools_base_url="https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRI_TOOLS_RELEASE}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.29.0"
cri_tools_base_url="https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRI_TOOLS_RELEASE}"
Expand Down
1 change: 1 addition & 0 deletions pkg/controllers/osc/testdata/osc-ubuntu-aws-dualstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ spec:
tar xvf "$cni_filename"
rm -f "$cni_filename"
cd -
chown -R root:root "$cni_bin_dir"
CRI_TOOLS_RELEASE="v1.29.0"
cri_tools_base_url="https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRI_TOOLS_RELEASE}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ spec:
rm -f "$cni_filename"
cd -
{{- /* set ownership of the CNI binaries to root:root. Required due to https://github.com/cilium/cilium/issues/23838 */}}
chown -R root:root "$cni_bin_dir"
{{- /* # cri-tools variables */}}
{{- if semverCompare "~1.27.0" .KubeVersion }}
CRI_TOOLS_RELEASE="v1.27.1"
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit ba7524a

Please sign in to comment.