Merge pull request #12671 from VannTen/prep/kubectl_apply_ssa

Make kubectl_apply_stdin available to other roles (+ SSA support)
This commit is contained in:
Kubernetes Prow Robot
2025-11-07 03:42:52 -08:00
committed by GitHub
4 changed files with 14 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
---
dependencies:
- role: kubernetes-apps/utils
- role: kubernetes-apps/ansible
when:
- inventory_hostname == groups['kube_control_plane'][0]

View File

@@ -0,0 +1,12 @@
---
_kubectl_apply_stdin:
- "{{ kubectl }}"
- apply
- -f
- "-"
- -n
- "{{ k8s_namespace }}"
- --server-side="{{ server_side_apply | lower }}"
# TODO: switch to default SSA
server_side_apply: false
kubectl_apply_stdin: "{{ _kubectl_apply_stdin | join(' ') }}"

View File

@@ -1,2 +0,0 @@
---
kubectl_apply_stdin: "{{ kubectl }} apply -f - -n {{ k8s_namespace }}"