Commit 8fb72a3
committed
Use YEAR in
The YEAR string in the boilerplate header file will be replaced by
controller-gen[^1] and kubebuilder[^2].
This change also requires to define a YEAR variable in the Makefile
(holding the current year) which is passed as year=$(YEAR) to the
controller-gen crd generation. The applyconfiguration generator of
controller-gen handles this substitution automatically by using
kubernetes/gengo[^3] and does not need the explicit parameter.
[^1]: kubernetes-sigs/controller-tools@54a2e9f
[^2]: kubernetes-sigs/kubebuilder@890b118
[^3]: https://github.com/kubernetes/gengo/blob/5ee0d033ba5bcb073f0e69c32057520b82d75ccb/v2/execute.go#L59hack/boilerplate.go.txt as a literal for the current year1 parent 815502c commit 8fb72a3
4 files changed
Lines changed: 6 additions & 4 deletions
File tree
- api
- cisco/nx/v1alpha1
- core/v1alpha1
- hack
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
266 | | - | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
| 347 | + | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
0 commit comments