Uploaded image for project: 'Maistra'
  1. Maistra
  2. MAISTRA-2332

api: Fix issue with SMCP CRD

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • api
    • None
    • False
    • False
    • Undefined

      All CRD's defined in manifests directory install successfully, except by the SMCP v2:

       

       

      $ oc apply -f manifests/maistra.io_servicemeshcontrolplanes.yaml 
      
      W0505 13:30:59.645781 92328 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
      Warning: resource customresourcedefinitions/servicemeshcontrolplanes.maistra.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by oc apply. oc apply should only be used on resources created declaratively by either oc create --save-config or oc apply. The missing annotation will be patched automatically.
      W0505 13:31:01.401922 92328 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
      The CustomResourceDefinition "servicemeshcontrolplanes.maistra.io" is invalid: 
      * metadata.annotations: Too long: must have at most 262144 bytes
      * spec.versions[1].schema.openAPIV3Schema.properties[status].properties[appliedSpec].properties[gateways].properties[additionalEgress].additionalProperties.properties[service].properties[ports].items.properties[protocol].default: Forbidden: must not be set (cannot set default values in apiextensions.k8s.io/v1beta1 CRDs, must use apiextensions.k8s.io/v1)
      * spec.versions[1].schema.openAPIV3Schema.properties[status].properties[appliedSpec].properties[gateways].properties[additionalIngress].additionalProperties.properties[service].properties[ports].items.properties[protocol].default: Forbidden: must not be set (cannot set default values in apiextensions.k8s.io/v1beta1 CRDs, must use apiextensions.k8s.io/v1)
      ... similar errors follow ...
       
      

       

      Seems related to https://github.com/kubernetes/kubernetes/issues/91395

       

              jsantana@redhat.com Jonh Wendell
              jsantana@redhat.com Jonh Wendell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: