Skip to content
Snippets Groups Projects
Commit 7bdbcb04 authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

OZG-6254 OZG-6484 pvog routing set default neogitationType

parent 3934630a
No related branches found
No related tags found
No related merge requests found
...@@ -85,9 +85,9 @@ spec: ...@@ -85,9 +85,9 @@ spec:
{{- end }} {{- end }}
{{- if eq (.Values.routing).routingStrategy "ZUFI" }} {{- if eq (.Values.routing).routingStrategy "ZUFI" }}
- name: grpc_client_zufi-manager_address - name: grpc_client_zufi-manager_address
value: {{ required "routing.zufiManager.address must be set when routingStrategy=ZUFI" .Values.routing.zufiManager.address | quote }} value: {{ required "routing.zufiManager.address must be set when routingStrategy=ZUFI" ((.Values.routing).zufiManager).address | quote }}
- name: grpc_client_zufi-manager_negotiationType - name: grpc_client_zufi-manager_negotiationType
value: {{ required "routing.zufiManager.negotiationType must be set when routingStrategy=ZUFI" .Values.routing.zufiManager.negotiationType | quote }} value: {{ ((.Values.routing).zufiManager).negotiationType | default "PLAINTEXT" }}
{{- end }} {{- end }}
{{- with include "app.getCustomList" . }} {{- with include "app.getCustomList" . }}
......
...@@ -39,7 +39,7 @@ tests: ...@@ -39,7 +39,7 @@ tests:
routingStrategy: "ZUFI" routingStrategy: "ZUFI"
zufiManager: zufiManager:
address: "127.0.0.1" address: "127.0.0.1"
negotiationType: "PLAINTEXT" negotiationType: "TLS"
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
...@@ -50,7 +50,7 @@ tests: ...@@ -50,7 +50,7 @@ tests:
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: "PLAINTEXT" value: "TLS"
- it: should not set zufi routing values when zufi is disabled - it: should not set zufi routing values when zufi is disabled
asserts: asserts:
...@@ -75,12 +75,15 @@ tests: ...@@ -75,12 +75,15 @@ tests:
- failedTemplate: - failedTemplate:
errorMessage: "routing.zufiManager.address must be set when routingStrategy=ZUFI" errorMessage: "routing.zufiManager.address must be set when routingStrategy=ZUFI"
- it: should throw error if zufi manager negotiationType is not set - it: should set default value for zufi negotiationType
set: set:
routing: routing:
routingStrategy: "ZUFI" routingStrategy: "ZUFI"
zufiManager: zufiManager:
address: "127.0.0.1" address: "127.0.0.1"
asserts: asserts:
- failedTemplate: - contains:
errorMessage: "routing.zufiManager.negotiationType must be set when routingStrategy=ZUFI" path: spec.template.spec.containers[0].env
\ No newline at end of file content:
name: grpc_client_zufi-manager_negotiationType
value: "PLAINTEXT"
\ No newline at end of file
...@@ -87,9 +87,9 @@ spec: ...@@ -87,9 +87,9 @@ spec:
{{- end }} {{- end }}
{{- if eq (.Values.routing).routingStrategy "ZUFI" }} {{- if eq (.Values.routing).routingStrategy "ZUFI" }}
- name: grpc_client_zufi-manager_address - name: grpc_client_zufi-manager_address
value: {{ required "routing.zufiManager.address must be set when routingStrategy=ZUFI" .Values.routing.zufiManager.address | quote }} value: {{ required "routing.zufiManager.address must be set when routingStrategy=ZUFI" ((.Values.routing).zufiManager).address | quote }}
- name: grpc_client_zufi-manager_negotiationType - name: grpc_client_zufi-manager_negotiationType
value: {{ required "routing.zufiManager.negotiationType must be set when routingStrategy=ZUFI" .Values.routing.zufiManager.negotiationType | quote }} value: {{ ((.Values.routing).zufiManager).negotiationType | default "PLAINTEXT" }}
{{- end }} {{- end }}
{{- with include "app.getCustomList" . }} {{- with include "app.getCustomList" . }}
{{ . | indent 16 }} {{ . | indent 16 }}
......
...@@ -38,7 +38,7 @@ tests: ...@@ -38,7 +38,7 @@ tests:
routingStrategy: "ZUFI" routingStrategy: "ZUFI"
zufiManager: zufiManager:
address: "127.0.0.1" address: "127.0.0.1"
negotiationType: "PLAINTEXT" negotiationType: "TLS"
asserts: asserts:
- contains: - contains:
path: spec.jobTemplate.spec.template.spec.containers[0].env path: spec.jobTemplate.spec.template.spec.containers[0].env
...@@ -49,7 +49,7 @@ tests: ...@@ -49,7 +49,7 @@ tests:
path: spec.jobTemplate.spec.template.spec.containers[0].env path: spec.jobTemplate.spec.template.spec.containers[0].env
content: content:
name: grpc_client_zufi-manager_negotiationType name: grpc_client_zufi-manager_negotiationType
value: "PLAINTEXT" value: "TLS"
- it: should not set zufi routing values when zufi is disabled - it: should not set zufi routing values when zufi is disabled
asserts: asserts:
...@@ -74,12 +74,15 @@ tests: ...@@ -74,12 +74,15 @@ tests:
- failedTemplate: - failedTemplate:
errorMessage: "routing.zufiManager.address must be set when routingStrategy=ZUFI" errorMessage: "routing.zufiManager.address must be set when routingStrategy=ZUFI"
- it: should throw error if zufi manager negotiationType is not set - it: should set default value for zufi negotiationType
set: set:
routing: routing:
routingStrategy: "ZUFI" routingStrategy: "ZUFI"
zufiManager: zufiManager:
address: "127.0.0.1" address: "127.0.0.1"
asserts: asserts:
- failedTemplate: - contains:
errorMessage: "routing.zufiManager.negotiationType must be set when routingStrategy=ZUFI" path: spec.jobTemplate.spec.template.spec.containers[0].env
\ No newline at end of file content:
name: grpc_client_zufi-manager_negotiationType
value: "PLAINTEXT"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment