Skip to content

Commit b76bd03

Browse files
committed
fix(charts): update values.yaml to include app-slug labels
- Added kots.io/app-slug label to values.yaml for network and network-bootstrapper charts. - Ensured consistency across subcharts by merging common labels with global labels. - Updated comments for clarity and compatibility with helm-docs format.
1 parent c2cf400 commit b76bd03

9 files changed

Lines changed: 67 additions & 5 deletions

File tree

charts/network/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A Helm chart for a blockchain network on Kubernetes
2121

2222
| Key | Type | Default | Description |
2323
|-----|------|---------|-------------|
24-
| global | object | `{"chainId":null,"networkNodes":{"faucetArtifactPrefix":"besu-faucet","genesisConfigMapName":"besu-genesis","podPrefix":"","serviceName":"","staticNodesConfigMapName":"besu-static-nodes"},"securityContexts":{"container":{},"pod":{}}}` | Global configuration shared across subcharts. |
24+
| global | object | `{"chainId":null,"labels":{"kots.io/app-slug":"settlemint-atk"},"networkNodes":{"faucetArtifactPrefix":"besu-faucet","genesisConfigMapName":"besu-genesis","podPrefix":"","serviceName":"","staticNodesConfigMapName":"besu-static-nodes"},"securityContexts":{"container":{},"pod":{}}}` | Global configuration shared across subcharts. |
2525
| global.chainId | int | `nil` | Chain ID applied when charts omit explicit overrides. |
2626
| global.networkNodes | object | `{"faucetArtifactPrefix":"besu-faucet","genesisConfigMapName":"besu-genesis","podPrefix":"","serviceName":"","staticNodesConfigMapName":"besu-static-nodes"}` | Defaults consumed by Besu network node workloads. |
2727
| global.networkNodes.faucetArtifactPrefix | string | `"besu-faucet"` | Prefix used for faucet ConfigMaps and Secrets. |

charts/network/charts/network-bootstrapper/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,19 @@ A Helm chart for Kubernetes
2121
| artifacts.external.genesis | object | `{}` | Besu genesis document rendered into the `besu-genesis` ConfigMap when `source` equals `external`. |
2222
| artifacts.external.staticNodes | list | `[]` | Collection of enode URIs persisted to the `besu-static-nodes` ConfigMap when `source` equals `external`. |
2323
| artifacts.external.validators | list | `[]` | Validator node definitions providing the data expected by the nodes chart. Each entry must include `address`, `publicKey`, `privateKey`, and `enode`. |
24+
| artifacts.image.pullPolicy | string | `"IfNotPresent"` | |
25+
| artifacts.image.registry | string | `"ghcr.io"` | |
26+
| artifacts.image.repository | string | `nil` | |
27+
| artifacts.image.tag | string | `""` | |
2428
| artifacts.source | string | `"generated"` | Determines how Besu network artifacts are populated. Use `generated` to run the job or `external` to supply values manually. |
2529
| extraInitContainers | list | `[]` | Additional init containers appended verbatim to the job pod spec. |
2630
| fullnameOverride | string | `"bootstrapper"` | Override for the fully qualified resource name generated by helpers. |
31+
| global.artifacts.image.pullPolicy | string | `nil` | |
32+
| global.artifacts.image.registry | string | `nil` | |
33+
| global.artifacts.image.repository | string | `nil` | |
34+
| global.artifacts.image.tag | string | `nil` | |
2735
| global.chainId | int | `nil` | Chain ID applied when `settings.chainId` is unset. |
36+
| global.labels."kots.io/app-slug" | string | `"settlemint-atk"` | |
2837
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy controlling when Kubernetes fetches updated image layers. |
2938
| image.repository | string | `"ghcr.io/settlemint/network-bootstrapper"` | OCI registry path hosting the network bootstrapper image. |
3039
| image.tag | string | `""` | Image tag override; leave empty to inherit the chart appVersion. |

charts/network/charts/network-bootstrapper/templates/_helpers.tpl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,19 @@ Create chart name and version as used by the chart label.
3131
{{- end }}
3232

3333
{{/*
34-
Common labels
34+
Common labels merged with any entries provided via global.labels.
3535
*/}}
3636
{{- define "network-bootstrapper.labels" -}}
37+
{{- $root := . -}}
38+
{{- $global := default (dict) (get .Values "global") -}}
39+
{{- $globalLabels := default (dict) (get $global "labels") -}}
40+
{{- range $key, $value := $globalLabels }}
41+
{{- if kindIs "string" $value }}
42+
{{ $key }}: {{ tpl $value $root | quote }}
43+
{{- else }}
44+
{{ $key }}: {{ printf "%v" $value | quote }}
45+
{{- end }}
46+
{{- end }}
3747
helm.sh/chart: {{ include "network-bootstrapper.chart" . }}
3848
{{ include "network-bootstrapper.selectorLabels" . }}
3949
{{- if .Chart.AppVersion }}

charts/network/charts/network-bootstrapper/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
global:
44
# -- (int) Chain ID applied when `settings.chainId` is unset.
55
chainId:
6+
labels:
7+
kots.io/app-slug: settlemint-atk
8+
artifacts:
9+
# Image containing contract ABIs and genesis files
10+
image:
11+
registry:
12+
repository:
13+
pullPolicy:
14+
tag:
615

716
image:
817
# -- (string) OCI registry path hosting the network bootstrapper image.
@@ -12,6 +21,14 @@ image:
1221
# -- (string) Image tag override; leave empty to inherit the chart appVersion.
1322
tag: ""
1423

24+
artifacts:
25+
# Image containing contract ABIs and genesis files
26+
image:
27+
registry: ghcr.io
28+
repository:
29+
pullPolicy: IfNotPresent
30+
tag: ""
31+
1532
# -- (list) Image pull secrets enabling access to private registries.
1633
imagePullSecrets: []
1734

charts/network/charts/network-nodes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ A Helm chart for Kubernetes
6262
| config.ws.maxFrameSize | int | `2097152` | Maximum WebSocket frame size in bytes. |
6363
| extraInitContainers | list | `[]` | Additional init containers appended verbatim to both StatefulSets. |
6464
| fullnameOverride | string | `"besu-node"` | Override for the fully qualified release name used in resource naming. |
65+
| global.labels."kots.io/app-slug" | string | `"settlemint-atk"` | |
6566
| httpRoute.annotations | object | `{}` | |
6667
| httpRoute.enabled | bool | `false` | Enable rendering of an HTTPRoute resource. |
6768
| httpRoute.hostnames | list | `["chart-example.local"]` | HTTP hostnames matched by the route. |

charts/network/charts/network-nodes/templates/_helpers.tpl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,19 @@ Create chart name and version as used by the chart label.
3232
{{- end }}
3333

3434
{{/*
35-
Common labels
35+
Common labels merged with any entries provided via global.labels.
3636
*/}}
3737
{{- define "nodes.labels" -}}
38+
{{- $root := . -}}
39+
{{- $global := default (dict) (get .Values "global") -}}
40+
{{- $globalLabels := default (dict) (get $global "labels") -}}
41+
{{- range $key, $value := $globalLabels }}
42+
{{- if kindIs "string" $value }}
43+
{{ $key }}: {{ tpl $value $root | quote }}
44+
{{- else }}
45+
{{ $key }}: {{ printf "%v" $value | quote }}
46+
{{- end }}
47+
{{- end }}
3848
helm.sh/chart: {{ include "nodes.chart" . }}
3949
{{ include "nodes.selectorLabels" . }}
4050
{{- if .Chart.AppVersion }}

charts/network/charts/network-nodes/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Default configuration values for the network-nodes subchart. All keys include helm-docs compatible annotations.
22

3+
global:
4+
labels:
5+
kots.io/app-slug: settlemint-atk
6+
37
# -- (int) Number of RPC node replicas provisioned via StatefulSet.
48
rpcReplicaCount: 2
59

charts/network/templates/_helpers.tpl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,19 @@ Create chart name and version as used by the chart label.
3131
{{- end }}
3232

3333
{{/*
34-
Common labels
34+
Common labels merged with any entries provided via global.labels.
3535
*/}}
3636
{{- define "network.labels" -}}
37+
{{- $root := . -}}
38+
{{- $global := default (dict) (get .Values "global") -}}
39+
{{- $globalLabels := default (dict) (get $global "labels") -}}
40+
{{- range $key, $value := $globalLabels }}
41+
{{- if kindIs "string" $value }}
42+
{{ $key }}: {{ tpl $value $root | quote }}
43+
{{- else }}
44+
{{ $key }}: {{ printf "%v" $value | quote }}
45+
{{- end }}
46+
{{- end }}
3747
helm.sh/chart: {{ include "network.chart" . }}
3848
{{ include "network.selectorLabels" . }}
3949
{{- if .Chart.AppVersion }}

charts/network/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ global:
2222
pod: {}
2323
# -- (object) Container security context inherited by subcharts when set.
2424
container: {}
25-
25+
labels:
26+
kots.io/app-slug: settlemint-atk

0 commit comments

Comments
 (0)