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: add initial setup for portal and cx-iam #38

Merged
merged 4 commits into from
Nov 27, 2023
Merged
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
15 changes: 15 additions & 0 deletions charts/umbrella/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,18 @@ dependencies:
name: tractusx-connector-legacy
version: 0.5.0-rc1
repository: https://eclipse-tractusx.github.io/charts/dev

# portal
- condition: portal.enabled
name: portal
repository: https://eclipse-tractusx.github.io/charts/dev
version: 1.6.0
# cx-iam
- condition: centralidp.enabled
name: centralidp
repository: https://eclipse-tractusx.github.io/charts/dev
version: 1.2.0
- condition: sharedidp.enabled
name: sharedidp
repository: https://eclipse-tractusx.github.io/charts/dev
version: 1.2.0
30 changes: 30 additions & 0 deletions charts/umbrella/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,33 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Postgresql is a dependency of a dependency, which resulted in an empty .Chart.Name..
Therefore, setting the chart name to the static value for the relevant resources.
*/}}

{{- define "postgresql.primary.fullname" -}}
{{- if eq .Values.architecture "replication" }}
{{- printf "%s-primary" (include "chart-name-postgresql-dependency" .) | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "chart-name-postgresql-dependency" . -}}
{{- end -}}
{{- end -}}

{{- define "postgresql.readReplica.fullname" -}}
{{- printf "%s-read" (include "chart-name-postgresql-dependency" .) | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "chart-name-postgresql-dependency" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default "postgresql" .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
20 changes: 20 additions & 0 deletions charts/umbrella/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,23 @@ edcprovider:
transferProxyTokenEncryptionAesKey: *edcProviderVaultTransferEncryptionAesKey
transferProxyTokenSignerPrivateKey: *edcProviderVaultTransferPrivateKey
transferProxyTokenSignerPublicKey: *edcProviderVaultTransferPublicKey

portal:
enabled: true
replicaCount: 1

centralidp:
enabled: false
keycloak:
nameOverride: "centralidp"
replicaCount: 1
postgresql:
nameOverride: "centralidp-postgresql"

sharedidp:
enabled: true
keycloak:
nameOverride: "sharedidp"
replicaCount: 1
postgresql:
nameOverride: "sharedidp-postgresql"
Loading