[stable/2024.1] Add optional kubeconfig path to roles (#1919)
This is an automated cherry-pick of #1871
/assign mnaser
diff --git a/roles/powerstore_csi/tasks/main.yml b/roles/powerstore_csi/tasks/main.yml
index 5caec12..1bc2eb6 100644
--- a/roles/powerstore_csi/tasks/main.yml
+++ b/roles/powerstore_csi/tasks/main.yml
@@ -41,7 +41,7 @@
name: csi-powerstore
chart_ref: /var/lib/csi-powerstore/helm/csi-powerstore
release_namespace: kube-system
- kubeconfig: /etc/kubernetes/admin.conf
+ kubeconfig: "{{ powerstore_csi_helm_kubeconfig }}"
values:
# NOTE(mnaser): The newer versions of the Helm charts automatically detect
# these values so we can drop them once we move to v2.4.0