From 8fef156e8fd6fc4a92204ffe37572fe6bc7201a2 Mon Sep 17 00:00:00 2001
From: NierYYDS <141559828+NierYYDS@users.noreply.github.com>
Date: Mon, 4 Sep 2023 17:29:49 +0800
Subject: [PATCH] fix: specify owner to kube_owner in task of copy cni plugins
 (#10407)

if not set owner to kube_owner in unarchive module, the owner of /opt/cni/bin will changed to root, which is inconsistent with the previous task.
---
 roles/network_plugin/cni/tasks/main.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/roles/network_plugin/cni/tasks/main.yml b/roles/network_plugin/cni/tasks/main.yml
index 1e49d228b..d74f169c6 100644
--- a/roles/network_plugin/cni/tasks/main.yml
+++ b/roles/network_plugin/cni/tasks/main.yml
@@ -12,4 +12,5 @@
     src: "{{ downloads.cni.dest }}"
     dest: "/opt/cni/bin"
     mode: 0755
+    owner: "{{ kube_owner }}"
     remote_src: yes
-- 
GitLab