You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A template like SqlJob.yaml.template can include multiple documents, separated by ---. This is could be useful if one Resource needs to be implemented with multiple Kubernetes objects. For example, a SqlJob could be implemented as a FlinkDeploymentand a ConfigMap.
However, the operator currently treats each Resource as a single document, and makes one call to the Kubernetes API for each. Instead, the operator should:
Generate yaml by applying templates, as it does now.
Split the output yaml into separate documents.
Apply each document individually.
It is probably insufficient to just String.split on ---, as this sequence may appear in the template in an escaped string. Instead, the YAML parser should be used to parse the YAML into a list of documents.
The text was updated successfully, but these errors were encountered:
A template like
SqlJob.yaml.template
can include multiple documents, separated by---
. This is could be useful if oneResource
needs to be implemented with multiple Kubernetes objects. For example, aSqlJob
could be implemented as aFlinkDeployment
and aConfigMap
.However, the operator currently treats each
Resource
as a single document, and makes one call to the Kubernetes API for each. Instead, the operator should:It is probably insufficient to just
String.split
on---
, as this sequence may appear in the template in an escaped string. Instead, the YAML parser should be used to parse the YAML into a list of documents.The text was updated successfully, but these errors were encountered: