Skip to content
Snippets Groups Projects
Commit a12c9a43 authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM)
Browse files

Merge branch 'GONRG-5027-Configure_partition_availability' into 'master'

Gonrg 5027 configure partition availability

See merge request !238
parents 260c66a1 78a7aab5
No related branches found
No related tags found
1 merge request!238Gonrg 5027 configure partition availability
Pipeline #126655 failed
......@@ -122,6 +122,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
**cicdEnabled** | whether CI/CD is enabled | boolean | false | yes
**configmap** | configmap to be used | string | partition-config | yes
**onPremEnabled** | whether on-prem is enabled | boolean | false | yes
**publicAvailable** | public access to /api/partition | boolean | false | yes
**secret** | secret for postgres | string | partition-postgres-secret | yes
### Install the helm chart
......
......@@ -13,11 +13,17 @@ spec:
gateways:
- service-gateway
http:
{{- if .Values.conf.publicAvailable }}
- match:
- uri:
prefix: "/api/partition"
{{- else }}
- match:
- uri:
exact: "/api/partition/v1/info"
{{- end }}
route:
- destination:
port:
number: 80
host: "{{ .Values.conf.appName }}.{{ .Release.Namespace }}.svc.cluster.local"
host: "{{ .Values.conf.appName }}.{{ .Release.Namespace }}.svc.cluster.local"
\ No newline at end of file
......@@ -17,6 +17,7 @@ conf:
configmap: "partition-config"
domain: ""
onPremEnabled: false
publicAvailable: false
secret: "partition-postgres-secret"
namespacePolicy:
mtlsMode: STRICT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment