Skip to content

Commit 302cb7d

Browse files
committed
Move boilerplate from hooks/ to hack/
Hooks seems like they should be hooks. Not sure hack makes a lot more sense, but it has more stuff already.
1 parent 5aeebb4 commit 302cb7d

8 files changed

+4
-4
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

hack/build-ui.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function kube::hack::build_ui() {
4444
go-bindata -nocompress -o "${output_file}" -prefix ${PWD} -pkg "${pkg}" "${src}"
4545

4646
local year=$(date +%Y)
47-
cat hooks/boilerplate.go.txt | sed "s/YEAR/${year}/" > "${TMP_DATAFILE}"
47+
cat hack/boilerplate/boilerplate.go.txt | sed "s/YEAR/${year}/" > "${TMP_DATAFILE}"
4848
echo -e "// generated by hack/build-ui.sh; DO NOT EDIT\n" >> "${TMP_DATAFILE}"
4949
cat "${output_file}" >> "${TMP_DATAFILE}"
5050

hack/update-generated-conversions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function generate_version() {
2929

3030
echo "Generating for version ${version}"
3131

32-
sed 's/YEAR/2015/' hooks/boilerplate.go.txt > $TMPFILE
32+
sed 's/YEAR/2015/' hack/boilerplate/boilerplate.go.txt > $TMPFILE
3333
cat >> $TMPFILE <<EOF
3434
package ${version}
3535

hack/update-generated-deep-copies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function generate_version() {
3838

3939
echo "Generating for version ${version}"
4040

41-
sed 's/YEAR/2015/' hooks/boilerplate.go.txt > $TMPFILE
41+
sed 's/YEAR/2015/' hack/boilerplate/boilerplate.go.txt > $TMPFILE
4242
cat >> $TMPFILE <<EOF
4343
package ${version}
4444

hack/verify-boilerplate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -o nounset
1919
set -o pipefail
2020

2121
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
22-
boiler="${KUBE_ROOT}/hooks/boilerplate.py"
22+
boiler="${KUBE_ROOT}/hack/boilerplate/boilerplate.py"
2323

2424
cd ${KUBE_ROOT}
2525

0 commit comments

Comments
 (0)