Uploaded image for project: 'Machine Config Operator'
  1. Machine Config Operator
  2. MCO-1675

[API 2/6 - Dev Work] Update API for Status Reporting needs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • MCO Sprint 274
    • 0

      As a result of the investigations in MCO-1542 and MCO-1682, updates to the MachineConfigNode (MCN) API object are needed. This task involves making the necessary changes decided on in the mentioned spikes.

      Done when:

      • MCN API has the following changes:
        • MCN.Spec.ConfigImage
          • Field similar to MCN.Spec.ConfigVersion to hold the node's `machineconfiguration.openshift.io/desiredImage` annotation value.
        • MCN.Status.ConfigImage
          • Field similar to MCN.Status.ConfigVersion to hold the node's `machineconfiguration.openshift.io/desiredImage` and `machineconfiguration.openshift.io/currentImage` annotation values.
        • Add the following to the the `StateProgress` enum so that they can be used as condition types in MCN.Status.Conditions.
          • Split `AppliedFilesAndOS` into `AppliedOSImage` and `AppliedFiles`.
            • Note that "splitting" this condition might not be allowed. Rather we may need to simply add  `AppliedOSImage` and `AppliedFiles` phases and phase out the use of `AppliedFilesAndOS`. This may require conversations with the API team.
          • Add `ImagePulledFromRegistry`.
      • Note that this does not include merging the API. That work, including the work associated with socializing the API changes, should be tracked as part of MCO-1856.

      References:

      • An example of a PR introducing new fields into an existing API tying back to a Feature Gate can be found here.

              rh-ee-nkani Naseerah Kani Pakrudeen Ali (Inactive)
              mkrejci-1 Michelle Krejci
              Isabella Janssen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: