mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-13 20:30:03 +00:00
Implicitly generate the worker ConfigMap name
Signed-off-by: Elias Koromilas <elias.koromilas@gmail.com>
This commit is contained in:
parent
347b16daea
commit
e22b937391
4 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Values.worker.configmapName }}
|
||||
name: {{ include "node-feature-discovery.fullname" . }}-worker-conf
|
||||
labels:
|
||||
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
||||
data:
|
||||
|
|
|
@ -109,7 +109,7 @@ spec:
|
|||
path: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||
- name: nfd-worker-conf
|
||||
configMap:
|
||||
name: {{ .Values.worker.configmapName }}
|
||||
name: {{ include "node-feature-discovery.fullname" . }}-worker-conf
|
||||
items:
|
||||
- key: nfd-worker.conf
|
||||
path: nfd-worker.conf
|
||||
|
|
|
@ -83,7 +83,6 @@ master:
|
|||
values: [""]
|
||||
|
||||
worker:
|
||||
configmapName: nfd-worker-conf
|
||||
config: ### <NFD-WORKER-CONF-START-DO-NOT-REMOVE>
|
||||
#core:
|
||||
# labelWhiteList:
|
||||
|
|
|
@ -314,7 +314,6 @@ We have introduced the following Chart parameters.
|
|||
| Name | Type | Default | description |
|
||||
| ---- | ---- | ------- | ----------- |
|
||||
| `worker.*` | dict | | NFD worker daemonset configuration |
|
||||
| `worker.configmapName` | string | `nfd-worker-conf` | NFD worker pod ConfigMap name |
|
||||
| `worker.config` | dict | | NFD worker [configuration](../advanced/worker-configuration-reference.md) |
|
||||
| `worker.podSecurityContext` | dict | {} | SecurityContext holds pod-level security attributes and common container settings |
|
||||
| `worker.securityContext` | dict | {} | Container [security settings](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) |
|
||||
|
@ -464,12 +463,16 @@ preferred method is to use a ConfigMap which provides easy deployment and
|
|||
re-configurability.
|
||||
|
||||
The provided nfd-worker deployment templates create an empty configmap and
|
||||
mount it inside the nfd-worker containers. Configuration can be edited with:
|
||||
mount it inside the nfd-worker containers. In kustomize deployments,
|
||||
configuration can be edited with:
|
||||
|
||||
```bash
|
||||
kubectl -n ${NFD_NS} edit configmap nfd-worker-conf
|
||||
```
|
||||
|
||||
In Helm deployments, [Worker pod parameter](#worker-pod-parameters)
|
||||
`worker.config` can be used to edit the respective configuration.
|
||||
|
||||
See
|
||||
[nfd-worker configuration file reference](../advanced/worker-configuration-reference.md)
|
||||
for more details.
|
||||
|
|
Loading…
Add table
Reference in a new issue