Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-644

Unify Validate/Complete Function Signatures Across Providers

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      User Story:

      As a HyperShift CLI, I want:

      • the validate/complete function signatures to be unified across cloud providers

      so that

      • the maintenance of these functions will be easier.
      • an interface can be defined on top of these functions

      Context:

      This ticket originated from a code review discussion on PR #4538. The request is to ensure that the public Validate() function (following the pattern Steve introduced) has the same signature across all platforms. This would allow defining an interface on top of these functions.

      Platform-specific validation functions (e.g., ValidateMgmtClusterSupportsNodePoolCPUType) can have different signatures as needed.

      The TODO pattern to use in code is:

      // TODO: unify Validate/Complete signatures across providers (CNTRLPLANE-644)
      

      Acceptance Criteria:

      Description of criteria:

      • The Validate() and Complete() functions are unified across providers with consistent signatures
      • An interface is defined for these functions
      • Platform-specific validation functions are refactored as needed while maintaining their specialized parameters

      (optional) Out of Scope:

        • Platform-specific helper functions like ValidateMgmtClusterSupportsNodePoolCPUType do not need unified signatures

      Engineering Details:

              hypershift-automation hypershift-team automation
              rh-ee-brcox Bryan Cox
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: