Skip to content

Commit

Permalink
Adjust to implement autogenerate Password if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacicek committed Jan 22, 2024
1 parent de19aaa commit 0ca47f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/semantic-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sources:
- https://github.com/eclipse-tractusx/sldt-semantic-hub

type: application
version: 0.1.34
version: 0.1.35
appVersion: 0.2.16
dependencies:
- repository: https://charts.bitnami.com/bitnami
Expand Down
11 changes: 10 additions & 1 deletion charts/semantic-hub/templates/hub/hub-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,13 @@ data:
# the fuseki instance does not require authentication yet
# this variables need to be provided because they are mandatory in the application
HUB_TRIPLE_STORE_USERNAME: {{ .Values.graphdb.username | b64enc }}
HUB_TRIPLE_STORE_PASSWORD: {{ .Values.graphdb.password | b64enc }}
{{ if .Values.graphdb.password -}}
HUB_TRIPLE_STORE_PASSWORD: {{ ( .Values.graphdb.password | b64enc) }}
{{ else }}
{{- $secret := (lookup "v1" "Secret" .Release.Namespace $sec_name) }}
{{ if $secret -}}
HUB_TRIPLE_STORE_PASSWORD: {{ index $secret.data "HUB_TRIPLE_STORE_PASSWORD" | quote }}
{{- else -}}
HUB_TRIPLE_STORE_PASSWORD: {{ randAlphaNum 32 | b64enc }}
{{- end }}
{{- end -}}
10 changes: 5 additions & 5 deletions charts/semantic-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


# enables the default keycloak identity provider
enableKeycloak: true
enableKeycloak: false

hub:
image:
Expand Down Expand Up @@ -77,7 +77,7 @@ graphdb:
queryEndpoint: query
updateEndpoint: update
username: admin
password: admin
password:
javaOptions: "-Xmx1048m -Xms1048m"
args: ["--tdb2", "--update", "--loc", "databases/", "/ds"]
storageClassName: default
Expand All @@ -94,10 +94,10 @@ graphdb:

keycloak:
postgresql:
enabled: true
enabled: false
auth:
adminUser: admin
adminPassword: "admin"
adminUser:
adminPassword:
service:
type: ClusterIP
extraVolumes:
Expand Down

0 comments on commit 0ca47f1

Please sign in to comment.