Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
465 changes: 447 additions & 18 deletions .cursor/rules/plugin-scaffolding.mdc

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ K8S_CLUSTER_NAME="<SOME_CLUSTER_NAME>"
SIGN_IN_PAGE="<SOME_SIGN_IN_PAGE>"

OCM_HUB_NAME="<SOME_OCM_HUB_NAME>"

# Demo Data Configuration
POPULATE_DEMO_DATA=true # Set to false to skip demo data population
142 changes: 101 additions & 41 deletions README.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions config-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ declare -A PACKAGE_TO_CATEGORY=(
# 3scale - requires 3scale operator deployment
["plugin-3scale-backend"]="3SCALE"

# Nexus Repository Manager - requires Nexus operator deployment
["plugin-nexus-repository-manager"]="NEXUS"

#Kubernetes - needs ServiceAccount token setup
["plugin-kubernetes-backend"]="KUBERNETES"
["plugin-kubernetes"]="KUBERNETES"
Expand All @@ -43,6 +46,7 @@ declare -A CATEGORY_SETUP_FUNCTIONS=(
[TEKTON]="deploy_tekon deploy_pipelines apply_tekton_labels"
[OCM]="deploy_acm config_secrets_for_ocm_plugins deploy_multicluster_hub apply_ocm_labels"
[3SCALE]="copy_3scale_files deploy_3scale deploy_minio deploy_3scale_resources"
[NEXUS]="deploy_nexus wait_for_nexus_operator_and_deploy_instance wait_for_nexus_instance config_secrets_for_nexus_plugins apply_nexus_labels populate_nexus_demo_data register_nexus_demo_catalog_entities"
[KUBERNETES]="config_secrets_for_kubernetes_plugins"
)

Expand All @@ -51,6 +55,7 @@ declare -A CATEGORY_TEARDOWN_FUNCTIONS=(
[TEKTON]="uninstall_tekton"
[OCM]="uninstall_acm"
[3SCALE]="uninstall_3scale"
[NEXUS]="uninstall_nexus"
[KUBERNETES]=":"
)

Expand Down
12 changes: 6 additions & 6 deletions deploy/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
app.kubernetes.io/component: config
data:
# Core settings
NAMESPACE: 'rhdh'
RELEASE_NAME: 'backstage'
K8S_CLUSTER_NAME: 'my-cluster'
NAMESPACE: "rhdh"
RELEASE_NAME: "backstage"
K8S_CLUSTER_NAME: "my-cluster"

# Use this for the RHDH chart from the Red Hat Developer GitHub repository
HELM_REPO_NAME: rhdh-chart
Expand All @@ -25,11 +25,11 @@ data:
# HELM_CHART_VERSION: 1.9.0

# Authentication
SIGN_IN_PAGE: 'guest'
SIGN_IN_PAGE: "guest"

# Timeouts
TIMEOUT: '600'
INTERVAL: '10'
TIMEOUT: "600"
INTERVAL: "10"

# Note: Plugin enablement is configured via the rhdh-dynamic-plugins ConfigMap
# See README.md for details on creating this ConfigMap
4 changes: 2 additions & 2 deletions deploy/job-internal-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ spec:
- name: setup
# Use image from internal OpenShift registry
image: image-registry.openshift-image-registry.svc:5000/rhdh-testbed/rhdh-testbed:latest
args: ['/app/start.sh']
args: ["/app/start.sh"]
envFrom:
- configMapRef:
name: rhdh-testbed-config
- secretRef:
name: rhdh-testbed-secrets
env:
- name: IN_CLUSTER
value: 'true'
value: "true"
volumeMounts:
- name: dynamic-plugins-config
mountPath: /app/resources/user-resources/dynamic-plugins-configmap.local.yaml
Expand Down
24 changes: 14 additions & 10 deletions deploy/secret-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,23 @@ type: Opaque
stringData:
# Only needed if configuring a DIFFERENT cluster than where Job runs
# Leave empty to use in-cluster ServiceAccount authentication
K8S_CLUSTER_TOKEN: ''
K8S_CLUSTER_URL: ''
K8S_CLUSTER_TOKEN: ""
K8S_CLUSTER_URL: ""

# Optional: GitHub integration
GITHUB_TOKEN: ''
GITHUB_APP_ID: ''
GITHUB_APP_CLIENT_ID: ''
GITHUB_APP_CLIENT_SECRET: ''
GITHUB_TOKEN: ""
GITHUB_APP_ID: ""
GITHUB_APP_CLIENT_ID: ""
GITHUB_APP_CLIENT_SECRET: ""

# Optional: GitLab integration
GITLAB_TOKEN: ''
GITLAB_TOKEN: ""

# Optional: OCM settings
OCM_HUB_NAME: ''
OCM_HUB_URL: ''
OCM_SA_TOKEN: ''
OCM_HUB_NAME: ""
OCM_HUB_URL: ""
OCM_SA_TOKEN: ""

# Optional: Nexus Repository Manager (Frontend Proxy)
NEXUS_URL: ""
NEXUS_AUTH_HEADER: ""
4 changes: 2 additions & 2 deletions deploy/teardown-job-internal-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ spec:
- name: teardown
# Use image from internal OpenShift registry
image: image-registry.openshift-image-registry.svc:5000/rhdh-testbed/rhdh-testbed:latest
args: ['/app/teardown.sh']
args: ["/app/teardown.sh"]
envFrom:
- configMapRef:
name: rhdh-testbed-config
- secretRef:
name: rhdh-testbed-secrets
env:
- name: IN_CLUSTER
value: 'true'
value: "true"
volumeMounts:
- name: dynamic-plugins-config
mountPath: /app/resources/user-resources/dynamic-plugins-configmap.local.yaml
Expand Down
4 changes: 2 additions & 2 deletions deploy/teardown-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ spec:
containers:
- name: teardown
image: ghcr.io/pataknight/rhdh-testbed:latest
args: ['/app/teardown.sh']
args: ["/app/teardown.sh"]
envFrom:
- configMapRef:
name: rhdh-testbed-config
- secretRef:
name: rhdh-testbed-secrets
env:
- name: IN_CLUSTER
value: 'true'
value: "true"
volumeMounts:
- name: dynamic-plugins-config
mountPath: /app/resources/user-resources/dynamic-plugins-configmap.local.yaml
Expand Down
Loading
Loading