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

Merge branch 'OZG-7023-OZG-6956-E2E-externe-Stellen' of...

Merge branch 'OZG-7023-OZG-6956-E2E-externe-Stellen' of git.ozg-sh.de:ozgcloud-app/alfa into OZG-7023-OZG-6956-E2E-externe-Stellen
parents bd78dd2d a62172e8
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -73,7 +73,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- define "app.grpc_client_vorgang_manager_address" -}} {{- define "app.grpcClientVorgangManagerAddress" -}}
{{ printf "dns:///%s.%s:9090" ( coalesce .Values.vorgangManagerName "vorgang-manager" ) .Release.Namespace | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{ printf "dns:///%s.%s:9090" ( coalesce .Values.vorgangManagerName "vorgang-manager" ) .Release.Namespace | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end -}} {{- end -}}
...@@ -85,6 +85,14 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -85,6 +85,14 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{ printf "dns:///%s.%s:9000" ( coalesce .Values.usermanagerName "user-manager" ) .Release.Namespace }} {{ printf "dns:///%s.%s:9000" ( coalesce .Values.usermanagerName "user-manager" ) .Release.Namespace }}
{{- end -}} {{- end -}}
{{- define "app.zufiNamespace" -}}
{{ printf "%s" ( required "zufiManager.namespace must be set if zufiManager server is enabled" (.Values.zufiManager).namespace ) }}
{{- end -}}
{{- define "app.grpcClientZufiServerAddress" -}}
{{ printf "dns:///%s.%s:9090" .Values.zufiManager.serverName (include "app.zufiNamespace" . ) }}
{{- end -}}
{{- define "app.grpc_client_collaboration-manager_address" -}} {{- define "app.grpc_client_collaboration-manager_address" -}}
{{ printf "dns:///%s.%s:9090" ( coalesce .Values.collaborationManagerName "vorgang-manager" ) .Release.Namespace | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{ printf "dns:///%s.%s:9090" ( coalesce .Values.collaborationManagerName "vorgang-manager" ) .Release.Namespace | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end -}} {{- end -}}
......
...@@ -71,7 +71,7 @@ spec: ...@@ -71,7 +71,7 @@ spec:
- name: SERVICE_BINDING_ROOT - name: SERVICE_BINDING_ROOT
value: "/bindings" value: "/bindings"
- name: grpc_client_vorgang-manager_address - name: grpc_client_vorgang-manager_address
value: {{ include "app.grpc_client_vorgang_manager_address" . }} value: {{ include "app.grpcClientVorgangManagerAddress" . }}
- name: grpc_client_vorgang-manager_negotiationType - name: grpc_client_vorgang-manager_negotiationType
value: {{ (.Values.vorgangManager).grpcClientNegotiationType | default "TLS" }} value: {{ (.Values.vorgangManager).grpcClientNegotiationType | default "TLS" }}
- name: grpc_client_user-manager_address - name: grpc_client_user-manager_address
...@@ -113,10 +113,12 @@ spec: ...@@ -113,10 +113,12 @@ spec:
{{- end}} {{- end}}
- name: ozgcloud_administration_address - name: ozgcloud_administration_address
value: {{ include "app.spring_cloud_config_administration_address" . }} value: {{ include "app.spring_cloud_config_administration_address" . }}
{{- if ((.Values.ozgcloud).feature).collaborationEnabled }}
- name: grpc_client_zufi-manager_address - name: grpc_client_zufi-manager_address
value: {{ .Values.zufiManager.address }} value: {{ include "app.grpcClientZufiServerAddress" . }}
- name: grpc_client_zufi-manager_negotiationType - name: grpc_client_zufi-manager_negotiationType
value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "TLS" }} value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "TLS" }}
{{- end }}
{{- if ((.Values.ozgcloud).feature).collaborationEnabled }} {{- if ((.Values.ozgcloud).feature).collaborationEnabled }}
- name: ozgcloud_feature_collaborationEnabled - name: ozgcloud_feature_collaborationEnabled
value: {{ ((.Values.ozgcloud).feature).collaborationEnabled | quote }} value: {{ ((.Values.ozgcloud).feature).collaborationEnabled | quote }}
......
...@@ -56,7 +56,7 @@ spec: ...@@ -56,7 +56,7 @@ spec:
- to: - to:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: {{ required "zufiManager.namespace must be set if zufiManager server is enabled" (.Values.zufiManager).namespace }} kubernetes.io/metadata.name: {{ include "app.zufiNamespace" . }}
podSelector: podSelector:
matchLabels: matchLabels:
component: zufi-server component: zufi-server
......
...@@ -32,7 +32,7 @@ replicaCount: 2 # [default: 2] ...@@ -32,7 +32,7 @@ replicaCount: 2 # [default: 2]
usermanagerName: user-manager usermanagerName: user-manager
zufiManager: zufiManager:
address: zufi-server.zufi:9090 serverName: zufi-server
# env: # env:
# overrideSpringProfiles: "oc,prod" # overrideSpringProfiles: "oc,prod"
......
...@@ -40,4 +40,4 @@ sso: ...@@ -40,4 +40,4 @@ sso:
imagePullSecret: image-pull-secret imagePullSecret: image-pull-secret
zufiManager: zufiManager:
address: https://url.url namespace: namespace
\ No newline at end of file
...@@ -39,18 +39,30 @@ set: ...@@ -39,18 +39,30 @@ set:
serverUrl: https://sso.company.local serverUrl: https://sso.company.local
imagePullSecret: image-pull-secret imagePullSecret: image-pull-secret
tests: tests:
- it: should have set zufi server address - it: should set zufi server address
set: set:
zufiManager: zufiManager:
address: url://url.url namespace: namespace
ozgcloud:
feature:
collaborationEnabled: true
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: grpc_client_zufi-manager_address name: grpc_client_zufi-manager_address
value: url://url.url value: dns:///zufi-server.namespace:9090
- it: should not set zufi server address
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_zufi-manager_address
any: true
- it: should enable collaboration - it: should enable collaboration
set: set:
zufiManager:
namespace: namespace
ozgcloud: ozgcloud:
feature: feature:
collaborationEnabled: true collaborationEnabled: true
...@@ -61,10 +73,6 @@ tests: ...@@ -61,10 +73,6 @@ tests:
name: ozgcloud_feature_collaborationEnabled name: ozgcloud_feature_collaborationEnabled
value: "true" value: "true"
- it: should not enable collaboration - it: should not enable collaboration
set:
ozgcloud:
feature:
collaborationEnabled: false
asserts: asserts:
- notContains: - notContains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
...@@ -74,7 +82,11 @@ tests: ...@@ -74,7 +82,11 @@ tests:
- it: should set negotiation type - it: should set negotiation type
set: set:
zufiManager: zufiManager:
namespace: namespace
grpcClientNegotiationType: PLAINTEXT grpcClientNegotiationType: PLAINTEXT
ozgcloud:
feature:
collaborationEnabled: true
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
...@@ -83,9 +95,21 @@ tests: ...@@ -83,9 +95,21 @@ tests:
value: PLAINTEXT value: PLAINTEXT
- it: negotiation type is TLS in standard - it: negotiation type is TLS in standard
set: set:
zufiManager:
namespace: namespace
ozgcloud:
feature:
collaborationEnabled: true
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: grpc_client_zufi-manager_negotiationType name: grpc_client_zufi-manager_negotiationType
value: TLS value: TLS
- it: should not set negotiation type
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_zufi-manager_negotiationType
any: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment