Skip to content

Commit

Permalink
add genereric command/params for bridge-relay
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson committed Jan 23, 2024
1 parent 8f67d23 commit 1292636
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/bridges-common-relay/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bridges-common-relay
description: A Helm chart for bridges-common-relay
type: application
version: 0.2.5
version: 0.3.0
maintainers:
- name: Parity
url: https://github.com/paritytech/helm-charts
Expand Down
5 changes: 4 additions & 1 deletion charts/bridges-common-relay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch

# Parity Bridges Common helm chart

![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

This helm chart installs [Parity Bridges Common](https://github.com/paritytech/parity-bridges-common) relayer.

Expand All @@ -40,6 +40,8 @@ helm install bridges-common-relay parity/bridges-common-relay
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Assign custom affinity rules |
| arg | string | `""` | |
| command | string | `""` | |
| env | object | `{}` | Set environment variables |
| existingSecretName | string | `""` | Override secrets with already existing secret name. |
| extraArgs | list | `[]` | Set extra command line arguments |
Expand All @@ -51,6 +53,7 @@ helm install bridges-common-relay parity/bridges-common-relay
| imagePullSecrets | list | `[]` | Reference to one or more secrets to be used when pulling images. ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
| nameOverride | string | `""` | Provide a name in place of node for `app:` labels |
| nodeSelector | object | `{}` | Define which Nodes the Pods are scheduled on |
| params | object | `{}` | |
| podAnnotations | object | `{}` | Annotations to add to the Pod |
| podSecurityContext | object | `{}` | SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| prometheus | object | `{"enabled":false,"port":9615}` | Expose metrics via Prometheus format in /metrics endpoint. |
Expand Down
14 changes: 14 additions & 0 deletions charts/bridges-common-relay/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
{{- if .Values.command }}
- {{ .Values.command | quote }}
{{- end }}
{{- if .Values.arg }}
- {{ .Values.arg | quote }}
{{- end }}
{{- if .Values.params }}
{{- range $key, $value := .Values.params }}
- "--{{ $key }} {{ $value }}"
{{- end }}
{{- end }}
{{/*
Deprecated params, use .Values.command and .Values.params instead.
*/}}
{{- if .Values.relayHeaders.enabled }}
- "relay-headers"
- "{{ .Values.relayHeaders.name }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/bridges-common-relay/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ relayHeadersAndMessages:
# bridge-hub-wococo-transactions-mortality: 4
# lane: ["00000001", "00000002"]

command: ""
arg: ""
params: {}

# -- Secrets will be mounted to pod /secrets/{key}
secrets: {}
# bridge-hub-wococo-signer-file: //Charlie
Expand Down

0 comments on commit 1292636

Please sign in to comment.