Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31794

Ignore unknown CRD fields

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Unassigned Unassigned
              darenwkt Daren Wong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: