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

Cleanup pattern for getting node MCP for MCN

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • 0

      Currently, the function for determining the MachineConfigPool (MCP) a node is a part of (`GetPrimaryPoolNameForMCN`) is called as needed throughout the MachineConfigOperator's (MCO's) update functions and then passed into the MachineConfigNode (MCN) update functions (`GenerateAndApplyMachineConfigNodes` and `GenerateAndApplyMachineConfigNodeSpec`) as needed. This pattern was implemented as part of MCO-1501.

      This story involves updating the pattern described to move the pool determination functionality (`GetPrimaryPoolNameForMCN`) into the MCN generation functions (`GenerateAndApplyMachineConfigNodes` and `GenerateAndApplyMachineConfigNodeSpec`) and then cleaning up code where applicable.

      Done when:

      References:

              rh-ee-nkani Naseerah Kani Pakrudeen Ali (Inactive)
              rh-ee-ijanssen Isabella Janssen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: