Skip to content

Commit

Permalink
DeployAI: Add TIL as Trust-TIR with mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
dwendland committed Jul 26, 2024
1 parent a6c0c0d commit 8eeb1e7
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 144 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mongodb-trust
name: mysql-trust
namespace: argocd
spec:
destination:
namespace: deployai
server: https://kubernetes.default.svc
project: default
source:
path: aws/deployai/trust/mongodb
path: aws/deployai/trust/mysql
repoURL: https://github.com/FIWARE-Ops/fiware-gitops
targetRevision: HEAD
syncPolicy:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: orion-ld-trust
name: tir-trust
namespace: argocd
spec:
destination:
namespace: deployai
server: https://kubernetes.default.svc
project: default
source:
path: aws/deployai/trust/orion-ld
path: aws/deployai/trust/trusted-issuers-list
repoURL: https://github.com/FIWARE-Ops/fiware-gitops
targetRevision: HEAD
syncPolicy:
Expand Down
22 changes: 0 additions & 22 deletions aws/deployai/trust/mongodb/values.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
apiVersion: v2
name: mongodb
name: mysql
description: Chart holder for argo-cd

type: application
version: 0.1.0
appVersion: "4.4.12"
version: 9.4.4
appVersion: "8.0.31"

dependencies:
- name: mongodb
version: 11.0.4
- name: mysql
version: 9.4.4
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami

25 changes: 25 additions & 0 deletions aws/deployai/trust/mysql/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
mysql:
fullnameOverride: mysql-trust

auth:
existingSecret: mysql-secret

rbac:
create: true
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- anyuid
resources:
- securitycontextconstraints
verbs:
- use

primary:
persistence:
size: 1Gi

initdbScripts:
create.sql: |
CREATE DATABASE til;
12 changes: 0 additions & 12 deletions aws/deployai/trust/orion-ld/Chart.yaml

This file was deleted.

100 changes: 0 additions & 100 deletions aws/deployai/trust/orion-ld/values.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions aws/deployai/trust/trusted-issuers-list/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v2
name: trusted-issuers-list
description: Chart holder for argo-cd

type: application
version: 0.3.5
appVersion: "0.0.3"

dependencies:
- name: trusted-issuers-list
version: 0.3.5
repository: https://fiware.github.io/helm-charts
65 changes: 65 additions & 0 deletions aws/deployai/trust/trusted-issuers-list/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Used as Trusted Issuers Registry of the data space
trusted-issuers-list:

# Image
deployment:
image:
tag: 0.2.0

# Configure an Ingress or OpenShift Route
ingress:
til:
enabled: false
tir:
enabled: false
route:
til:
enabled: false
host: til.deployai.fiware.dev
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
certificate:
issuer:
kind: ClusterIssuer
name: letsencrypt-aws-prod
tir:
enabled: true
host: tir.deployai.fiware.dev
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
certificate:
issuer:
kind: ClusterIssuer
name: letsencrypt-aws-prod

# Database config
database:
persistence: true
host: mysql-trust
name: til

existingSecret:
enabled: true
name: mysql-secret
key: mysql-root-password

username: root

initData:
initEnabled: true
hook: post-install,post-upgrade
issuers:
# allow ourself to issuer credentials
- name: deployai-marketplace
issuer:
did: "did:web:marketplace.deployai.fiware.dev"
credentials: []
- name: deployai-provider
issuer:
did: "did:web:provider.deployai.fiware.dev"
credentials: []
- name: deployai-consumer
issuer:
did: "did:web:consumer.deployai.fiware.dev"

0 comments on commit 8eeb1e7

Please sign in to comment.