Skip to content

Commit 57d41cb

Browse files
authored
Merge pull request #14 from TIBCOSoftware/v1.0.1
V1.0.1 Changes
2 parents 3f8cb92 + b49f281 commit 57d41cb

File tree

15 files changed

+129
-56
lines changed

15 files changed

+129
-56
lines changed

app-config.production.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ integrations:
5959
# apiBaseUrl: https://ghe.example.net/api/v3
6060
# token: ${GHE_TOKEN}
6161

62-
## If needed uncomment these lines to add the default(example) entities to your software catalog
63-
#catalog:
64-
# locations:
65-
# - type: file
66-
# target: ./tibco-examples/tibco-examples.yaml
67-
# rules:
68-
# - allow: [Group, Template, System, Domain]
69-
7062
catalog:
7163
locations: []
7264

app-config.template-local.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ backend:
1212
user: postgres
1313
password: example
1414

15-
## Uncomment the below github integrations config to add a PAT to try out\
15+
## Uncomment the below github integrations config to add a PAT to try out
1616
## new component creation using one of the available templates.
1717
# integrations:
1818
# github:

app-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ techdocs:
8383
auth:
8484
# see https://backstage.io/docs/auth/ to learn about auth providers
8585
environment: development
86-
## uncomment 3 lines below and add organization name in place of <YOUR-ORG-NAME>\
87-
## to only allow members of a <YOUR-ORG-NAME> to sign in through gitHub.
86+
# uncomment 3 lines below and add organization name in place of <YOUR-ORG-NAME> to support sign in through gitHub
8887
# signIn:
8988
# github:
9089
# organizations: ['<YOUR-ORG-NAME>']
@@ -95,7 +94,7 @@ auth:
9594
clientSecret: ${AUTH_GITHUB_CLIENT_SECRET}
9695
oauth2Proxy:
9796
development: {}
98-
enableAuthProviders: [guest]
97+
enableAuthProviders: [oauth2Proxy]
9998
# Available providers:
10099
# for local deployments
101100
# [github, oauth2Proxy, guest]
@@ -111,6 +110,10 @@ scaffolder:
111110
name: TIBCO® Developer Hub # Defaults to `Scaffolder`
112111
email: test@test.com # Defaults to `scaffolder@backstage.io`
113112
defaultCommitMessage: 'Initial commit' # Defaults to 'Initial commit'
114-
115113
catalog:
116114
locations: []
115+
# GitHub rate limits API requests to 5,000 per hour (or more for Enterprise accounts).
116+
# For more information, visit https://backstage.io/docs/integrations/github/discovery/#github-api-rate-limits-1
117+
# You can set the refresh rate of catalog (in milliseconds) for catalog API to fetch changes from GitHub, by using the below config.
118+
# The allowed range is [100,900]
119+
# catalogRefreshDelayInSec: 300

build/platform/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ ENV NODE_ENV production
9191
ENV HUB_CONFIGFILE "app-config.production.yaml"
9292

9393
ARG BID
94-
ENV APP_CONFIG_app_buildInfo_version="${BID}"
94+
ENV APP_CONFIG_app_buildVersion="${BID}"
9595

9696
CMD node packages/backend --config "${HUB_CONFIGFILE}"

build/platform/charts/tibco-developer-hub/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ type: application
66
# This is the chart version. This version number should be incremented each time you make changes
77
# to the chart and its templates, including the app version.
88
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9-
version: 1.0.27
9+
version: 1.0.32
1010

11-
appVersion: "1.0.0"
11+
appVersion: "1.0.1"
1212

1313
dependencies:
1414
- name: common

build/platform/charts/tibco-developer-hub/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ backstage:
108108
jfrogRepository: tibco-platform-local-docker/dx/tibco-hub
109109

110110
# -- Backstage image tag (immutable tags are recommended)
111-
tag: "278"
111+
tag: "319"
112112

113113
# -- Specify a imagePullPolicy.
114114
# Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'

build/platform/provision-samples/recipe.template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ recipe:
2525
helmCharts:
2626
- name: tibco-developer-hub
2727
namespace: ${NAMESPACE}
28-
version: 1.0.27
28+
version: 1.0.32
2929
repository:
3030
chartMuseum:
3131
host: ${HELM_REPO}

build/platform/provision-samples/tibco-hub-cp-recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"install": true
3030
},
3131
"name": "tibco-developer-hub",
32-
"version": "1.0.27",
32+
"version": "1.0.32",
3333
"namespace": "${NAMESPACE}",
3434
"repository": {
3535
"chartMuseum": {

config.d.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@ export interface Config {
2828
* Build information.
2929
* Control the display of the build information in the Homepage UI.
3030
*/
31-
buildInfo?: {
32-
/**
33-
* Version number to display
34-
* @visibility frontend
35-
*/
36-
version?: string | number;
37-
/**
38-
* Show build number. False by default. Has to be set explicitly as true to enable it.
39-
* @visibility frontend
40-
*/
41-
show?: boolean;
42-
};
31+
/**
32+
* Version number to display
33+
* @visibility frontend
34+
*/
35+
buildVersion?: string | number;
36+
/**
37+
* Show build number. False by default. Has to be set explicitly as true to enable it.
38+
* @visibility frontend
39+
*/
40+
showBuildVersion?: boolean;
4341
};
4442
// enable and configure loading org entities into catalog
4543
orgCatalog?: {
@@ -80,8 +78,13 @@ export interface Config {
8078
items: WalkThrough[];
8179
};
8280
/**
83-
* Control plain link for the Developer Hub
81+
* Control plain link for the TIBCO® Developer Hub
8482
* @visibility frontend
8583
*/
8684
cpLink?: string;
85+
/**
86+
* Frontend root URL
87+
* @visibility frontend
88+
*/
89+
catalogRefreshDelayInSec?: number;
8790
}

docs/app-config-extensions.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,23 @@ Example config:
1414
app:
1515
title: The TIBCO Hub
1616
baseUrl: http://localhost:3000
17-
buildInfo:
18-
version: some.version.number
19-
show: true
17+
showBuildVersion: true
2018
```
2119
2220
The CI/CD pipeline automatically adds the build number to all docker images.
2321
22+
## Catalog Refresh Delay
23+
24+
GitHub rate limits API requests to 5,000 per hour (or more for Enterprise accounts). The default catalog backend refreshes data every 100 seconds, which issues an API request for each discovered location.
25+
26+
This means if you have more than ~140 catalog entities, you may get throttled by rate limiting. You can change the refresh rate of the catalog in by using the example config:
27+
28+
```yaml
29+
catalogRefreshDelayInSec: 300
30+
```
31+
32+
Allowed range is 100 to 900 milliseconds. Increase the rate limit to avoid throttling from GitHub API.
33+
2434
## Walk Through
2535
2636
Show the Walk-through card on home page if the config is present.
@@ -43,13 +53,13 @@ walkThrough:
4353
4454
## Cp Link
4555
46-
Control plane link for the Developer Hub.
56+
Control plane link for the TIBCO® Developer Hub.
4757
4858
Example config:
4959
5060
```yaml
5161
cpLink: 'https://control-plane.domain.com'
62+
```
5263
5364
No need to provide this in configuration.
54-
This is filled automatically while provisioing TIBCO® Developer Hub for a data plane.
55-
```
65+
This is filled automatically while provisioning TIBCO® Developer Hub for a data plane.

0 commit comments

Comments
 (0)