Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from bradmccoydev/feat/add-argo-cd-plugin-back…
Browse files Browse the repository at this point in the history
…stage-1

feat: add backstage configfor argo
  • Loading branch information
bradmccoydev authored Nov 29, 2022
2 parents 5a1f57c + ee30819 commit 1baee5c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
11 changes: 11 additions & 0 deletions app-config.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ kubernetes:
skipTLSVerify: true
skipMetricsLookup: true

proxy:
'/argocd/api':
target: ${ARGOCD_BASE_URL}/api/v1/
changeOrigin: true
secure: false
headers:
Cookie:
$env: ${ARGOCD_AUTH_TOKEN}
argocd:
baseUrl: ${ARGOCD_BASE_URL}

# plugin:
# auth:
# connection:
Expand Down
9 changes: 3 additions & 6 deletions app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,14 @@ integrations:

proxy:
'/argocd/api':
# url to the api of your hosted argoCD instance
target: https://argocd.ortelius.io/api/v1/
target: ${ARGOCD_BASE_URL}/api/v1/
changeOrigin: true
# this line is required if your hosted argoCD instance has self-signed certificate
secure: false
headers:
Cookie:
$env: ARGOCD_AUTH_TOKEN

$env: ${ARGOCD_AUTH_TOKEN}
argocd:
baseUrl: https://argocd.ortelius.io
baseUrl: ${ARGOCD_BASE_URL}

# Reference documentation http://backstage.io/docs/features/techdocs/configuration
# Note: After experimenting with basic setup, use CI/CD to generate docs
Expand Down
4 changes: 2 additions & 2 deletions chart/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A Helm chart for the Ortelius Backstage Instance

type: application

version: 0.0.14
appVersion: "0.0.14"
version: 0.0.15
appVersion: "0.0.15"

home: "https://ortelius.io"
icon: https://backstage.io/img/twitter-summary.png
Expand Down
10 changes: 10 additions & 0 deletions chart/backstage/templates/backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ spec:
secretKeyRef:
name: backstage-secrets
key: KUBERNETES_TOKEN
- name: ARGOCD_BASE_URL
valueFrom:
secretKeyRef:
name: backstage-secrets
key: ARGOCD_URL
- name: ARGOCD_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: backstage-secrets
key: ARGOCD_AUTH_TOKEN
{{- with .Values.backend.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 1baee5c

Please sign in to comment.