mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
Add a virtually empty ConfigMap that is mounted inside the workers. Makes it easier to start customizing the worker deployment e.g. with just: $ kubectl -n ${NFD_NS} edit configmap nfd-worker-conf Create a new 'templates' make target for inserting the content of nfd-worker.conf.example into the configmap spec of the templates. Thus, 'make templates' should be run whenever the example config is update. Update the verify.sh prow script to check that the templates are up to date. This patch also streamlines the documentation about configuration management, reflecting the changes.
22 lines
529 B
Bash
Executable file
22 lines
529 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# Install deps
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.30.0
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
|
|
# Run verify steps
|
|
make gofmt-verify
|
|
make ci-lint
|
|
|
|
# Check that repo is clean
|
|
if ! git diff --quiet; then
|
|
echo "Repository is dirty!"
|
|
exit 1
|
|
fi
|
|
|
|
# Check that templates are up-to-date
|
|
make templates
|
|
if ! git diff --quiet; then
|
|
echo "Deployment templates are not up-to-date. Run 'make templates' to update"
|
|
exit 1
|
|
fi
|