Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use 3scale dynamic plugin #849

Closed
fmenesesg opened this issue Dec 20, 2023 · 0 comments · Fixed by #948, #951 or janus-idp/backstage-plugins#1173
Closed

Unable to use 3scale dynamic plugin #849

fmenesesg opened this issue Dec 20, 2023 · 0 comments · Fixed by #948, #951 or janus-idp/backstage-plugins#1173
Assignees
Labels
jira Sync this issue with Jira kind/bug Something isn't working status/triage

Comments

@fmenesesg
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment