You need to generate the data variable first using some output filter I made an example using the Kubernetes plugin against a cluster.
- defaultTab: nodes
description: ''
executionEnabled: true
id: 837d506a-0816-4b56-8428-26072487b83a
loglevel: INFO
name: KubernetesTest
nodeFilterEditable: false
plugins:
ExecutionLifecycle: null
scheduleEnabled: true
sequence:
commands:
- exec: echo "nginx"
plugins:
LogFilter:
- config:
invalidKeyPattern: \s|\$|\{|\}|\\
logData: 'true'
name: mydata
regex: (.*)
replaceFilteredResult: 'false'
type: key-value-data
- configuration:
config_file: /Users/user/.kube/config
debug: 'false'
namespace: mynamespace
type: Pod
verify_ssl: 'false'
yaml: |-
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: ${data.mydata}
image: nginx:latest
ports:
- containerPort: 8080
nodeStep: true
type: Kubernetes-Create
keepgoing: false
strategy: node-first
uuid: 837d506a-0816-4b56-8428-26072487b83a
Check the first step, it prints the app name and generates the `${data.mydata} in the second step.
Same for options, you can use the ${option.myoption}
format in your YAML Kubernetes definition.