diff --git a/hack/tools/release/notes.go b/hack/tools/release/notes.go index 478571212365..4c5926cc0f70 100644 --- a/hack/tools/release/notes.go +++ b/hack/tools/release/notes.go @@ -73,6 +73,8 @@ var ( prefixAreaLabel = flag.Bool("prefix-area-label", true, "If enabled, will prefix the area label.") + releaseCandidate = flag.Bool("release-candidate", false, "If enabled, will add a release candidate warning header. (default false)") + deprecation = flag.Bool("deprecation", true, "If enabled, will add a templated deprecation warning header. (default false)") addKubernetesVersionSupport = flag.Bool("add-kubernetes-version-support", true, "If enabled, will add the Kubernetes version support header.") tagRegex = regexp.MustCompile(`^\[release-[\w-\.]*\]`) @@ -307,8 +309,11 @@ func run() int { } } + if *releaseCandidate { + fmt.Printf("🚨 This is a RELEASE CANDIDATE. Use it only for testing purposes. If you find any bugs, file an [issue](https://github.com/kubernetes-sigs/cluster-api/issues/new).\n") + } + if *addKubernetesVersionSupport { - // TODO Turn this into a link (requires knowing the project name + organization) fmt.Print(`## 👌 Kubernetes version support - Management Cluster: v1.**X**.x -> v1.**X**.x @@ -316,6 +321,22 @@ func run() int { [More information about version support can be found here](https://cluster-api.sigs.k8s.io/reference/versions.html) +`) + } + + fmt.Print(`## Highlights + +* REPLACE ME + +`) + + if *deprecation { + fmt.Print(`## Deprecation Warning + +REPLACE ME: A couple sentences describing the deprecation, including links to docs. + +* [GitHub issue #REPLACE ME](REPLACE ME) + `) }