-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add config partials for dynamic frontend plugins (#965)
Signed-off-by: Tomas Coufal <[email protected]>
- Loading branch information
Showing
28 changed files
with
239 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
enabled: | ||
aap: true | ||
catalog: | ||
providers: | ||
aap: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
proxy: | ||
endpoints: | ||
'/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 | ||
|
||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-acr: | ||
mountPoints: | ||
- mountPoint: entity.page.image-registry/cards | ||
importName: AcrPage | ||
config: | ||
layout: | ||
gridColumn: 1 / -1 | ||
if: | ||
anyOf: | ||
- isAcrAvailable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
app: | ||
analytics: | ||
segment: | ||
writeKey: ${SEGMENT_WRITE_KEY} | ||
maskIP: true # prevents IP addresses from being sent if true | ||
testMode: false # prevents data from being sent if true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
proxy: | ||
endpoints: | ||
'/jfrog-artifactory/api': | ||
target: ${ARTIFACTORY_URL} | ||
headers: | ||
Authorization: Bearer ${ARTIFACTORY_TOKEN} | ||
# Change to "false" in case of using self hosted artifactory instance with a self-signed certificate | ||
secure: true | ||
|
||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-jfrog-artifactory: | ||
mountPoints: | ||
- mountPoint: entity.page.image-registry/cards | ||
importName: JfrogArtifactoryPage | ||
config: | ||
layout: | ||
gridColumn: 1 / -1 | ||
if: | ||
anyOf: | ||
- isJfrogArtifactoryAvailable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
matomo: | ||
apiToken: ${MATOMO_API_TOKEN} | ||
apiUrl: ${MATOMO_API_URL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
matomo: | ||
frontendBaseUrl: ${MATOMO_INSTANCE_URL} | ||
contactUsLink: mailto:${MATOMO_CONTACT_EMAIL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
plugins/nexus-repository-manager/app-config.janus-idp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
proxy: | ||
endpoints: | ||
'/nexus-repository-manager': | ||
target: ${NEXUS_REPOSITORY_MANAGER_URL} | ||
headers: | ||
X-Requested-With: 'XMLHttpRequest' | ||
# Uncomment the following line to access a private Nexus Repository Manager using a token | ||
# Authorization: 'Bearer <NEXUS_REPOSITORY_MANAGER_TOKEN>' | ||
changeOrigin: true | ||
# Change to "false" in case of using self hosted Nexus Repository Manager instance with a self-signed certificate | ||
secure: true | ||
|
||
nexusRepositoryManager: | ||
experimentalAnnotations: true | ||
|
||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-nexus-repository-manager: | ||
mountPoints: | ||
- mountPoint: entity.page.image-registry/cards | ||
importName: NexusRepositoryManagerPage | ||
config: | ||
layout: | ||
gridColumn: 1 / -1 | ||
if: | ||
anyOf: | ||
- isNexusRepositoryManagerAvailable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
enabled: | ||
ocm: true | ||
catalog: | ||
providers: | ||
ocm: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-ocm: | ||
appIcons: | ||
- name: ocmIcon | ||
importName: OcmIcon | ||
dynamicRoutes: | ||
- path: /ocm | ||
importName: OcmPage | ||
menuItem: | ||
icon: ocmIcon | ||
text: Clusters | ||
mountPoints: | ||
- mountPoint: entity.page.overview/context | ||
importName: ClusterContextProvider | ||
- mountPoint: entity.page.overview/cards | ||
importName: ClusterAvailableResourceCard | ||
config: | ||
layout: | ||
gridColumnEnd: | ||
lg: 'span 4' | ||
md: 'span 6' | ||
xs: 'span 12' | ||
if: | ||
allOf: | ||
- isKind: resource | ||
- isType: kubernetes-cluster | ||
- mountPoint: entity.page.overview/cards | ||
importName: ClusterInfoCard | ||
config: | ||
layout: | ||
gridColumnEnd: | ||
lg: 'span 4' | ||
md: 'span 6' | ||
xs: 'span 12' | ||
if: | ||
allOf: | ||
- isKind: resource | ||
- isType: kubernetes-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
plugins/openshift-image-registry/app-config.janus-idp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
proxy: | ||
endpoints: | ||
'/openshift-image-registry/api': | ||
target: ${OCP_API_ENDPOINT} | ||
headers: | ||
X-Requested-With: 'XMLHttpRequest' | ||
Authorization: Bearer ${OCP_API_TOKEN} | ||
changeOrigin: true | ||
# Change to "false" in case of using self hosted OpenShift cluster with a self-signed certificate | ||
secure: true | ||
|
||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-acr: | ||
dynamicRoutes: | ||
- path: /openshift-image-registry | ||
importName: OpenshiftImageRegistryPage | ||
menuItem: | ||
icon: dashboard | ||
text: Image Registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-quay: | ||
mountPoints: | ||
- mountPoint: entity.page.image-registry/cards | ||
importName: QuayPage | ||
config: | ||
layout: | ||
gridColumn: 1 / -1 | ||
if: | ||
anyOf: | ||
- isQuayAvailable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-tekton: | ||
mountPoints: | ||
- mountPoint: entity.page.ci/cards | ||
importName: TektonCI | ||
config: | ||
layout: | ||
gridColumn: '1 / -1' | ||
if: | ||
allOf: | ||
- isTektonCIAvailable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.