Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-1846

SMCP fails to reconcile when enabling PILOT_ENABLE_GATEWAY_API_DEPLOYMENT_CONTROLLER

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • OSSM 2.2.2
    • None
    • Maistra
    • None
    • Sprint 55

      When the above setting is enabled (set to true), the operator generates the following error:

      'istiod/templates/clusterrolebinding.yaml: an empty namespace may not be set when a resource name is provided'

      The following smcp can be used to test:

      apiVersion: maistra.io/v2
      kind: ServiceMeshControlPlane
      metadata: 
        name: istio-ingress
        namespace: openshift-istiod
      spec: 
        security: 
          manageNetworkPolicy: false
        policy: 
          type: Istiod
        gateways: 
          ingress: 
            service: 
              type: LoadBalancer
            ingress: true
            enabled: true
        addons: 
          grafana: 
            enabled: false
          kiali: 
            enabled: false
          prometheus: 
            enabled: false
        runtime: 
          components: 
            pilot: 
              container: 
                env: 
                  PILOT_ENABLE_GATEWAY_API: "true"
                  PILOT_ENABLE_GATEWAY_API_STATUS: "true"
                  PILOT_ENABLE_GATEWAY_API_DEPLOYMENT_CONTROLLER: "true"
        telemetry: 
          type: Istiod
        version: v2.2 

      The issue is a missing namespace here: https://github.com/maistra/istio-operator/blob/maistra-2.2/resources/helm/v2.2/istio-control/istio-discovery/templates/clusterrolebinding.yaml#L23

              rcernich1 Rob Cernich
              rcernich1 Rob Cernich
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: