Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4115

Missing routes/custom-host permision for BA Operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.12.0.GA
    • 7.12.0.GA
    • Cloud
    • None
    • OCP 4.8
      BA Operator 7.12.0 CR2

    • False
    • False
    • CR2
    • CR3
    • +
    • Hide

      Create following kieapp:

      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata: 
        name: myapp
      spec: 
        commonConfig: 
          adminPassword: usetheforce123@
          adminUser: yoda
          disableSsl: false
        environment: rhpam-authoring
        objects: 
          console: 
            env: 
              - name: KIE_ADMIN_USER
                value: yoda
              - name: KIE_ADMIN_PWD
                value: usetheforce123@
              - name: HTTPS_NAME
                value: jboss
              - name: HTTPS_PASSWORD
                value: mykeystorepass
            keystoreSecret: kie-app-secret
            routeHostname: 01c4-workbench.apps.production.rhba.baqe.org
          servers: 
            - env: 
                - name: KIE_ADMIN_USER
                  value: yoda
                - name: KIE_ADMIN_PWD
                  value: usetheforce123@
                - name: HTTPS_NAME
                  value: jboss
                - name: HTTPS_PASSWORD
                  value: mykeystorepass
              keystoreSecret: kie-app-secret
              routeHostname: 75a8-kieserver.apps.production.rhba.baqe.org
        useImageTags: true
      
      Show
      Create following kieapp: apiVersion: app.kiegroup.org/v 2 kind: KieApp metadata: name: myapp spec: commonConfig: adminPassword: usetheforce 123 @ adminUser: yoda disableSsl: false environment: rhpam-authoring objects: console: env: - name: KIE_ADMIN_USER value: yoda - name: KIE_ADMIN_PWD value: usetheforce 123 @ - name: HTTPS_NAME value: jboss - name: HTTPS_PASSWORD value: mykeystorepass keystoreSecret: kie-app-secret routeHostname: 01 c 4 -workbench.apps.production.rhba.baqe.org servers: - env: - name: KIE_ADMIN_USER value: yoda - name: KIE_ADMIN_PWD value: usetheforce 123 @ - name: HTTPS_NAME value: jboss - name: HTTPS_PASSWORD value: mykeystorepass keystoreSecret: kie-app-secret routeHostname: 75 a 8 -kieserver.apps.production.rhba.baqe.org useImageTags: true
    • 2022 Week 02-04 (from Jan 10)

      During testing of custom host configuration I found issue during creating a new route for deployment. When is custom route set in KieApp, operator will fail to create a route with following exception, and no deployments are created.

      Route.route.openshift.io \"myapp-rhpamcentr\" is invalid: spec.host: Forbidden: you do not have permission to set the host field of the route
      

      This failure is caused by missing permission for routes/custom-host. For more details see these PRs - https://github.com/openshift/origin/issues/22612 & https://github.com/openshift/openshift-docs/pull/14539
      We also faced same issue in Kogito operator - see https://github.com/kiegroup/kogito-operator/pull/989/files#diff-77fc6c482c0f52c75b02e4ebd44c52ee62a4ebd04fb1e5519cfbaadb091220e8R408. In Kogito Operator was then applied little different approach see KOGITO-5903 and it's PR https://github.com/kiegroup/kogito-operator/pull/1033

      Goal:

      • add missing permissions to the BA Operator

              mdessi-1 Massimiliano Dessi
              jakubschwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: