Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vorgang-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
vorgang-manager
Commits
e7148d4d
Commit
e7148d4d
authored
8 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6004 zufi only set env vars when zufi is enabled
parent
4deab425
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/helm/templates/deployment.yaml
+4
-1
4 additions, 1 deletion
src/main/helm/templates/deployment.yaml
src/test/helm/deployment_grpc_zufi_manager_address_test.yaml
+40
-3
40 additions, 3 deletions
src/test/helm/deployment_grpc_zufi_manager_address_test.yaml
with
44 additions
and
4 deletions
src/main/helm/templates/deployment.yaml
+
4
−
1
View file @
e7148d4d
...
...
@@ -152,11 +152,14 @@ spec:
value
:
{{
(.Values.userManager).grpcClientNegotiationType | default "TLS"
}}
-
name
:
grpc_client_info-manager_address
value
:
{{
((.Values.ozgcloud).infoManager).address
}}
{{
- if (.Values.zufiManager).enabled
}}
-
name
:
grpc_client_zufi-manager_address
value
:
{{
.Values.zufiManager.address
}}
-
name
:
grpc_client_zufi-manager_negotiationType
value
:
{{
(.Values.zufiManager).grpcClientNegotiationType | default "TLS"
}}
{{
- end
}}
-
name
:
ozgcloud_user-manager_url
value
:
{{
include "app.ozgcloud_migration_user-manager_address" .
}}
{{
- if not (.Values.database).useExternal
}}
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/deployment_grpc_zufi_manager_address_test.yaml
+
40
−
3
View file @
e7148d4d
...
...
@@ -32,27 +32,64 @@ set:
ozgcloud
:
environment
:
dev
imagePullSecret
:
test-image-pull-secret
tests
:
-
it
:
should set the grpc zufi-manager client address
-
it
:
should set default grpc zufi-manager address
set
:
zufiManager
:
enabled
:
true
asserts
:
-
contains
:
path
:
spec.template.spec.containers[0].env
content
:
name
:
grpc_client_zufi-manager_address
value
:
dns://zufi-server.zufi:9090
value
:
zufi-server.zufi:9090
-
it
:
should set custom grpc zufi-manager address
set
:
zufiManager
:
enabled
:
true
address
:
customAddress
asserts
:
-
contains
:
path
:
spec.template.spec.containers[0].env
content
:
name
:
grpc_client_zufi-manager_address
value
:
customAddress
-
it
:
should contain default zufi-manager grpc negotiationType tls
set
:
zufiManager
:
enabled
:
true
asserts
:
-
contains
:
path
:
spec.template.spec.containers[0].env
content
:
name
:
grpc_client_zufi-manager_negotiationType
value
:
TLS
-
it
:
should contain zufi-manager grpc negotiationType plaintext
set
:
zufiManager.grpcClientNegotiationType
:
PLAINTEXT
zufiManager
:
grpcClientNegotiationType
:
PLAINTEXT
enabled
:
true
asserts
:
-
contains
:
path
:
spec.template.spec.containers[0].env
content
:
name
:
grpc_client_zufi-manager_negotiationType
value
:
PLAINTEXT
-
it
:
should not set zufi env vars by default
asserts
:
-
notContains
:
path
:
spec.template.spec.containers[0].env
content
:
name
:
grpc_client_zufi-manager_address
any
:
true
-
notContains
:
path
:
spec.template.spec.containers[0].env
content
:
name
:
grpc_client_zufi-manager_negotiationType
any
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment