Skip to content

Commit

Permalink
chore: add @janus-idp/backstage-plugin-acr... (janus-idp#734)
Browse files Browse the repository at this point in the history
* chore: add @janus-idp/backstage-plugin-acr 1.1.1 as peerDep in dynamic plugins imports

Signed-off-by: Nick Boldt <nboldt@redhat.com>

bump versions of peer Deps to match what's in https://github.com/janus-idp/backstage-plugins/tree/main/plugins

Signed-off-by: Nick Boldt <nboldt@redhat.com>

* chore: add @janus-idp/backstage-plugin-acr 1.2.4 as peerDep in dynamic plugins imports

Signed-off-by: Nick Boldt <nboldt@redhat.com>

bump versions of peer Deps to match what's in https://github.com/janus-idp/backstage-plugins/tree/main/plugins

Signed-off-by: Nick Boldt <nboldt@redhat.com>

add acr as default-disabled dynamic plugin

Signed-off-by: Nick Boldt <nboldt@redhat.com>

* add proxy config

Signed-off-by: Nick Boldt <nboldt@redhat.com>

* Update app-config.yaml

* chore(): add changeset

---------

Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Tomas Kral <tkral@redhat.com>
  • Loading branch information
nickboldt and kadel committed Nov 8, 2023
1 parent 1de46ce commit d4c1d6d
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/sharp-walls-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'dynamic-plugins-imports': patch
'backend': patch
'app': patch
---

add @janus-idp/backstage-plugin-acr
10 changes: 10 additions & 0 deletions app-config.dynamic-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ dynamicPlugins:
if:
allOf:
- isGitlabAvailable
janus-idp.backstage-plugin-acr:
mountPoints:
- mountPoint: entity.page.image-registry/cards
importName: AcrPage
config:
layout:
gridColumn: 1 / -1
if:
anyOf:
- isAcrAvailable
janus-idp.backstage-plugin-jfrog-artifactory:
mountPoints:
- mountPoint: entity.page.image-registry/cards
Expand Down
10 changes: 10 additions & 0 deletions app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ proxy:
X-Atlassian-Token: 'no-check'
User-Agent: ${JIRA_USER_AGENT}

# Plugin: ACR
'/acr/api':
target: ${ACR_URL}
changeOrigin: true
headers:
# If you use Bearer Token for authorization, please replace the 'Basic' with 'Bearer' in the following line.
Authorization: 'Bearer ${ACR_AUTH_TOKEN}'
# Change to "false" in case of using self hosted artifactory instance with a self-signed certificate
secure: true

# Plugin: Jfrog Artifactory
'/jfrog-artifactory/api':
target: ${ARTIFACTORY_URL}
Expand Down
16 changes: 16 additions & 0 deletions dynamic-plugins.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,22 @@ plugins:
anyOf:
- isNexusRepositoryManagerAvailable

- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-acr
disabled: true
pluginConfig:
dynamicPlugins:
frontend:
janus-idp.backstage-plugin-acr:
mountPoints:
- mountPoint: entity.page.image-registry/cards
importName: AcrPage
config:
layout:
gridColumn: 1 / -1
if:
anyOf:
- isAcrAvailable

- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-jfrog-artifactory
disabled: true
pluginConfig:
Expand Down
13 changes: 7 additions & 6 deletions dynamic-plugins/imports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"tar": "6.2.0"
},
"peerDependencies": {
"@janus-idp/backstage-plugin-jfrog-artifactory": "1.2.3",
"@janus-idp/backstage-plugin-nexus-repository-manager": "1.4.3",
"@janus-idp/backstage-plugin-ocm": "3.3.3",
"@janus-idp/backstage-plugin-quay": "1.4.5",
"@janus-idp/backstage-plugin-tekton": "3.1.2",
"@janus-idp/backstage-plugin-topology": "1.16.3"
"@janus-idp/backstage-plugin-acr": "1.2.4",
"@janus-idp/backstage-plugin-jfrog-artifactory": "1.2.4",
"@janus-idp/backstage-plugin-nexus-repository-manager": "1.4.4",
"@janus-idp/backstage-plugin-ocm": "3.3.4",
"@janus-idp/backstage-plugin-quay": "1.4.6",
"@janus-idp/backstage-plugin-tekton": "3.1.3",
"@janus-idp/backstage-plugin-topology": "1.16.4"
}
}

0 comments on commit d4c1d6d

Please sign in to comment.