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

fix backstage secret creation #30

Closed
wants to merge 2 commits into from
Closed
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
3 changes: 3 additions & 0 deletions packages/backstage/dev/sa-backstage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ rules:
- apiGroups: ["argoproj.io"]
resources: ["workflows"]
verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
2 changes: 1 addition & 1 deletion terraform/scripts/backstage/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export POSTGRES_PASSWORD=${1}
export BACKSTAGE_DOMAIN_NAME=${2}
export KEYCLOAK_DOMAIN_NAME=${3}
export ARGO_WORKFLOWS_DOMAIN_NAME=${4}
export GITHUB_APP_YAML=$(cat ${REPO_ROOT}/private/github-integration.yaml | base64)
export GITHUB_APP_YAML_INDENTED=$(cat ${REPO_ROOT}/private/github-integration.yaml | base64 | sed 's/^/ /')

kubectl wait --for=jsonpath=.status.health.status=Healthy -n argocd application/keycloak
kubectl wait --for=condition=ready pod -l app=keycloak -n keycloak --timeout=30s
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion terraform/scripts/backstage/secret-integrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ metadata:
name: integrations
namespace: backstage
data:
github-integration.yaml: ${GITHUB_APP_YAML}
github-integration.yaml: |
${GITHUB_APP_YAML_INDENTED}