Skip to content
Open
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
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/openshift/hypershift-oadp-plugin

go 1.25.0

toolchain go1.25.8
go 1.25.8

require (
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0
Expand Down Expand Up @@ -92,4 +90,4 @@ require (
sigs.k8s.io/yaml v1.6.0 // indirect
)

replace github.com/vmware-tanzu/velero => github.com/openshift/velero v0.10.2-0.20250514165055-8fbcf3a8da11
replace github.com/vmware-tanzu/velero => github.com/openshift/velero v0.10.2-0.20260501155251-e8ffd8d87b42
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ github.com/openshift/hive/apis v0.0.0-20241220022629-3f49f26197ff h1:6C1z4xMAruy
github.com/openshift/hive/apis v0.0.0-20241220022629-3f49f26197ff/go.mod h1:1vBNCcWNpQyFCz83PWYT/lHUFJ9ost2t5FijHElh6gQ=
github.com/openshift/hypershift/api v0.0.0-20260318164553-2d4aedcf7899 h1:Da2btnE0P0Y1y0VX0YYKns3vu0yIxTCcU5bYY+gqcTM=
github.com/openshift/hypershift/api v0.0.0-20260318164553-2d4aedcf7899/go.mod h1:dN8V9JjUjvvJaF3SJFSkb5p2H3CkjwcFDMlABEkQyuU=
github.com/openshift/velero v0.10.2-0.20250514165055-8fbcf3a8da11 h1:/BjkW8HljIX96clCuv/V+PzShD3coVcNilCXd/Axlfo=
github.com/openshift/velero v0.10.2-0.20250514165055-8fbcf3a8da11/go.mod h1:+wInt9pLqlRiUZAWsO5eSxLZK9Q3jSV9MFaUrBfvGN0=
github.com/openshift/velero v0.10.2-0.20260501155251-e8ffd8d87b42 h1:pPH6ZdfNSRFHZKOWnYFK2zRF6PrBtUiKwZ42lg2nA+Q=
github.com/openshift/velero v0.10.2-0.20260501155251-e8ffd8d87b42/go.mod h1:KEpTfFgye9RJEXdq5BpYS2e07GEQiI/8IBKpnQp1X54=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down
2 changes: 1 addition & 1 deletion konflux.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.24 AS builder
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.25 AS builder

COPY . /workspace
WORKDIR /workspace/
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ var watchedDependencies = map[string]string{
}

func main() {
// Read the target upstream branch from environment variable, defaulting to "main"
// Read the target upstream branch from environment variable, defaulting to "release-4.21"
targetBranch := os.Getenv("DEPS_UPSTREAM_BRANCH")
if targetBranch == "" {
targetBranch = "main"
targetBranch = "release-4.21"
}

fmt.Printf("🔄 Updating watched dependencies to latest %s branch versions...\n", targetBranch)
Expand Down
22 changes: 11 additions & 11 deletions tests/integration/dependencies/dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ var watchedDependencies = []string{
}

// getTargetBranch returns the upstream branch to check dependencies against.
// It reads the DEPS_UPSTREAM_BRANCH environment variable, defaulting to "main".
// It reads the DEPS_UPSTREAM_BRANCH environment variable, defaulting to "release-4.21".
func getTargetBranch() string {
branch := os.Getenv("DEPS_UPSTREAM_BRANCH")
if branch == "" {
branch = "main"
branch = "release-4.21"
}
return branch
}

// TestWatchedDependenciesAreUpToDate validates that all watched dependencies
// are up-to-date with the latest versions available from the target upstream branch.
// The target branch is controlled by the DEPS_UPSTREAM_BRANCH environment variable (default: "main").
// The target branch is controlled by the DEPS_UPSTREAM_BRANCH environment variable (default: "release-4.21").
// This helps prevent scheme-related issues and compatibility problems.
func TestWatchedDependenciesAreUpToDate(t *testing.T) {
targetBranch := getTargetBranch()
Expand Down Expand Up @@ -61,28 +61,28 @@ func TestWatchedDependenciesAreUpToDate(t *testing.T) {

t.Logf("Latest available %s version: %s", module, latestVersion)

// Compare versions directly
// Compare versions - warn if outdated but do not fail the test
if currentVersion != latestVersion {
allDependenciesUpToDate = false

errorMsg := fmt.Sprintf("Dependency %s is not up-to-date with upstream %s branch.\n"+
warnMsg := fmt.Sprintf("WARNING: Dependency %s is not up-to-date with upstream %s branch.\n"+
"Current version: %s\n"+
"Latest available: %s\n"+
"Consider running: go get %s@%s && go mod tidy && go mod vendor",
module, targetBranch, currentVersion, latestVersion, module, targetBranch)
failureMessages = append(failureMessages, errorMsg)
t.Error(errorMsg)
failureMessages = append(failureMessages, warnMsg)
t.Log(warnMsg)
} else {
t.Logf("Dependency %s is up-to-date with upstream %s branch", module, targetBranch)
t.Logf("Dependency %s is up-to-date with upstream %s branch", module, targetBranch)
}
})
}

// If any dependency failed, fail the main test with a summary
// Log a summary warning if any dependency is outdated, but do not fail the test
if !allDependenciesUpToDate {
t.Errorf("One or more dependencies are not up-to-date:\n%s", strings.Join(failureMessages, "\n\n"))
t.Logf("WARNING: One or more dependencies are not up-to-date:\n%s", strings.Join(failureMessages, "\n\n"))
} else {
t.Logf("All %d watched dependencies are up-to-date", len(watchedDependencies))
t.Logf("All %d watched dependencies are up-to-date", len(watchedDependencies))
}
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading