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

Prevent changing .spec.authoritativeAPI when CAPI Machine is deleting or its Infra is not ready

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • CLOUD Sprint 274, CLOUD Sprint 275, CLOUD Sprint 276, CLOUD Sprint 277, CLOUD Sprint 278, CLOUD Sprint 279, CLOUD Sprint 280

      Background

      When CAPI Machines have infrastructureReady false or omitted, or have non-zero deletion timestamp we should prevent changing the .spec.authoritativeAPI (i.e. trigger a migration) to avoid unpredictable issues given the transitioning state of the machine/instance. 

      Behaviours

      • Reject updates to a CAPI Machine's MAPI mirror .spec.authoritativeAPI if CAPI Machine's .status.infrastructureReady
        is false or omitted
      • Reject updates to a CAPI Machine's MAPI mirror .spec.authoritativeAPI if .metadata.deletionTimestamp is non-zero

      Steps

      • Explore using VAP for Machine validation in CAPI
      •  

      Stakeholders

      • <Who is interested in this/where did they request this>

      Definition of Done

      • <Add items that need to be completed for this card>
      • Docs
      • <Add docs requirements for this card>
      • Testing
      • <Explain testing that will be added>

              rh-ee-tbarberb Theo Barber-Bany
              ddonati@redhat.com Damiano Donati
              None
              None
              Milind Yadav Milind Yadav
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: