Skip to content

Commit

Permalink
Merge pull request #210 from shubham17998/develop
Browse files Browse the repository at this point in the history
[MOSIP-34934] Updated datashare helm to work as default and inji-datashare
  • Loading branch information
ckm007 authored Aug 27, 2024
2 parents d4ac45e + 5901c20 commit 0c21d25
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
11 changes: 11 additions & 0 deletions helm/datashare/templates/gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if and .Values.istio.enabled .Values.istio.gateway.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: {{ .Release.Name }}
spec:
selector:
istio: {{ .Values.istio.gateway.selector }}
servers:
{{ toYaml .Values.istio.gateway.servers | indent 4 }}
{{- end }}
8 changes: 6 additions & 2 deletions helm/datashare/templates/virtualservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ spec:
hosts:
- "*"
gateways:
- {{ .Values.istio.gateway }}
{{- include "common.tplvalues.render" ( dict "value" .Values.istio.vs.gateways "context" $ ) | nindent 4 }}
http:
- match:
- uri:
prefix: {{ .Values.istio.prefix }}
prefix: {{ .Values.istio.vs.prefix }}
{{- if .Values.istio.vs.rewrite }}
rewrite:
uri: {{ .Values.istio.vs.rewrite }}
{{- end }}
route:
- destination:
host: {{ template "common.names.fullname" . }}
Expand Down
18 changes: 16 additions & 2 deletions helm/datashare/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,5 +415,19 @@ metrics:
## Only internal access
istio:
enabled: true
gateway: istio-system/internal
prefix: /v1/datashare
gateway:
enabled: false
selector:
istio: ingressgateway-internal
servers:
- hosts:
- api-internal.sandbox.xyz.net
port:
name: http
number: 80
protocol: HTTP
vs:
prefix: /v1/datashare
rewrite: ''
gateways:
- istio-system/internal

0 comments on commit 0c21d25

Please sign in to comment.