Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eingang-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
eingang-manager
Commits
9a6db20d
Commit
9a6db20d
authored
1 year ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
ozg-3938 enable grpc tls
parent
b864d2dc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
run_helm_test.sh
+1
-1
1 addition, 1 deletion
run_helm_test.sh
src/main/helm/templates/deployment.yaml
+17
-1
17 additions, 1 deletion
src/main/helm/templates/deployment.yaml
src/test/helm/deployment_routing_strategy_env.yaml
+3
-3
3 additions, 3 deletions
src/test/helm/deployment_routing_strategy_env.yaml
with
21 additions
and
5 deletions
run_helm_test.sh
+
1
−
1
View file @
9a6db20d
...
@@ -4,4 +4,4 @@ set -e
...
@@ -4,4 +4,4 @@ set -e
helm template ./src/main/helm/
-f
src/test/helm-linter-values.yaml
helm template ./src/main/helm/
-f
src/test/helm-linter-values.yaml
helm lint
-f
src/test/helm-linter-values.yaml ./src/main/helm/
helm lint
-f
src/test/helm-linter-values.yaml ./src/main/helm/
cd
src/main/helm
&&
helm unittest
-f
'../../test/helm/**/*test.yaml'
.
cd
src/main/helm
&&
helm unittest
-f
'../../test/helm/**/*.yaml'
.
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/helm/templates/deployment.yaml
+
17
−
1
View file @
9a6db20d
...
@@ -59,6 +59,8 @@ spec:
...
@@ -59,6 +59,8 @@ spec:
app.kubernetes.io/name
:
{{
.Release.Name
}}
app.kubernetes.io/name
:
{{
.Release.Name
}}
containers
:
containers
:
-
env
:
-
env
:
-
name
:
SERVICE_BINDING_ROOT
value
:
"
/bindings"
{{
- range (.Values.env).grpc
}}
{{
- range (.Values.env).grpc
}}
-
name
:
{{
.name
}}
-
name
:
{{
.name
}}
value
:
{{
.value
}}
value
:
{{
.value
}}
...
@@ -79,7 +81,7 @@ spec:
...
@@ -79,7 +81,7 @@ spec:
-
name
:
grpc_client_vorgang-manager-{{ (.Values.routing).targetVorgangManagerName}}_address
-
name
:
grpc_client_vorgang-manager-{{ (.Values.routing).targetVorgangManagerName}}_address
value
:
'
vorgang-manager.{{
coalesce
(.Values.routing).targetNamespace
.Release.Namespace
}}:9090'
value
:
'
vorgang-manager.{{
coalesce
(.Values.routing).targetNamespace
.Release.Namespace
}}:9090'
-
name
:
grpc_client_vorgang-manager-{{ (.Values.routing).targetVorgangManagerName}}_negotiationType
-
name
:
grpc_client_vorgang-manager-{{ (.Values.routing).targetVorgangManagerName}}_negotiationType
value
:
{{
(.Values.routing).negotiationType | default "
PLAINTEXT
"
}}
value
:
{{
(.Values.routing).negotiationType | default "
TLS
"
}}
{{
- end
}}
{{
- end
}}
{{
- with (.Values.env).customList
}}
{{
- with (.Values.env).customList
}}
{{
toYaml . | indent 8
}}
{{
toYaml . | indent 8
}}
...
@@ -150,9 +152,23 @@ spec:
...
@@ -150,9 +152,23 @@ spec:
volumeMounts
:
volumeMounts
:
-
name
:
temp-dir
-
name
:
temp-dir
mountPath
:
"
/tmp"
mountPath
:
"
/tmp"
-
name
:
namespace-ca-cert
mountPath
:
"
/bindings/namespace-certificate"
readOnly
:
true
volumes
:
volumes
:
-
name
:
temp-dir
-
name
:
temp-dir
emptyDir
:
{}
emptyDir
:
{}
-
name
:
namespace-ca-cert
projected
:
sources
:
-
secret
:
name
:
{{
include "app.namespace" .
}}
-ca-cert
optional
:
true
items
:
-
key
:
ca.crt
path
:
ca.crt
-
configMap
:
name
:
bindings-type
dnsConfig
:
{}
dnsConfig
:
{}
dnsPolicy
:
ClusterFirst
dnsPolicy
:
ClusterFirst
imagePullSecrets
:
imagePullSecrets
:
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/deployment_routing_strategy_env.yaml
+
3
−
3
View file @
9a6db20d
...
@@ -49,13 +49,13 @@ tests:
...
@@ -49,13 +49,13 @@ tests:
path
:
spec.template.spec.containers[0].env
path
:
spec.template.spec.containers[0].env
content
:
content
:
name
:
grpc_client_vorgang-manager-vorgang-manager_negotiationType
name
:
grpc_client_vorgang-manager-vorgang-manager_negotiationType
value
:
PLAINTEXT
value
:
TLS
-
it
:
validate routing infos
-
it
:
validate routing infos
set
:
set
:
routing
:
routing
:
routingStrategy
:
MULTI
routingStrategy
:
MULTI
fallbackStrategy
:
FUNDSTELLE
fallbackStrategy
:
FUNDSTELLE
negotiationType
:
TLS
negotiationType
:
PLAINTEXT
asserts
:
asserts
:
-
contains
:
-
contains
:
path
:
spec.template.spec.containers[0].env
path
:
spec.template.spec.containers[0].env
...
@@ -71,4 +71,4 @@ tests:
...
@@ -71,4 +71,4 @@ tests:
path
:
spec.template.spec.containers[0].env
path
:
spec.template.spec.containers[0].env
content
:
content
:
name
:
grpc_client_vorgang-manager-vorgang-manager_negotiationType
name
:
grpc_client_vorgang-manager-vorgang-manager_negotiationType
value
:
TLS
value
:
PLAINTEXT
\ No newline at end of file
\ No newline at end of file
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