Adds a new pod based on the template used in pod.yaml
. This YAML file is stored as workflow-scoped variable via the git file add-pod.yaml.pod.yaml
.
echo '{"server": "https://10.100.6.10:6443", "name": "hello" }' | direktiv-sync exec add-pod.yaml
Lists all pods with the label server: http
.
echo '{"server": "https://10.100.6.10:6443" }' | direktiv-sync exec list-pods.yaml
Checks if the pods with that name exists.
echo '{"server": "https://10.100.6.10:6443", "name": "hello" }' | direktiv-sync exec exists-pod.yaml
Deletes a pod.
echo '{"server": "https://10.100.6.10:6443", "name": "hello" }' | direktiv-sync exec delete-pod.yaml