Skip to content

Commit adb2bc0

Browse files
authored
Merge pull request #26 from catenax-ng/main
Sync from catena-x
2 parents 798ff4e + 3142c0a commit adb2bc0

37 files changed

+56
-173
lines changed

.github/workflows/veracode.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/veracode-upload.yml renamed to .github/workflows/veracode.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
appname: "Traceability-Foss-Frontend"
3030
createprofile: false
3131
filepath: "./veracode-scan-target.zip"
32-
vid: "${{ secrets.ORG_VERACODE_API_ID }}"
33-
vkey: "${{ secrets.ORG_VERACODE_API_KEY }}"
32+
vid: '${{ secrets.VERACODE_API_ID || secrets.ORG_VERACODE_API_ID }}'
33+
vkey: '${{ secrets.VERACODE_API_KEY || secrets.ORG_VERACODE_API_KEY }}'

INSTALL.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ Support environment variables are:
66
const ENV_VARS_MAPPING = {
77
CATENAX_PORTAL_KEYCLOAK_URL: 'keycloakUrl',
88
CATENAX_PORTAL_CLIENT_ID: 'clientId',
9-
CATENAX_PORTAL_DEFAULT_REALM: 'defaultRealm',
10-
CATENAX_PORTAL_REALM_LOGO: 'realmLogo',
119
CATENAX_PORTAL_API_URL: 'apiUrl',
1210
CATENAX_PORTAL_BASE_URL: 'baseUrl',
1311
};
@@ -19,12 +17,6 @@ This variable is used to set up and use keycloak
1917
`CATENAX_PORTAL_CLIENT_ID`
2018
This variable is used to identify the client on keycloak
2119

22-
`CATENAX_PORTAL_DEFAULT_REALM`
23-
This variable is used the set de default realm of the application
24-
25-
`CATENAX_PORTAL_REALM_LOGO`
26-
This variable is used to replace the logo on the application
27-
2820
`CATENAX_PORTAL_API_URL`
2921
This variable points to the desired api
3022

@@ -110,7 +102,7 @@ When running the build docker image you are able to pass through multiple enviro
110102
### Example command:
111103
112104
```shell
113-
$ docker run -d -p 4200:8080 -e CATENAX_PORTAL_DEFAULT_REALM=TEST ${dockerImage}
105+
$ docker run -d -p 4200:8080 -e ENV_VAR=VAR_VALUE ${dockerImage}
114106
```
115107

116108
#### `Docker run`
@@ -125,7 +117,7 @@ To start a container in detached mode, you use `-d=true` or just `-d` option. By
125117

126118
To expose a container’s internal port, an operator can start the container with the `-P` or `-p` flag. The exposed port is accessible on the host and the ports are available to any client that can reach the host.
127119

128-
#### `-e CATENAX_PORTAL_DEFAULT_REALM=TEST`
120+
#### `-e ENV_VAR=VAR_VALUE`
129121

130122
The operator can set any environment variable in the container by using one or more `-e` flags, even overriding already defined flags by the developer with a Dockerfile `ENV`.
131123

angular.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@
9999
}
100100
]
101101
},
102+
"localBackendNoAuth": {
103+
"fileReplacements": [
104+
{
105+
"replace": "src/environments/environment.ts",
106+
"with": "src/environments/environment.localBackendNoAuth.ts"
107+
}
108+
]
109+
},
102110
"production": {
103111
"fileReplacements": [
104112
{
@@ -154,6 +162,9 @@
154162
"localBackend": {
155163
"browserTarget": "trace-x:build:dev,localBackend"
156164
},
165+
"localBackendNoAuth": {
166+
"browserTarget": "trace-x:build:dev,localBackendNoAuth"
167+
},
157168
"production": {
158169
"browserTarget": "trace-x:build:production"
159170
},

charts/traceability-foss-frontend/templates/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ spec:
4949
value: "{{ .Values.image.CATENAX_PORTAL_KEYCLOAK_URL }}"
5050
- name: CATENAX_PORTAL_CLIENT_ID
5151
value: "{{ .Values.image.CATENAX_PORTAL_CLIENT_ID }}"
52-
- name: CATENAX_PORTAL_DEFAULT_REALM
53-
value: "{{ .Values.image.CATENAX_PORTAL_DEFAULT_REALM }}"
5452
ports:
5553
- name: http
5654
containerPort: {{ .Values.service.port }}

charts/traceability-foss-frontend/values-dev-test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ image:
33
tag: $ARGOCD_APP_REVISION
44
CATENAX_PORTAL_API_URL: 'https://traceability-test.dev.demo.catena-x.net/api'
55
CATENAX_PORTAL_KEYCLOAK_URL: 'https://centralidp.dev.demo.catena-x.net/auth'
6-
CATENAX_PORTAL_CLIENT_ID: 'Cl17-CX-Part'
7-
CATENAX_PORTAL_DEFAULT_REALM: 'CX-Central'
86

97
nameOverride: "traceability-foss-test-frontend"
108
fullnameOverride: "traceability-foss-test-frontend"

charts/traceability-foss-frontend/values-dev.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ image:
22
tag: $ARGOCD_APP_REVISION
33
CATENAX_PORTAL_API_URL: 'https://traceability.dev.demo.catena-x.net/api'
44
CATENAX_PORTAL_KEYCLOAK_URL: 'https://centralidp.dev.demo.catena-x.net/auth'
5-
CATENAX_PORTAL_CLIENT_ID: 'Cl17-CX-Part'
6-
CATENAX_PORTAL_DEFAULT_REALM: 'CX-Central'
75

86
ingress:
97
enabled: true

charts/traceability-foss-frontend/values-int-test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ image:
22
tag: $ARGOCD_APP_REVISION
33
CATENAX_PORTAL_API_URL: 'https://traceability-test.int.demo.catena-x.net/api'
44
CATENAX_PORTAL_KEYCLOAK_URL: 'https://centralidp.int.demo.catena-x.net/auth'
5-
CATENAX_PORTAL_CLIENT_ID: 'Cl17-CX-Part'
6-
CATENAX_PORTAL_DEFAULT_REALM: 'CX-Central'
75

86
nameOverride: "traceability-foss-test-frontend"
97
fullnameOverride: "traceability-foss-test-frontend"

charts/traceability-foss-frontend/values-int.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ image:
22
tag: $ARGOCD_APP_REVISION
33
CATENAX_PORTAL_API_URL: 'https://traceability.int.demo.catena-x.net/api'
44
CATENAX_PORTAL_KEYCLOAK_URL: 'https://centralidp.int.demo.catena-x.net/auth'
5-
CATENAX_PORTAL_CLIENT_ID: 'Cl17-CX-Part'
6-
CATENAX_PORTAL_DEFAULT_REALM: 'CX-Central'
75

86
ingress:
97
enabled: true

charts/traceability-foss-frontend/values-pen.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ image:
22
tag: $ARGOCD_APP_REVISION
33
CATENAX_PORTAL_API_URL: 'https://traceability-pen.dev.demo.catena-x.net/api'
44
CATENAX_PORTAL_KEYCLOAK_URL: 'https://centralidp-pen.dev.demo.catena-x.net/auth'
5-
CATENAX_PORTAL_CLIENT_ID: 'Cl17-CX-Part'
6-
CATENAX_PORTAL_DEFAULT_REALM: 'CX-Central'
75

86
# important to not conflict with dev env (both use same ArgoCD instance)
97
namespace: product-traceability-foss-pen

0 commit comments

Comments
 (0)