Skip to content

Commit

Permalink
chore: adjust dev env, upgrade package, improve dependabot (#51)
Browse files Browse the repository at this point in the history
* adjust consortia dev setup
* add rc environment
--------------
Reviewed-By: Evelyn Gurschler <[email protected]>
  • Loading branch information
Phil91 authored Jun 19, 2024
1 parent 3308287 commit adae7ee
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 8 deletions.
13 changes: 12 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ updates:
interval: "weekly"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
update-types: ["version-update:semver-major"]
groups:
production-dependencies:
dependency-type: "production"
development-dependencies:
dependency-type: "development"

# Github Actions
-
Expand All @@ -42,6 +47,9 @@ updates:
- "github-actions"
schedule:
interval: "weekly"
groups:
dependencies:
dependency-type: "production"

# Docker
-
Expand All @@ -55,3 +63,6 @@ updates:
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
groups:
dependencies:
dependency-type: "production"
6 changes: 3 additions & 3 deletions .github/workflows/chart-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
upgrade_from:
description: 'dim chart version to upgrade from'
# tbd
default: 'tbd'
default: '0.0.7'
required: false
type: string

Expand Down Expand Up @@ -113,9 +113,9 @@ jobs:

- name: Run chart-testing (install)
run: ct install --charts charts/dim --config charts/chart-testing-config.yaml --helm-extra-set-args "--set dim.image.name=kind-registry:5000/dim-service --set dim.image.tag=testing --set migrations.image.name=kind-registry:5000/dim-migrations --set migrations.image.tag=testing --set processesworker.image.name=kind-registry:5000/dim-processes-worker --set processesworker.image.tag=testing"
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
if: github.event_name != 'pull_request' || steps.list-changed.outputs
# TODO: re-add the step after the first version release .changed == 'true'

# TODO: re-add the step after the first version release
# Upgrade the released chart version with the locally available chart
# default value for event_name != workflow_dispatch
# - name: Run helm upgrade
Expand Down
2 changes: 1 addition & 1 deletion consortia/argocd-app-templates/appsetup-int.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
source:
path: charts/dim
repoURL: 'https://github.com/phil91/dim-client.git'
targetRevision: dim-0.0.3
targetRevision: dim-0.0.7
plugin:
env:
- name: AVP_SECRET
Expand Down
41 changes: 41 additions & 0 deletions consortia/argocd-app-templates/appsetup-rc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
###############################################################
# Copyright (c) 2024 BMW Group AG
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: dim
spec:
destination:
namespace: product-iam
server: 'https://kubernetes.default.svc'
source:
path: charts/dim
repoURL: 'https://github.com/phil91/dim-client.git'
targetRevision: main
plugin:
env:
- name: AVP_SECRET
value: vault-secret
- name: helm_args
value: '-f values.yaml -f ../../consortia/environments/values-rc.yaml'
project: project-portal
syncPolicy:
automated:
prune: true
4 changes: 2 additions & 2 deletions consortia/environments/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dim:
tag: "main"
imagePullPolicy: "Always"
swaggerEnabled: true
rootDirectoryId: "27fee02a-e265-4cfc-af70-4f217a33840b"
rootDirectoryId: "ee464a81-fca4-431d-8315-5db5e49b4c3c"
operatorId: "27fee02a-e265-4cfc-af70-4f217a33840b"

migrations:
Expand All @@ -62,7 +62,7 @@ processesworker:
adminMail: "[email protected]"
clientIdCisCentral: "<path:portal/data/dim/dev/dim#cisClientId>"
clientSecretCisCentral: "<path:portal/data/dim/dev/dim#cisClientSecret>"
authUrl: "https://catena-x-int-dim.authentication.eu10.hana.ondemand.com"
authUrl: "https://catena-x-dev-dim.authentication.eu10.hana.ondemand.com"
subaccount:
# -- Url to the subaccount service api
baseUrl: "https://accounts-service.cfapps.eu10.hana.ondemand.com"
Expand Down
104 changes: 104 additions & 0 deletions consortia/environments/values-rc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
###############################################################
# Copyright (c) 2024 BMW Group AG
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

ingress:
enabled: true
className: "nginx"
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "8m"
nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000, https://*.dev.demo.catena-x.net"
tls:
- secretName: "tls-secret"
hosts:
- "dim-rc.dev.demo.catena-x.net"
hosts:
- host: "dim-rc.dev.demo.catena-x.net"
paths:
- path: "/api/dim"
pathType: "Prefix"
backend:
port: 8080

dim:
image:
tag: "main"
imagePullPolicy: "Always"
swaggerEnabled: true
rootDirectoryId: "ee464a81-fca4-431d-8315-5db5e49b4c3c"
operatorId: "27fee02a-e265-4cfc-af70-4f217a33840b"

migrations:
image:
tag: "main"
imagePullPolicy: "Always"
logging:
default: "Debug"

processesworker:
image:
tag: "main"
imagePullPolicy: "Always"
logging:
default: "Debug"
dim:
adminMail: "[email protected]"
clientIdCisCentral: "<path:portal/data/dim/dev/dim#cisClientId>"
clientSecretCisCentral: "<path:portal/data/dim/dev/dim#cisClientSecret>"
authUrl: "https://catena-x-dev-dim.authentication.eu10.hana.ondemand.com"
subaccount:
# -- Url to the subaccount service api
baseUrl: "https://accounts-service.cfapps.eu10.hana.ondemand.com"
entitlement:
# -- Url to the entitlement service api
baseUrl: "https://entitlements-service.cfapps.eu10.hana.ondemand.com"
cf:
clientId: "<path:portal/data/dim/dev/cf#clientId>"
clientSecret: "<path:portal/data/dim/dev/cf#clientSecret>"
tokenAddress: "https://login.cf.eu10.hana.ondemand.com/oauth/token"
# -- Url to the cf service api
baseUrl: "https://api.cf.eu10.hana.ondemand.com"
grantType: "client_credentials"
callback:
scope: "openid"
grantType: "client_credentials"
# -- Provide client-id for callback.
clientId: "<path:portal/data/dim/callback#clientId>"
# -- Client-secret for callback client-id. Secret-key 'callback-client-secret'.
clientSecret: "<path:portal/data/dim/dev/callback#clientSecret>"
tokenAddress: "http://centralidp-rc.dev.demo.catena-x.net/auth/realms/CX-Central/protocol/openid-connect/token"
# -- Url to the cf service api
baseAddress: "https://portal-backend-rc.dev.demo.catena-x.net"
technicalUserCreation:
encryptionConfigs:
index0:
encryptionKey: "<<path:portal/data/dim/dev/technicaluser#technicalusercreation-encryption-key0>"

idp:
address: "https://centralidp-rc.dev.demo.catena-x.net"
jwtBearerOptions:
tokenValidationParameters:
validAudience: "DIM-Middle-Layer"

postgresql:
auth:
postgrespassword: "<path:portal/data/dim/dev/postgres#postgres-password>"
password: "<path:portal/data/dim/dev/postgres#password>"
replicationPassword: "<path:portal/data/dim/dev/postgres#replication-password>"
2 changes: 1 addition & 1 deletion src/database/Dim.Entities/Dim.Entities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.4" />
<PackageReference Include="Org.Eclipse.TractusX.Portal.Backend.Framework.DBAccess" Version="2.0.0" />
</ItemGroup>
</Project>

0 comments on commit adae7ee

Please sign in to comment.