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

[API] Validate OSImageStream.spec.defaultStream field

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • MCO Sprint 285
    • 0

      Story

      With the addition of the new OSImageStream.spec.defaultStream field we would need to validate that the user inputs are valid.

      This change is about adding a small API validation rule that ensures the field is validated based on the status streams. If the status has not been yet reported there's no validation to apply.

      Acceptance Criteria

      • The field is validated to ensure that, when given, its value points to a stream available in OSImageStream.status.availableStreams.
      • If the status has not been set yet no validation should be performed.

              rh-ee-pabrodri Pablo Rodriguez Nava
              rh-ee-pabrodri Pablo Rodriguez Nava
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: