Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/hedera-mirror-rest-java/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ spec:
http:
paths:
{{- range .paths }}
{{- if or (empty .condition) (eq (tpl .condition $) "true") }}
- path: {{ .path }}
pathType: {{ .type | default "ImplementationSpecific" }}
backend:
service:
name: {{ $fullName }}
port:
number: {{ $servicePort }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.ingress.tls.enabled }}
Expand Down
12 changes: 11 additions & 1 deletion charts/hedera-mirror-rest-java/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@

fullnameOverride: ""

routes:
networkStake: false

gateway:
gcp:
backendPolicy:
Expand All @@ -71,7 +74,7 @@
kind: "{{ .Values.gateway.target.kind }}"
name: "{{ include \"hedera-mirror-rest-java.fullname\" $ }}"
port: 80
matches:
matches: |

Check warning on line 77 in charts/hedera-mirror-rest-java/values.yaml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

charts/hedera-mirror-rest-java/values.yaml#L77

The 'id' field $X was used multiple times.
- path:
type: RegularExpression # GKE does not yet support RegularExpression type
value: '/api/v1/accounts/(\d+\.){0,2}(\d+|(0x)?[A-Fa-f0-9]{40}|(?:[A-Z2-7]{8})*(?:[A-Z2-7]{2}|[A-Z2-7]{4,5}|[A-Z2-7]{7,8}))/allowances/nfts'
Expand All @@ -84,6 +87,11 @@
- path:
type: RegularExpression
value: '/api/v1/topics/(\d+\.){0,2}\d+$'
{{- if .Values.routes.networkStake }}
- path:
type: RegularExpression
value: '/api/v1/network/stake$'
{{- end }}
target:
group: ""
kind: Service
Expand Down Expand Up @@ -132,6 +140,8 @@
- path: '/api/v1/accounts/(\d+\.){0,2}(\d+|(0x)?[A-Fa-f0-9]{40}|(?:[A-Z2-7]{8})*(?:[A-Z2-7]{2}|[A-Z2-7]{4,5}|[A-Z2-7]{7,8}))/airdrops/outstanding'
- path: '/api/v1/accounts/(\d+\.){0,2}(\d+|(0x)?[A-Fa-f0-9]{40}|(?:[A-Z2-7]{8})*(?:[A-Z2-7]{2}|[A-Z2-7]{4,5}|[A-Z2-7]{7,8}))/airdrops/pending'
- path: '/api/v1/topics/(\d+\.){0,2}\d+$'
- path: '/api/v1/network/stake$'
condition: "{{ .Values.routes.networkStake }}"
tls:
enabled: false
secretName: ""
Expand Down
Loading