Skip to content

Commit

Permalink
Fix NPD script
Browse files Browse the repository at this point in the history
  • Loading branch information
pkprzekwas committed Jun 1, 2023
1 parent 1442ae2 commit 406c547
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
command:
- /node-problem-detector
- --logtostderr
- --config.system-log-monitor=/config/kernel-monitor.json,/config/docker-monitor.json
- --config.system-log-monitor=/config/kernel-monitor.json,/config/containerd-monitor.json
image: registry.k8s.io/node-problem-detector/node-problem-detector:v0.8.7
resources:
limits:
Expand Down Expand Up @@ -92,8 +92,8 @@ spec:
items:
- key: kernel-monitor.json
path: kernel-monitor.json
- key: docker-monitor.json
path: docker-monitor.json
- key: containerd-monitor.json
path: containerd-monitor.json
tolerations:
- effect: NoSchedule
operator: Exists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ for f in "${files[@]}"; do
done

function boilerplate() {
cat ${dir}/../../../../../../../hack/boilerplate/boilerplate.sh.txt | sed -e "s/\<YEAR\>/$(date +'%Y')/"
cat ${dir}/../../../../../../hack/boilerplate/boilerplate.sh.txt | sed -e "s/\<YEAR\>/$(date +'%Y')/"
}

for f in "${files[@]}"; do
cat <(boilerplate) "$f" > tmp.yaml
mv tmp.yaml "$f"
cat <(boilerplate) "${dir}/${f}" > tmp.yaml
mv tmp.yaml "${dir}/${f}"
done

0 comments on commit 406c547

Please sign in to comment.