support deprecated exec-plugin #2

Open
opened 2026-05-07 23:36:50 +06:00 by bdeshi · 0 comments
Owner

the deprecated exec plugin is (poorly) described here: https://kubectl.docs.kubernetes.io/guides/extending_kustomize/exec_plugins/

a transformer plugin called like this gets the plugin config yaml as the first arg, and receives the entire resource list as a plain multi-doc yaml in stdin (NOT as a ResourceList).

set -euo pipefail

# collect inputs
{
echo "Received config:"
echo "$(cat "$@")"
echo "Received resources:"
echo "$(</dev/stdin)"
} > inputs.txt

this will print the inputs in inputs.txt.

the deprecated exec plugin is (poorly) described here: https://kubectl.docs.kubernetes.io/guides/extending_kustomize/exec_plugins/ a transformer plugin called like this gets the plugin config yaml as the first arg, and receives the entire resource list as a plain multi-doc yaml in stdin (NOT as a ResourceList). ```shell set -euo pipefail # collect inputs { echo "Received config:" echo "$(cat "$@")" echo "Received resources:" echo "$(</dev/stdin)" } > inputs.txt ``` this will print the inputs in `inputs.txt`.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bdeshi/kustomize-plugin-yqtransformer#2
No description provided.