Skip to content

Commit

Permalink
Merge pull request #252 from masayag/janus-idp-argocd
Browse files Browse the repository at this point in the history
Use janus-idp argocd plugin
  • Loading branch information
masayag authored Aug 8, 2024
2 parents dba7513 + 59ccd32 commit 2349678
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 44 deletions.
2 changes: 1 addition & 1 deletion charts/orchestrator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.2.0-rc18
version: 1.2.0-rc19

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
61 changes: 18 additions & 43 deletions charts/orchestrator/templates/rhdh-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ data:
user: ${POSTGRES_USER}
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
{{- if and .Values.argocd.enabled
( and
(and (.Values.rhdhOperator.secretRef.argocd.url) (dig "data" .Values.rhdhOperator.secretRef.argocd.url "" $secret ) )
(and (.Values.rhdhOperator.secretRef.argocd.username) (dig "data" .Values.rhdhOperator.secretRef.argocd.password "" $secret) )
)
}}
argocd:
appLocatorMethods:
- instances:
- name: main
url: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.url }}
username: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.username }}
password: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.password }}
type: config
{{- end }}
---
kind: ConfigMap
apiVersion: v1
Expand Down Expand Up @@ -182,52 +197,12 @@ data:
)
}}
- disabled: false
package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic
pluginConfig:
argocd:
appLocatorMethods:
- instances:
- name: main
url: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.url }}
username: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.username }}
password: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.password }}
type: config
package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-argocd
- disabled: false
package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd
pluginConfig:
dynamicPlugins:
frontend:
roadiehq.backstage-plugin-argo-cd:
mountPoints:
- mountPoint: entity.page.overview/cards
importName: EntityArgoCDOverviewCard
config:
layout:
gridColumnEnd:
lg: "span 8"
xs: "span 12"
if:
allOf:
- isArgocdAvailable
- mountPoint: entity.page.cd/cards
importName: EntityArgoCDHistoryCard
config:
layout:
gridColumn: "1 / -1"
if:
allOf:
- isArgocdAvailable
package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic
- disabled: false
package: ./dynamic-plugins/dist/roadiehq-scaffolder-backend-argocd-dynamic
pluginConfig:
argocd:
appLocatorMethods:
- instances:
- name: main
url: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.url }}
username: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.username }}
password: {{ printf "${%s}" .Values.rhdhOperator.secretRef.argocd.password }}
type: config
- disabled: false
{{- end }}
- disabled: false
package: "{{ .Values.rhdhPlugins.scope }}/{{ .Values.rhdhPlugins.orchestratorBackend.package }}"
Expand Down

0 comments on commit 2349678

Please sign in to comment.