Skip to content

Commit

Permalink
Allow override of validator image nitro (#5)
Browse files Browse the repository at this point in the history
* Allow override of validator image nitro

* tag metadata

* Update README and values.schema.json for modified charts

---------

Co-authored-by: a-thomas-22 <[email protected]>
a-thomas-22 and a-thomas-22 authored Jan 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b7ce532 commit 9f7cafe
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nitro/Chart.yaml
Original file line number Diff line number Diff line change
@@ -7,6 +7,6 @@ maintainers:

type: application

version: 0.1.12
version: 0.1.13

appVersion: "v2.2.2-8f33fea"
2 changes: 2 additions & 0 deletions charts/nitro/README.md
Original file line number Diff line number Diff line change
@@ -72,6 +72,8 @@

| Name | Description | Value |
| ---------------------------------------------------------- | -------------------------------------------------------- | -------------------- |
| `validator.image.repository` | Docker image repository | `""` |
| `validator.image.tag` | Docker image tag | `""` |
| `validator.enabled` | Enable the stateless validator | `false` |
| `validator.configmap.data.auth.addr` | Address to bind auth service to | `0.0.0.0` |
| `validator.configmap.data.auth.port` | Port to bind auth service to | `8549` |
4 changes: 2 additions & 2 deletions charts/nitro/templates/validator/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ spec:
{{- end }}
containers:
- name: validator
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.validator.image.repository | default .Values.image.repository }}:{{ .Values.validator.image.tag | default .Values.image.tag | default .Chart.AppVersion }}"
command: ["/usr/local/bin/nitro-val"]
args:
- --conf.env-prefix=NITRO
@@ -154,4 +154,4 @@ spec:
{{- if .Values.validator.statefulset.extraVolumes}}
{{- toYaml .Values.validator.statefulset.extraVolumes | nindent 6 }}
{{- end }}
{{- end }}
{{- end }}
15 changes: 15 additions & 0 deletions charts/nitro/values.schema.json
Original file line number Diff line number Diff line change
@@ -441,6 +441,21 @@
"validator": {
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"description": "Docker image repository",
"default": ""
},
"tag": {
"type": "string",
"description": "Docker image tag",
"default": ""
}
}
},
"enabled": {
"type": "boolean",
"description": "Enable the stateless validator",
5 changes: 5 additions & 0 deletions charts/nitro/values.yaml
Original file line number Diff line number Diff line change
@@ -179,6 +179,11 @@ configmap:
## @section Stateless Validator

validator:
image:
## @param validator.image.repository Docker image repository
repository: ""
## @param validator.image.tag Docker image tag
tag: ""
## @param validator.enabled Enable the stateless validator
enabled: false
configmap:

0 comments on commit 9f7cafe

Please sign in to comment.