Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1646

[janus-idp/backstage-showcase] Unable to use 3scale dynamic plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • RHDH Sprint 3252

      [2050761985] Upstream Reporter: fmenesesg
      Upstream issue status: Closed
      Upstream description:

      Describe the bug

      3scale dynamic plugin is expecting 2 environment variables "3SCALE_BASE_URL" and "3SCALE_ACCESS_TOKEN", they can not be set up because and environment variable cannot start with a digit.

      Upgrade "developer-hub" failed: cannot patch "developer-hub" with kind Deployment: Deployment.apps "developer-hub" is invalid: [spec.template.spec.containers[0].env[5].name: Invalid value: "3SCALE_BASE_URL": a valid environment variable name must consist of alphabetic characters, digits, '', '', or '.', and must not start with a digit (e.g. 'my.env-name', or 'MY_ENV.NAME', or 'MyEnvName1', regex used for validation is '[-._a-zA-Z][-._a-zA-Z0-9]*'), spec.template.spec.containers[0].env[6].name: Invalid value: "3SCALE_ACCESS_TOKEN": a valid environment variable name must consist of alphabetic characters, digits, '', '', or '.', and must not start with a digit (e.g. 'my.env-name', or 'MY_ENV.NAME', or 'MyEnvName1', regex used for validation is '[-._a-zA-Z][-._a-zA-Z0-9]*')]

      Expected Behavior

      APIs loaded on the catalog from a 3scale tenant

      What are the steps to reproduce this bug?

      1. Install Developer hub 1.0 using helm chart on Openshift
      2. Enable 3scale plugin on helm chart
      - disabled: false
             package: >-
               ./dynamic-plugins/dist/janus-idp-backstage-plugin-3scale-backend-dynamic
      1. Upgrade chart
      2. Check events

      Versions of software used and environment

      Developer hub v1.0 Char version 1.0.0-1/ App Version 1.0-200


      Upstream URL: https://github.com/janus-idp/backstage-showcase/issues/849

              rhn-support-wsiqueir William Siqueira
              upstream-sync Upstream Sync
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: