Skip to content

Commit

Permalink
additional args
Browse files Browse the repository at this point in the history
  • Loading branch information
amitz committed Aug 20, 2024
1 parent 2ce3ee2 commit 9e5edc9
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Kubernetes: `>=1.25.0-0`

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalArgs | string | `nil` | Lavap cache additional CLI arguments |
| affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/cache/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
- {{ .Values.log.level | quote }}
- --log_format
- {{ .Values.log.format | quote }}
{{- range $i, $val := $.Values.additionalArgs }}
- {{ $val | quote }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
4 changes: 4 additions & 0 deletions charts/cache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,7 @@ expiration_multiplier:
expiration_non_finalized_multiplier:
# -- Max items allowed in the cache
max_items:
# -- Lavap cache additional CLI arguments
additionalArgs:
# - --expiration-finalized-node-errors
# - 250ms
1 change: 1 addition & 0 deletions charts/consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Kubernetes: `>=1.25.0-0`

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalArgs | string | `nil` | Lavap consumer additional CLI arguments |
| affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/consumer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ spec:
- --reports-be-address
- {{ $.Values.reportsBeAddress }}
{{- end }}
{{- range $i, $val := $.Values.additionalArgs }}
- {{ $val | quote }}
{{- end }}
ports:
{{- range $interfaceEntry := $itemValue.interfaces }}
- name: {{ $interfaceEntry.interface | lower }}
Expand Down
7 changes: 7 additions & 0 deletions charts/consumer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ relayServerAddress:
# -- Address of the report server
reportsBeAddress:

# -- Lavap consumer additional CLI arguments
additionalArgs:
# - --fees
# - 10ulava
# - --note
# - "A personal note"

metrics:
# -- Should enable prometheus metrics
enabled: true
Expand Down
1 change: 1 addition & 0 deletions charts/provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ Kubernetes: `>=1.25.0-0`

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalArgs | string | `nil` | Lavap provider additional CLI arguments |
| affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
| cache.address | string | `"provider-cache:20100"` | Provider cache address |
| cache.enabled | bool | `true` | Enable provider cache supports |
Expand Down
3 changes: 3 additions & 0 deletions charts/provider/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ spec:
- {{ $.Values.log.level }}
- --log_format
- {{ $.Values.log.format }}
{{- range $i, $val := $.Values.additionalArgs }}
- {{ $val | quote }}
{{- end }}
env:
- name: MY_POD_INDEX
valueFrom:
Expand Down
7 changes: 7 additions & 0 deletions charts/provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ chainId: "lava-testnet-2"
# -- Provider geo-location can be one of the [geolocations](https://docs.lavanet.xyz/provider-setup#geolocations)
geolocation: "2"

# -- Lavap provider additional CLI arguments
additionalArgs:
# - --fees
# - 10ulava
# - --note
# - "A personal note"

# @ignored
chains:
lav1:
Expand Down

0 comments on commit 9e5edc9

Please sign in to comment.