Skip to content
Snippets Groups Projects
Commit d2ae76ff authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4183 OZG-4584 adopt helm chart values

parent 1024055f
No related branches found
No related tags found
No related merge requests found
Showing with 27 additions and 25 deletions
...@@ -98,7 +98,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -98,7 +98,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{ printf "https://%s-%s.%s" (include "app.kopBezeichner" .) (include "app.name" .) .Values.baseUrl }} {{ printf "https://%s-%s.%s" (include "app.kopBezeichner" .) (include "app.name" .) .Values.baseUrl }}
{{- end -}} {{- end -}}
{{- define "app.goofyAddress" -}} {{- define "app.alfaAddress" -}}
{{ printf "https://%s.%s" (include "app.kopBezeichner" .) .Values.baseUrl }} {{ printf "https://%s.%s" (include "app.kopBezeichner" .) .Values.baseUrl }}
{{- end -}} {{- end -}}
......
...@@ -7,5 +7,5 @@ metadata: ...@@ -7,5 +7,5 @@ metadata:
{{- include "app.defaultLabels" . | indent 4 }} {{- include "app.defaultLabels" . | indent 4 }}
type: Opaque type: Opaque
stringData: stringData:
password: {{ required "kop.keycloak.api.password must be set" .Values.kop.keycloak.api.password }} password: {{ required "usermanager.keycloak.api.password must be set" .Values.usermanager.keycloak.api.password }}
{{- end -}} {{- end -}}
\ No newline at end of file
...@@ -64,22 +64,22 @@ spec: ...@@ -64,22 +64,22 @@ spec:
key: connectionString.standard key: connectionString.standard
optional: false optional: false
{{- if not (.Values.sso).api_user }} {{- if not (.Values.sso).api_user }}
- name: KOP_KEYCLOAK_API_PASSWORD - name: USERMANAGER_KEYCLOAK_API_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: user-manager-api-password name: user-manager-api-password
key: password key: password
optional: false optional: false
- name: KOP_KEYCLOAK_API_USER - name: USERMANAGER_KEYCLOAK_API_USER
value: {{ .Values.kop.keycloak.api.user }} value: {{ .Values.usermanager.keycloak.api.user }}
{{- else }} {{- else }}
- name: KOP_KEYCLOAK_API_PASSWORD - name: USERMANAGER_KEYCLOAK_API_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ include "app.generateKeycloakUserSecretName" . }} name: {{ include "app.generateKeycloakUserSecretName" . }}
key: password key: password
optional: false optional: false
- name: KOP_KEYCLOAK_API_USER - name: USERMANAGER_KEYCLOAK_API_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ include "app.generateKeycloakUserSecretName" . }} name: {{ include "app.generateKeycloakUserSecretName" . }}
...@@ -88,22 +88,22 @@ spec: ...@@ -88,22 +88,22 @@ spec:
{{- end }} {{- end }}
- name: QUARKUS_MONGODB_DATABASE - name: QUARKUS_MONGODB_DATABASE
value: {{ include "app.databaseName" . }} value: {{ include "app.databaseName" . }}
- name: KOP_KEYCLOAK_API_REALM - name: USERMANAGER_KEYCLOAK_API_REALM
value: {{ include "app.ssoRealm" . }} value: {{ include "app.ssoRealm" . }}
- name: KOP_KEYCLOAK_API_CLIENT - name: USERMANAGER_KEYCLOAK_API_CLIENT
value: {{ include "app.ssoClientName" . }} value: {{ include "app.ssoClientName" . }}
- name: QUARKUS_OIDC_AUTH_SERVER_URL - name: QUARKUS_OIDC_AUTH_SERVER_URL
value: {{ include "app.ssoServerUrl" . }}/realms/{{ include "app.ssoRealm" . }} value: {{ include "app.ssoServerUrl" . }}/realms/{{ include "app.ssoRealm" . }}
- name: KEYCLOAK_URL - name: KEYCLOAK_URL
value: {{ include "app.ssoServerUrl" . }} value: {{ include "app.ssoServerUrl" . }}
- name: KOP_USER_MANAGER_URL - name: USERMANAGER_USER_MANAGER_URL
value: {{ include "app.baseUrl" . }} value: {{ include "app.baseUrl" . }}
{{- if ((.Values.ozgcloud).usersync).period }} {{- if ((.Values.ozgcloud).usersync).period }}
- name: OZGCLOUD_USERSYNC_PERIOD - name: OZGCLOUD_USERSYNC_PERIOD
value: {{ .Values.ozgcloud.usersync.period }} value: {{ .Values.ozgcloud.usersync.period }}
{{- end }} {{- end }}
- name: QUARKUS_HTTP_CORS_ORIGINS - name: QUARKUS_HTTP_CORS_ORIGINS
value: {{ (include "app.goofyAddress" .) }} value: {{ (include "app.alfaAddress" .) }}
{{- with (.Values.env).customList }} {{- with (.Values.env).customList }}
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
{{- end }} {{- end }}
......
...@@ -28,7 +28,7 @@ metadata: ...@@ -28,7 +28,7 @@ metadata:
{{- with .Values.ingress.configuration_snippet}} {{- with .Values.ingress.configuration_snippet}}
annotations: {{- toYaml . | nindent 4 }} annotations: {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
more_set_headers "Access-Control-Allow-Origin: {{ (include "app.goofyAddress" .) }}"; more_set_headers "Access-Control-Allow-Origin: {{ (include "app.alfaAddress" .) }}";
{{- if (.Values.ingress).use_staging_cert }} {{- if (.Values.ingress).use_staging_cert }}
cert-manager.io/cluster-issuer: letsencrypt-staging cert-manager.io/cluster-issuer: letsencrypt-staging
{{- else }} {{- else }}
......
...@@ -34,7 +34,7 @@ image: ...@@ -34,7 +34,7 @@ image:
database: # username is always <release-name>-database-user database: # username is always <release-name>-database-user
databaseName: user-manager-database databaseName: user-manager-database
kop: usermanager:
keycloak: keycloak:
api: api:
user: userManagerApiUser user: userManagerApiUser
......
...@@ -36,12 +36,12 @@ tests: ...@@ -36,12 +36,12 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_USER name: USERMANAGER_KEYCLOAK_API_USER
value: userManagerApiUser value: userManagerApiUser
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_PASSWORD name: USERMANAGER_KEYCLOAK_API_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: user-manager-api-password name: user-manager-api-password
...@@ -50,7 +50,7 @@ tests: ...@@ -50,7 +50,7 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_REALM name: USERMANAGER_KEYCLOAK_API_REALM
value: sh-helm-test value: sh-helm-test
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
...@@ -65,7 +65,7 @@ tests: ...@@ -65,7 +65,7 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_CLIENT name: USERMANAGER_KEYCLOAK_API_CLIENT
value: alfa value: alfa
- it: should set keycloak client name - it: should set keycloak client name
...@@ -79,7 +79,7 @@ tests: ...@@ -79,7 +79,7 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_CLIENT name: USERMANAGER_KEYCLOAK_API_CLIENT
value: alfa value: alfa
- it: sso.serverurl with https - it: sso.serverurl with https
...@@ -128,7 +128,7 @@ tests: ...@@ -128,7 +128,7 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_USER name: USERMANAGER_KEYCLOAK_API_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: usermanagerapiuser-credentials name: usermanagerapiuser-credentials
...@@ -137,7 +137,7 @@ tests: ...@@ -137,7 +137,7 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_KEYCLOAK_API_PASSWORD name: USERMANAGER_KEYCLOAK_API_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: usermanagerapiuser-credentials name: usermanagerapiuser-credentials
......
...@@ -36,5 +36,5 @@ tests: ...@@ -36,5 +36,5 @@ tests:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: KOP_USER_MANAGER_URL name: USERMANAGER_USER_MANAGER_URL
value: https://helm-user-manager.test.sh.ozg-cloud.de value: https://helm-user-manager.test.sh.ozg-cloud.de
\ No newline at end of file
suite: test ozg_operator_secrets_read_role_binding suite: test ozg_operator_secrets_read_role_binding
release: release:
name: goofy name: alfa
namespace: by-helm-test namespace: by-helm-test
templates: templates:
- templates/ozg_operator_secrets_read_role_binding.yaml - templates/ozg_operator_secrets_read_role_binding.yaml
......
suite: test ozg_operator_secrets_read_role suite: test ozg_operator_secrets_read_role
release: release:
name: goofy name: alfa
namespace: by-helm-test namespace: by-helm-test
templates: templates:
- templates/ozg_operator_secrets_read_role.yaml - templates/ozg_operator_secrets_read_role.yaml
......
suite: test ozg_operator_secrets_role_binding suite: test ozg_operator_secrets_role_binding
release: release:
name: goofy name: alfa
namespace: by-helm-test namespace: by-helm-test
templates: templates:
- templates/ozg_operator_secrets_write_role_binding.yaml - templates/ozg_operator_secrets_write_role_binding.yaml
......
suite: test ozg_operator_secrets_write_role suite: test ozg_operator_secrets_write_role
release: release:
name: goofy name: alfa
namespace: by-helm-test namespace: by-helm-test
templates: templates:
- templates/ozg_operator_secrets_write_role.yaml - templates/ozg_operator_secrets_write_role.yaml
......
...@@ -28,6 +28,8 @@ kop: ...@@ -28,6 +28,8 @@ kop:
bundesland: sh bundesland: sh
bezeichner: helm bezeichner: helm
environment: test environment: test
usermanager:
keycloak: keycloak:
api: api:
password: geheim password: geheim
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment