static_environment

Any transformer can have arbitrary environment variables set by the pipeline engine when a pipeline is executed. To add these, refer to Note that these environment variables are NOT settable by users. Each item in static_environment is a Kubernetes corev1.EnvVar. In essence, that means it can either be:

{ "name": "", "value": ""}

Or take a more complex form to pull from existing `Secret`s or `ConfigMap`s:

{ "name": "", "valueFrom": {"secretKeyRef": {"name": "", "key": ""}}}

Example

"static_environment": [
    {
      "name": "FLINK_JOB_STATUS_RETRIES",
      "value": "3"
    },
    {
      "name": "FLINK_JOB_STATUS_POLL_MS",
      "value": "30000"
    }
]

In the example above, each time this Transformer is instantiated as part of a Pipeline, FLINK_JOB_STATUS_RETRIES and FLINK_JOB_STATUS_POLL_MS will both be set to the static values.