Skip to content

Commit

Permalink
0512
Browse files Browse the repository at this point in the history
  • Loading branch information
amitza committed Sep 1, 2024
1 parent 53fcbd6 commit 529abc2
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/cache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://github.com/lavanet/helm-charts/blob/main/docs/logo/logo.png?raw=tr
sources:
- https://github.com/lavanet/helm-charts
type: application
version: 0.5.11
version: 0.5.12
appVersion: "v2.5.0"
kubeVersion: ">=1.25.0-0"
home: https://lavanet.xyz
Expand Down
2 changes: 1 addition & 1 deletion charts/cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Lava helm chart for the cache service

![Version: 0.5.11](https://img.shields.io/badge/Version-0.5.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)
![Version: 0.5.12](https://img.shields.io/badge/Version-0.5.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)

## Lavanet Cache Helm Chart

Expand Down
2 changes: 1 addition & 1 deletion charts/consumer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://github.com/lavanet/helm-charts/blob/main/docs/logo/logo.png?raw=tr
sources:
- https://github.com/lavanet/helm-charts
type: application
version: 0.5.11
version: 0.5.12
appVersion: "v2.5.0"
kubeVersion: ">=1.25.0-0"
home: https://lavanet.xyz
Expand Down
2 changes: 1 addition & 1 deletion charts/consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Lava helm chart for the consumer service

![Version: 0.5.11](https://img.shields.io/badge/Version-0.5.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)
![Version: 0.5.12](https://img.shields.io/badge/Version-0.5.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)

## Lavanet Consumer Helm Chart

Expand Down
9 changes: 8 additions & 1 deletion charts/consumer/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ metadata:
{{- include "consumer.labels" $ | nindent 4 }}
data:
config.yml: |
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
endpoints:
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- range $interfaceEntry := $interfaces }}
- chain-id: {{ $itemKey | upper }}
api-interface: {{ $interfaceEntry.interface }}
network-address: 0.0.0.0:{{ $interfaceEntry.port }}
{{- end }}
static-providers:
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- if $interfaceEntry.staticProviders }}
Expand All @@ -25,5 +31,6 @@ data:
{{- end }}
{{- end }}
{{- end }}
metrics-listen-address: "0.0.0.0:{{ $.Values.metrics.port }}"
{{- end }}
6 changes: 5 additions & 1 deletion charts/consumer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ spec:
- {{ $val | quote }}
{{- end }}
ports:
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
{{- range $interfaceEntry := $interfaces }}
- name: {{ $interfaceEntry.interface | lower }}
containerPort: {{ $interfaceEntry.port }}
protocol: TCP
Expand Down
12 changes: 10 additions & 2 deletions charts/consumer/templates/ingress-grpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ spec:
tls:
- hosts:
{{- range $itemKey, $itemValue := $.Values.chains }}
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
{{- range $interfaceEntry := $interfaces }}
{{- if (eq ($interfaceEntry.interface | lower) "grpc") }}
- "{{ $itemKey | lower }}-{{ $interfaceEntry.interface | lower }}.{{ include "consumer.domain" $ }}"
{{- end }}
Expand All @@ -27,7 +31,11 @@ spec:
{{- end }}
rules:
{{- range $itemKey, $itemValue := $.Values.chains }}
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
{{- range $interfaceEntry := $interfaces }}
{{- if (eq ($interfaceEntry.interface | lower) "grpc") }}
- host: "{{ $itemKey | lower }}-{{ $interfaceEntry.interface | lower }}.{{ include "consumer.domain" $ }}"
http:
Expand Down
12 changes: 10 additions & 2 deletions charts/consumer/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ spec:
tls:
- hosts:
{{- range $itemKey, $itemValue := $.Values.chains }}
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
{{- range $interfaceEntry := $interfaces }}
{{- if (ne ($interfaceEntry.interface | lower) "grpc") }}
- "{{ $itemKey | lower }}-{{ $interfaceEntry.interface | lower }}.{{ include "consumer.domain" $ }}"
{{- end }}
Expand All @@ -27,7 +31,11 @@ spec:
{{- end }}
rules:
{{- range $itemKey, $itemValue := $.Values.chains }}
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
{{- range $interfaceEntry := $interfaces }}
{{- if (ne ($interfaceEntry.interface | lower) "grpc") }}
- host: "{{ $itemKey | lower }}-{{ $interfaceEntry.interface | lower }}.{{ include "consumer.domain" $ }}"
http:
Expand Down
6 changes: 5 additions & 1 deletion charts/consumer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ metadata:
spec:
type: {{ $.Values.service.type }}
ports:
{{- range $interfaceEntry := $itemValue.interfaces }}
{{- $interfaces := dict }}
{{- range .interfaces }}
{{- $_ := set $interfaces .interface . }}
{{- end }}
{{- range $interfaceEntry := $interfaces }}
- port: {{ $interfaceEntry.port }}
targetPort: {{ $interfaceEntry.interface | lower }}
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://github.com/lavanet/helm-charts/blob/main/docs/logo/logo.png?raw=tr
sources:
- https://github.com/lavanet/helm-charts
type: application
version: 0.5.11
version: 0.5.12
appVersion: "v2.5.0"
kubeVersion: ">=1.25.0-0"
home: https://lavanet.xyz
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Lava helm chart for the provider service

![Version: 0.5.11](https://img.shields.io/badge/Version-0.5.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)
![Version: 0.5.12](https://img.shields.io/badge/Version-0.5.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)

## Lavanet Provider Helm Chart

Expand Down

0 comments on commit 529abc2

Please sign in to comment.