Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix kubeadm bootstrap prefix in release notes #9814

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/tools/release/notes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var (
"clusterresourceset": "ClusterResourceSet",
"machinedeployment": "MachineDeployment",
"ipam": "IPAM",
"provider/bootstrap-kubeadm": "CAPBK",
"provider/bootstrap-kubeadm": "CABPK",
"provider/infrastructure-in-memory": "CAPIM",
"provider/core": "Core",
"runtime-sdk": "Runtime SDK",
Expand Down
11 changes: 7 additions & 4 deletions hack/tools/release/notes/release_notes_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func TestReleaseNotesIntegration(t *testing.T) {
name string
previousRelease string
releaseBranchForTest string
head string
expected string
}{
{
Expand All @@ -44,6 +45,7 @@ func TestReleaseNotesIntegration(t *testing.T) {
name: "new patch",
previousRelease: "v1.3.9",
releaseBranchForTest: "release-1.3",
head: "release-1.3",
expected: "test/golden/v1.3.10.md",
},
{
Expand All @@ -55,13 +57,14 @@ func TestReleaseNotesIntegration(t *testing.T) {
// it represents accurately the HEAD of release-1.5 when we released v1.5.0.
name: "new minor",
previousRelease: "v1.4.0",
releaseBranchForTest: "v1.5.0",
releaseBranchForTest: "v1.5.0-integration-test",
head: "v1.5.0",
expected: "test/golden/v1.5.0.md",
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
setupNotesTest(t, tc.previousRelease, tc.releaseBranchForTest)
setupNotesTest(t, tc.previousRelease, tc.releaseBranchForTest, tc.head)
g := NewWithT(t)

expectedOutput, err := os.ReadFile(tc.expected)
Expand Down Expand Up @@ -104,7 +107,7 @@ func runReleaseNotesCmd() error {
return nil
}

func setupNotesTest(tb testing.TB, previousRelease, releaseBranchForTest string) {
func setupNotesTest(tb testing.TB, previousRelease, releaseBranchForTest, head string) {
g := NewWithT(tb)

_, err := os.Stat(releaseBranchForTest)
Expand All @@ -114,7 +117,7 @@ func setupNotesTest(tb testing.TB, previousRelease, releaseBranchForTest string)
g.Expect(err).To(Succeed())
}

pull := exec.Command("git", "pull", "upstream", releaseBranchForTest)
pull := exec.Command("git", "checkout", head)
pull.Dir = releaseBranchForTest
runCommand(tb, pull)

Expand Down
10 changes: 5 additions & 5 deletions hack/tools/release/notes/test/golden/v1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ REPLACE ME: A couple sentences describing the deprecation, including links to do
- Dependency: Bump to CR v0.15.0 (#8007)

## :sparkles: New Features
- CAPBK: Use caching read for bootstrap config owner (#8867)
- CABPK: Use caching read for bootstrap config owner (#8867)
- CAPIM: Enable Kubernetes upgrades in CAPIM (#8938)
- ClusterClass: Add support or concurrent MD upgrades in classy clusters (#8432)
- ClusterClass: Add webhook warning for missing ClusterClass (#8746)
Expand All @@ -52,8 +52,8 @@ REPLACE ME: A couple sentences describing the deprecation, including links to do
## :bug: Bug Fixes
- API: All: only set finalizers if deletionTimestamp is not set (#8949)
- API: Ensure ownerReference apiVersions are always up to date (#8256)
- CAPBK: Ignition: start kubeadm after network.target (#8772)
- CAPBK: Set uninitialized taint only on worker nodes (#8358)
- CABPK: Ignition: start kubeadm after network.target (#8772)
- CABPK: Set uninitialized taint only on worker nodes (#8358)
- CAPD: Add kind mapper (#8880)
- CAPD: Change the haproxy entrypoint to prevent getting stopped immediately after start (#8685)
- CAPD: Delegate CAPD port selection to the container runtime (#8642)
Expand Down Expand Up @@ -120,7 +120,7 @@ REPLACE ME: A couple sentences describing the deprecation, including links to do

## :seedling: Others
- API: Deprecate v1alpha3 and v1alpha4 in CRDs (#8687)
- CAPBK: Replace reflect deepequal in bootstrap kubeadm (#8266)
- CABPK: Replace reflect deepequal in bootstrap kubeadm (#8266)
- CAPD: Automatically set kubelet args for capd (#8881)
- CAPD: Only ignore necessary kubeadm preflight errors (#7911)
- CAPIM: Add ClusterClass support for in-memory provider (#8807)
Expand Down Expand Up @@ -271,7 +271,7 @@ REPLACE ME: A couple sentences describing the deprecation, including links to do
- MachineDeployment: Drop the first return value from FindOldMachineSets (#8415)
- MachineSet: Add MachineFinalizer during machine computation (#8463)
- MachineSet: Surface failed preflight checks on MachineSet in `MachinesCreated` condition (#8669)
- MULTIPLE_AREAS[ClusterCacheTracker/KCP/CAPBK]: Cache secrets in KCP, CABPK and ClusterCacheTracker (#8940)
- MULTIPLE_AREAS[ClusterCacheTracker/KCP/CABPK]: Cache secrets in KCP, CABPK and ClusterCacheTracker (#8940)
- Release: Add area label lookup for prefixes to release notes tool (#8780)
- Release: Add runtime extension components to release (#8438)
- Release: Bump kpromo to v3.5.1 (#8301)
Expand Down
Loading