Skip to content

Commit

Permalink
new inputs as values so we can set them
Browse files Browse the repository at this point in the history
  • Loading branch information
jbolda committed Jan 10, 2023
1 parent 8c6af32 commit ed8412d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
--set githubToken="$GITHUB_TOKEN" \
--set humanitecToken="$HUMANITEC_TOKEN" \
--set authSessionClientSecret="$AUTH_SESSION_CLIENT_SECRET" \
--set auth0ClientSecret="$AUTH0_CLIENT_SECRET" \
--set auth0Domain="$AUTH0_DOMAIN" \
--set auth0ClientId="$AUTH0_CLIENT_ID" \
--set auth0ClientSecret="$AUTH0_CLIENT_SECRET" \
--set githubClientId="$AUTH_GITHUB_CLIENT_ID" \
--set githubClientSecret="$AUTH_GITHUB_CLIENT_SECRET"
env:
Expand Down
5 changes: 5 additions & 0 deletions charts/backstage/Values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ingressPort: 80
baseUrl: https://backstage.frontside.services
# any randomly generated string
authSessionClientSecret: backstage_auth0_client_secret
# github scaffolder token
githubToken: ''
# auth0 tenant information
auth0Domain: ''
auth0ClientId: ''
Expand All @@ -12,3 +14,6 @@ auth0Audience: 'https://frontside-backstage'
# however empty strings throw a config error
# auth0Connection:
# auth0ConnectionScope:
# github app information
githubClientId: ''
githubClientSecret: ''
2 changes: 1 addition & 1 deletion charts/backstage/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
name: backstage-secrets
type: Opaque
data:
GITHUB_TOKEN: {{ required "You must provide a Auth Session Client Secret" .Values.githubToken | b64enc}}
GITHUB_TOKEN: {{ required "You must provide a Github Token to read private repositories" .Values.githubToken | b64enc}}
AUTH_SESSION_CLIENT_SECRET: {{ required "You must provide a Auth Session Client Secret" .Values.authSessionClientSecret | b64enc}}
HUMANITEC_TOKEN: {{ required "You must provide a Humanitec token" .Values.humanitecToken | b64enc}}
AUTH_AUTH0_CLIENT_SECRET: {{ required "You must provide a Auth0 Client Secret" .Values.auth0ClientSecret | b64enc}}
Expand Down

0 comments on commit ed8412d

Please sign in to comment.