Created
July 21, 2024 21:01
-
-
Save rm3l/54dc59957f03a4fe650f636c5ac6a9bb to your computer and use it in GitHub Desktop.
my-rhdh-cr-example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: app-config-rhdh | |
data: | |
"app-config-rhdh.yaml": | | |
backend: | |
auth: | |
externalAccess: | |
- type: legacy | |
options: | |
subject: legacy-default-config | |
secret: "${BACKEND_SECRET}" | |
auth: | |
# see https://backstage.io/docs/auth/ to learn about auth providers | |
environment: development | |
providers: | |
github: | |
development: | |
clientId: '${GH_CLIENT_ID}' | |
clientSecret: '${GH_CLIENT_SECRET}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: dynamic-plugins-rhdh | |
data: | |
dynamic-plugins.yaml: | | |
includes: | |
- dynamic-plugins.default.yaml | |
plugins: | |
- package: './dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamic' | |
disabled: false | |
pluginConfig: | |
catalog: | |
providers: | |
github: | |
myorg: | |
organization: '${GH_ORG}' | |
schedule: | |
# supports cron, ISO duration, "human duration" (used below) | |
frequency: { minutes: 30} | |
# supports ISO duration, "human duration (used below) | |
timeout: { minutes: 3} | |
initialDelay: { seconds: 15} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rhdh.redhat.com/v1alpha2 | |
kind: Backstage | |
metadata: | |
name: my-rhdh | |
spec: | |
application: | |
image: quay.io/rhdh/rhdh-hub-rhel9:latest | |
appConfig: | |
configMaps: | |
- name: app-config-rhdh | |
dynamicPluginsConfigMapName: dynamic-plugins-rhdh | |
extraEnvs: | |
secrets: | |
- name: secrets-rhdh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: secrets-rhdh | |
stringData: | |
# generated with the command below (from https://backstage.io/docs/auth/service-to-service-auth/#setup): | |
# node -p 'require("crypto").randomBytes(24).toString("base64")' | |
BACKEND_SECRET: "R2FxRVNrcmwzYzhhN3l0V1VRcnQ3L1pLT09WaVhDNUEK" # notsecret | |
GH_ORG: "my-gh-org" | |
GH_CLIENT_ID: "my GH client ID" | |
GH_CLIENT_SECRET: "my GH client secret" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment