apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this
name: "[TechPreviewNoUpgrade] Network"
crd: 0000_10_config-operator_01_network-TechPreviewNoUpgrade.crd.yaml
tests:
  onCreate:
    - name: Should be able to set status conditions
      initial: |
        apiVersion: config.openshift.io/v1
        kind: Network
        spec: {} # No spec is required for a Network
        status:
          conditions:
            - type: NetworkTypeMigrationInProgress
              status: "False"
              reason: "Reason"
              message: "Message"
              lastTransitionTime: "2023-10-25T12:00:00Z"
      expected: |
        apiVersion: config.openshift.io/v1
        kind: Network
        spec: {}
        status:
          conditions:
            - type: NetworkTypeMigrationInProgress
              status: "False"
              reason: "Reason"
              message: "Message"
              lastTransitionTime: "2023-10-25T12:00:00Z"
