Update k8s_exec and k8s_cp to include container name (#1858)

Update secrets.yml

We need to specify a container in environments that use sidecar injection, like in the case of istio service mesh. If the container is not specified, and a side car is injected so there are multiple containers running in the pod, this task will fail because a container was not specified in a pod with multiple containers.
This commit is contained in:
fluzzykitten
2024-05-16 15:32:38 -05:00
committed by GitHub
parent 64e4279d96
commit 4720d29fda
8 changed files with 10 additions and 0 deletions

View File

@@ -115,6 +115,7 @@
k8s_exec:
namespace: "{{ backup_pvc_namespace }}"
pod: "{{ ansible_operator_meta.name }}-db-management"
container: "{{ ansible_operator_meta.name }}-db-management"
command: |
bash -c "
function end_keepalive {