Uploaded image for project: 'OpenShift Cloud'
  1. OpenShift Cloud
  2. OCPCLOUD-2880

Implement MachineSet label selector and Machine Label MAPI<->CAPI Conversion

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • CLOUD Sprint 268, CLOUD Sprint 269, CLOUD Sprint 270, CLOUD Sprint 271

      Background

      MAPI MachineSets have label selector to machine Label mapping. There are CAPI equivalents for these labels. During MachineSet/Machine conversion we should convert to the MAPI/CAPI equivalent.

       

      machine.openshift.io/cluster-api-cluster: <clusterID>
      <--->
      cluster.x-k8s.io/cluster-name: <clusterID>
      machine.openshift.io/cluster-api-machine-type: <role>
      machine.openshift.io/cluster-api-machine-role: <role>
      <--->
      node-role.kubernetes.io/<role>: ""
      
      machine.openshift.io/cluster-api-machineset: <clusterID>-<role>-<region>
      <--->
      cluster.x-k8s.io/set-name:<clusterID>-<role>-<region>
      

      Steps

      • Look into upstream code to determine if there are any possible values for the above labels that we have not accounted for. 
      • Determine if there is difference between MAPI type and role label and if they can be consolidated into one CAPI label.
      • Add the conversion to the conversion library.

      Stakeholders

      • Cluster Infra

      Definition of Done

      • Conversion library converts between MAPI<->CAPI for labels an Label selector on machines and machinesets
      • Docs
      • <Add docs requirements for this card>
      • Testing
      • Add unit tests

              ddonati@redhat.com Damiano Donati
              rmanak@redhat.com Radek Manak
              None
              None
              Zhaohua Sun Zhaohua Sun
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: