Skip to content

Commit

Permalink
Support overriding cni directory owner (kubernetes-sigs#10929)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickkwa authored and dibi-codes committed May 7, 2024
1 parent 396fc6b commit 597530b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/network_plugin/cni/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
cni_bin_owner: "{{ kube_owner }}"
4 changes: 2 additions & 2 deletions roles/network_plugin/cni/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
path: /opt/cni/bin
state: directory
mode: 0755
owner: "{{ kube_owner }}"
owner: "{{ cni_bin_owner }}"
recurse: true

- name: CNI | Copy cni plugins
unarchive:
src: "{{ downloads.cni.dest }}"
dest: "/opt/cni/bin"
mode: 0755
owner: "{{ kube_owner }}"
owner: "{{ cni_bin_owner }}"
remote_src: yes

0 comments on commit 597530b

Please sign in to comment.