Skip to content

Commit 4c246ee

Browse files
committed
NO-JIRA: chore: versions: kubeRbacProxy's primary branch isn't main yet
1 parent 4e74c9d commit 4c246ee

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

hack/go/generate_versions.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,15 @@ func updateVersionFile(fileP string, components Components) error {
8383
sort.Strings(keys)
8484

8585
for _, component := range keys {
86-
knownVersion, _ := components.Versions[component]
87-
newVersion, err := getVersion(components.Repos[component], mainBranch)
86+
knownVersion := components.Versions[component]
87+
88+
// TODO: simplify once kubeRbacProxy's primary branch is main
89+
branch := mainBranch
90+
if component == "kubeRbacProxy" {
91+
branch = "master"
92+
}
93+
94+
newVersion, err := getVersion(components.Repos[component], branch)
8895
if err != nil {
8996
log.Fatalf("couldn't fetch the new version for %s: %v", component, err)
9097
}

0 commit comments

Comments
 (0)