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

build: add stable env configuration file #217

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
38 changes: 38 additions & 0 deletions environments/argocd-app-templates/appsetup-stable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
###############################################################
# Copyright (c) 2024 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: policy-hub
spec:
destination:
namespace: product-portal
server: 'https://kubernetes.default.svc'
source:
path: charts/policy-hub
repoURL: 'https://github.com/eclipse-tractusx/policy-hub.git'
targetRevision: policy-hub-1.1.0
plugin:
env:
- name: AVP_SECRET
value: vault-secret
- name: helm_args
value: '-f values.yaml -f ../../environments/helm-values/values-stable.yaml'
project: project-portal
62 changes: 62 additions & 0 deletions environments/helm-values/values-stable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
###############################################################
# Copyright (c) 2024 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
###############################################################

policyHubAddress: "https://policy-hub.stable.catena-x.net"
centralidp:
address: "https://centralidp.stable.catena-x.net"

ingress:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
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: "https://*.stable.catena-x.net"
tls:
- secretName: "policy-hub.stable.catena-x.net-tls"
hosts:
- "policy-hub.stable.catena-x.net"
hosts:
- host: "policy-hub.stable.catena-x.net"
paths:
- path: "/api/policy-hub"
pathType: "Prefix"

keycloak:
central:
jwtBearerOptions:
tokenValidationParameters:
validAudience: "Cl23-CX-Policy-Hub"

service:
swaggerEnabled: true

migrations:
logging:
default: "Debug"

replicaCount: 2

postgresql:
architecture: standalone
auth:
postgrespassword: "<path:portal/data/policy-hub/stable/postgres#postgres-password>"
password: "<path:portal/data/policy-hub/stable/postgres#password>"