Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-63215

Hosted Cluster CRD Uses CEL validations incompatible with 4.15 apiserver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.21.0
    • HyperShift
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      when executing hypershift install on 4.15, the following error occurs when adding custom resource definitions

      Error: CustomResourceDefinition.apiextensions.k8s.io "hostedclusters.hypershift.openshift.io" is invalid: spec.validation.openAPIV3Schema.properties[spec].x-kubernetes-validations[8].rule: Invalid value: apiextensions.ValidationRule{Rule:"self.networking.networkType == 'OVNKubernetes' || !self.?operatorConfiguration.clusterNetworkOperator.ovnKubernetesConfig.hasValue()", Message:"ovnKubernetesConfig is forbidden when networkType is not OVNKubernetes", MessageExpression:"", Reason:(*apiextensions.FieldValueErrorReason)(nil), FieldPath:""}: compilation failed: ERROR: <input>:1:56: unsupported syntax '.?' | self.networking.networkType == 'OVNKubernetes' || !self.?operatorConfiguration.clusterNetworkOperator.ovnKubernetesConfig.hasValue()

      this validation will need to be updated to be compatible with the 4.15 apiserver

              rh-ee-btroutma Brae Troutman
              cdoan@redhat.com Christopher Doan
              None
              None
              Yu Li Yu Li
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: