Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
kubernetes-operator-1.4.0
Description
Currently, Kubernetes Operator fails to create a CR (FlinkDeployment or FlinkSessionJob) if there is a new field in the CR that's not included in the CRD.
This change is to propose removing this restriction for FlinkSessionJobStatus, FlinkSessionJobSpec, FlinkDeploymentStatus, FlinkDeploymentSpec by adding class-level annotation `@JsonIgnoreProperties(ignoreUnknown = true)`.
This means that any new fields in CR will be ignored if it's not registered in CRD preventing failures to create the CR. This helps users who need to deploy CRD and Kubernetes Operator separately to ensure backward compatibility.
Attachments
Issue Links
- links to