Support overriding cni directory owner (#10929)

pull/10943/head
Ricky Kwan 2024-02-19 05:58:11 -05:00 committed by GitHub
parent 4a259ee3f0
commit 5d822ad8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
---
cni_bin_owner: "{{ kube_owner }}"

View File

@ -4,7 +4,7 @@
path: /opt/cni/bin path: /opt/cni/bin
state: directory state: directory
mode: 0755 mode: 0755
owner: "{{ kube_owner }}" owner: "{{ cni_bin_owner }}"
recurse: true recurse: true
- name: CNI | Copy cni plugins - name: CNI | Copy cni plugins
@ -12,5 +12,5 @@
src: "{{ downloads.cni.dest }}" src: "{{ downloads.cni.dest }}"
dest: "/opt/cni/bin" dest: "/opt/cni/bin"
mode: 0755 mode: 0755
owner: "{{ kube_owner }}" owner: "{{ cni_bin_owner }}"
remote_src: yes remote_src: yes