Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Moving helm values from product-semantics to tractusx repository #431

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ This project leverages the following third party content.

See DEPENDENCIES file.

## Helm Values
Project contains helm values for different environments at /consortia/environments/
Also, it contains the argocd app templates at consortia/argocd-app-templates/


## Cryptography

Content may contain encryption software. The country in which you are currently
Expand Down
41 changes: 41 additions & 0 deletions consortia/argocd-app-templates/appsetup-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
###############################################################
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# 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: semantic-dec-registry
spec:
destination:
namespace: product-semantics
server: 'https://kubernetes.default.svc'
source:
path: charts/registry
repoURL: 'https://github.com/eclipse-tractusx/sldt-digital-twin-registry.git'
targetRevision: main
plugin:
env:
- name: AVP_SECRET
value: vault-secret
- name: helm_args
value: '-f values.yaml -f ../../consortia/environments/values-dev.yaml'
project: project-semantics
syncPolicy:
automated:
prune: true
38 changes: 38 additions & 0 deletions consortia/argocd-app-templates/appsetup-int.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
###############################################################
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# 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: semantic-dec-registry
spec:
destination:
namespace: product-semantics
server: 'https://kubernetes.default.svc'
source:
path: charts/registry
repoURL: 'https://github.com/eclipse-tractusx/sldt-digital-twin-registry.git'
targetRevision: main
plugin:
env:
- name: AVP_SECRET
value: vault-secret
- name: helm_args
value: '-f values.yaml -f ../../consortia/environments/values-int.yaml'
project: project-semantics
57 changes: 57 additions & 0 deletions consortia/environments/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
digital-twin-registry:
enablePostgres: true
enableKeycloak: true
keycloak:
type: NodePort
args: [ "kc.sh import --file /opt/keycloak/data/import/default-realm-import.json; kc.sh start-dev --hostname-strict=false --proxy=edge" ]
auth:
adminUser: <path:semantics/data/dec-reg#keycloak-admin-user-dev>
adminPassword: <path:semantics/data/dec-reg#keycloak-admin-password-dev>
ingress:
enabled: true
hostname: semantic-dec-registry.dev.demo.catena-x.net
path: /
tls: true
annotations:
external-dns.alpha.kubernetes.io/hostname: semantic-dec-registry.dev.demo.catena-x.net
nginx.org/location-snippets: |
add_header X-Forwarded-Proto https;
add_header X-Forwarded-For semantic-dec-registry.dev.demo.catena-x.net;
registry:
replicaCount: 1
imagePullPolicy: Always
host: semantic-dec-registry.dev.demo.catena-x.net
## If 'authentication' is set to false, no OAuth authentication is enforced
authentication: true
idpIssuerUri: https://semantic-dec-registry.dev.demo.catena-x.net/realms/default-realm
idpClientId: default-client
tenantId: demo-tenant
useGranularAccessControl: "true"
dataSource:
driverClassName: org.postgresql.Driver
## The url, user, and password parameter will be ignored if 'enablePostgres' is set to true.
## In that case the postgresql auth parameters are used.
url: jdbc:postgresql://postgresql:5432/registry
user: registryuser
password: <path:semantics/data/dec-reg#registry-password>
ingress:
enabled: true
tls: true
urlPrefix: /dec-registry
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/x-forwarded-prefix: /dec-registry

postgresql:
auth:
username: default-user
# if password is empty, the postgres password will be generated random via postgres-init
password: password
database: default-database
# -- Secret contains passwords for username postgres.
existingSecret: secret-dtr-postgres-init
Loading
Loading