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

OZG-5100 separate customList and additional networkpolicy config into local and global

parent f6b4cc7e
No related branches found
No related tags found
No related merge requests found
......@@ -81,11 +81,11 @@ routing:
### Benutzung beliebiger environment Werte
In jedem der Projekte kann man beliebige weitere environments setzen. Dazu muss man in der jeweiligen values.yaml unter env.customList ein name value Paar setzen:
In jedem der Projekte kann man beliebige weitere environments setzen. Dazu muss man in der jeweiligen values.yaml unter env.customVarsLocal ein name value Paar setzen:
```yaml
env:
customList:
customVarsLocal:
- name: Dinge
value: true
- name: ...
......
......@@ -81,7 +81,10 @@ spec:
- name: grpc_client_vorgang-manager-{{ (.Values.routing).targetVorgangManagerName}}_negotiationType
value: {{ (.Values.routing).negotiationType | default "PLAINTEXT" }}
{{- end }}
{{- with (.Values.env).customList }}
{{- with (.Values.env).customVarsLocal }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with (.Values.env).customVarsGlobal }}
{{ toYaml . | indent 8 }}
{{- end }}
image: "{{ .Values.image.repo }}/{{ .Values.image.name }}:{{ coalesce (.Values.image).tag "latest" }}"
......
......@@ -29,18 +29,6 @@ image:
name: intelliform-adapter # [default: intelliform-adapter]
tag: latest # [default: latest]
# env:
# overrideSpringProfiles: "oc,prod"
# customList: # add name value pair for additional environments
# - name: Dinge
# value: true
#resources:
# limits:
# cpu: 1 # [default: 1]
# memory: 1200Mi # [default: 1200Mi]
# requests:
# cpu: 100m # [default: 100m]
# memory: 250Mi # [default: 250Mi]
ingress:
enabled: true
......
......@@ -29,9 +29,20 @@ set:
ozgcloud.environment: test
imagePullSecret: image-pull-secret
tests:
- it: check customList
- it: check customVarsLocal
set:
env.customList:
env.customVarsLocal:
- name: my_test_environment_name
value: "A test value"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: my_test_environment_name
value: "A test value"
- it: check customVarsGlobal
set:
env.customVarsGlobal:
- name: my_test_environment_name
value: "A test value"
asserts:
......
......@@ -66,7 +66,10 @@ spec:
protocol: TCP
- port: 9000
protocol: TCP
{{- with (.Values.networkPolicy).additionalEgressConfig }}
{{- with (.Values.networkPolicy).additionalEgressConfigLocal }}
{{ toYaml . | indent 2 }}
{{- end }}
{{- with (.Values.networkPolicy).additionalEgressConfigGlobal }}
{{ toYaml . | indent 2 }}
{{- end }}
......
......@@ -89,12 +89,28 @@ tests:
- port: 9000
protocol: TCP
- it: add egress rules by values
- it: add egress rules by values local
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-dns-namespace
additionalEgressConfig:
additionalEgressConfigLocal:
- to:
- ipBlock:
cidr: 1.2.3.4/32
asserts:
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/32
- it: add egress rules by values global
set:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: test-dns-namespace
additionalEgressConfigGlobal:
- to:
- ipBlock:
cidr: 1.2.3.4/32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment