Skip to content

Commit

Permalink
helm: allow overriding default config group label.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Jan 12, 2024
1 parent 7d8cd81 commit 20d0eb2
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployment/helm/balloons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ customize with their own values, along with the default values.
| `resources.memory` | 512Mi | memory qouta for the Pod |
| `hostPort` | 8891 | metrics port to expose on the host |
| `config` | see [helm chart values](tree:/deployment/helm/balloons/values.yaml) for the default configuration | plugin configuration data |
| `configGroupLabel` | config.nri/group | node label for grouping configuration |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.pluginIndex` | 90 | NRI plugin index to register with |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/balloons/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ spec:
- 5s
- --nri-plugin-index
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
{{- if .Values.configGroupLabel }}
- --config-group-label
- {{ .Values.configGroupLabel }}
{{- end }}
ports:
- containerPort: 8891
protocol: TCP
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/balloons/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
}
}
},
"configGroupLabel": {
"type": "string"
},
"resources": {
"type": "object",
"required": [
Expand Down
2 changes: 2 additions & 0 deletions deployment/helm/balloons/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ config:
reportPeriod: 60s
samplingRatePerMillion: 0

# configGroupLabel: config.nri/group

plugin-test:
enableAPIs: false

Expand Down
1 change: 1 addition & 0 deletions deployment/helm/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ customize with their own values, along with the default values.
| `resources.memory` | 512Mi | memory qouta for the Pod |
| `hostPort` | 8891 | metrics port to expose on the host |
| `config` | see [helm chart values](tree:/deployment/helm/template/values.yaml) for the default configuration | plugin configuration data |
| `configGroupLabel` | config.nri/group | node label for grouping configuration |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.pluginIndex` | 90 | NRI plugin index to register with |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/template/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
- 5s
- --nri-plugin-index
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
{{- if .Values.configGroupLabel }}
- --config-group-label
- {{ .Values.configGroupLabel }}
{{- end }}
ports:
- containerPort: 8891
protocol: TCP
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/template/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
}
}
},
"configGroupLabel": {
"type": "string"
},
"resources": {
"type": "object",
"required": [
Expand Down
2 changes: 2 additions & 0 deletions deployment/helm/template/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ config:
reportPeriod: 60s
samplingRatePerMillion: 0

# configGroupLabel: config.nri/group

plugin-test:
enableAPIs: false

Expand Down
1 change: 1 addition & 0 deletions deployment/helm/topology-aware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ customize with their own values, along with the default values.
| `resources.memory` | 512Mi | memory qouta for the Pod |
| `hostPort` | 8891 | metrics port to expose on the host |
| `config` | see [helm chart values](tree:/deployment/helm/topology-aware/values.yaml) for the default configuration | plugin configuration data |
| `configGroupLabel` | config.nri/group | node label for grouping configuration |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.pluginIndex` | 90 | NRI plugin index to register with |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/topology-aware/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ spec:
- 5s
- --nri-plugin-index
- "{{ printf "%02d" .Values.nri.pluginIndex }}"
{{- if .Values.configGroupLabel }}
- --config-group-label
- {{ .Values.configGroupLabel }}
{{- end }}
ports:
- containerPort: 8891
protocol: TCP
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/topology-aware/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
}
}
},
"configGroupLabel": {
"type": "string"
},
"resources": {
"type": "object",
"required": [
Expand Down
2 changes: 2 additions & 0 deletions deployment/helm/topology-aware/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ config:
reportPeriod: 60s
samplingRatePerMillion: 0

# configGroupLabel: config.nri/group

plugin-test:
enableAPIs: false

Expand Down

0 comments on commit 20d0eb2

Please sign in to comment.