From 3f8be327f44c44e58fe3fd08a6e2853ba8e254d7 Mon Sep 17 00:00:00 2001 From: Mathias Knoop Date: Tue, 13 Jun 2023 14:14:53 +0200 Subject: [PATCH] feat: add app setup for the stages 'dev' and 'int' in order to deploy the (new) 'Managed-Identity-Wallet' on these stages. --- .../argocd/appsetup-dev.yaml | 22 ++++++++++++ .../argocd/appsetup-int.yaml | 22 ++++++++++++ .../managed-identity-wallet/values-int.yaml | 36 +++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 charts/managed-identity-wallet/argocd/appsetup-dev.yaml create mode 100644 charts/managed-identity-wallet/argocd/appsetup-int.yaml create mode 100644 charts/managed-identity-wallet/values-int.yaml diff --git a/charts/managed-identity-wallet/argocd/appsetup-dev.yaml b/charts/managed-identity-wallet/argocd/appsetup-dev.yaml new file mode 100644 index 000000000..96e561d7d --- /dev/null +++ b/charts/managed-identity-wallet/argocd/appsetup-dev.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: managed-identity-wallets-new +spec: + destination: + name: '' + namespace: product-managed-identity-wallets + server: 'https://kubernetes.default.svc' + source: + path: charts/managed-identity-wallet + repoURL: 'https://github.com/catenax-ng/tx-managed-identity-wallets.git' + targetRevision: features/java-did-web + plugin: + name: argocd-vault-plugin-helm-args + env: + - name: AVP_SECRET + value: vault-secret + - name: helm_args + value: '-f values.yaml -f values-dev.yaml' + sources: [] + project: project-managed-identity-wallets \ No newline at end of file diff --git a/charts/managed-identity-wallet/argocd/appsetup-int.yaml b/charts/managed-identity-wallet/argocd/appsetup-int.yaml new file mode 100644 index 000000000..9a59e4397 --- /dev/null +++ b/charts/managed-identity-wallet/argocd/appsetup-int.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: managed-identity-wallets-new +spec: + destination: + name: '' + namespace: product-managed-identity-wallets + server: 'https://kubernetes.default.svc' + source: + path: charts/managed-identity-wallet + repoURL: 'https://github.com/catenax-ng/tx-managed-identity-wallets.git' + targetRevision: features/java-did-web + plugin: + name: argocd-vault-plugin-helm-args + env: + - name: AVP_SECRET + value: vault-secret + - name: helm_args + value: '-f values.yaml -f values-int.yaml' + sources: [] + project: project-managed-identity-wallets \ No newline at end of file diff --git a/charts/managed-identity-wallet/values-int.yaml b/charts/managed-identity-wallet/values-int.yaml new file mode 100644 index 000000000..250169891 --- /dev/null +++ b/charts/managed-identity-wallet/values-int.yaml @@ -0,0 +1,36 @@ +image: + tag: "latest-java-did-web" + +secrets: + DB_USER_NAME: + DB_PASSWORD: + ENCRYPTION_KEY: 76a7834fb37e090c2789a9b1a76748d3 + KEYCLOAK_CLIENT_ID: + +envs: + DB_HOST: managed-identity-wallets-new-postgresql + MIW_HOST_NAME: managed-identity-wallets-new.int.demo.catena-x.net # Depend on ingress host name (managed-identity-wallets-new.int.demo.catena-x.net) + KEYCLOAK_REALM: CX-Central + AUTH_SERVER_URL: https://centralidp.int.demo.catena-x.net/auth + AUTHORITY_WALLET_DID: "did:web:managed-identity-wallets-new.int.demo.catena-x.net:BPNL000000000000" + +ingress: + enabled: true + hosts: + - host: managed-identity-wallets-new.int.demo.catena-x.net + paths: + - path: / + pathType: ImplementationSpecific + tls: + - secretName: miw-secret + hosts: + - managed-identity-wallets-new.int.demo.catena-x.net + +postgresql: + primary: + initdb: + password: + auth: + password: + postgresPassword: + username: \ No newline at end of file