Skip to content

Conversation

@xuezhaojun
Copy link
Member

Summary

This PR updates all project dependencies to their latest stable versions:

  • github.com/stolostron/cluster-lifecycle-api: Updated to latest main branch
  • open-cluster-management.io/addon-framework: v0.12.0 → v1.1.1
  • open-cluster-management.io/api: v0.16.0 → v1.1.0
  • open-cluster-management.io/sdk-go: v0.16.0 → v1.1.0
  • github.com/openshift/library-go: Updated to latest compatible version

Changes Required

The dependency updates introduced breaking API changes that required code fixes:

  1. CSRConfigurationsFunc signature change: Now requires ManagedClusterAddOn parameter and returns error

  2. CSRSignerFunc signature change: Now requires cluster and addon parameters and returns error

  3. NewInMemoryRecorder signature change: Now requires PassiveClock parameter

Test Plan

  • ✅ All unit tests pass (make test)
  • ✅ Build succeeds (make build)
  • ✅ Code formatting and linting pass (make verify)
  • ✅ Vendor directory updated and consistent

🤖 Generated with Claude Code

- Update github.com/stolostron/cluster-lifecycle-api to latest main branch (v0.0.0-20251028083736-64a17b44b598)
- Update open-cluster-management.io/addon-framework to v1.1.1 (latest stable)
- Update open-cluster-management.io/api to v1.1.0 (latest stable)
- Update open-cluster-management.io/sdk-go to v1.1.0 (latest stable)
- Update github.com/openshift/library-go to v0.0.0-20250711143941-47604345e7ea

These dependency updates introduced API changes that required code updates:

1. CSRConfigurationsFunc signature now requires ManagedClusterAddOn parameter and returns error
   - Updated pkg/proxyagent/agent/agent.go (line 95)
   - Updated test in pkg/proxyagent/agent/agent_test.go (line 422)

2. CSRSignerFunc signature now requires cluster and addon parameters and returns error
   - Updated CustomSignerWithExpiry function in pkg/proxyagent/agent/agent.go (line 363)
   - Updated test in pkg/proxyagent/agent/agent_test.go (line 441)

3. NewInMemoryRecorder now requires PassiveClock parameter
   - Updated pkg/proxyserver/controllers/managedproxyconfiguration_controller.go (line 73)
   - Added k8s.io/utils/clock import

All tests pass and the build succeeds.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: xuezhaojun <[email protected]>
@openshift-ci
Copy link

openshift-ci bot commented Nov 18, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xuezhaojun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Nov 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 13.84%. Comparing base (03b5176) to head (021b2ab).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #247   +/-   ##
=======================================
  Coverage   13.84%   13.84%           
=======================================
  Files          39       39           
  Lines        2254     2254           
=======================================
  Hits          312      312           
  Misses       1913     1913           
  Partials       29       29           
Flag Coverage Δ
unit 13.84% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xuezhaojun xuezhaojun merged commit 30c62d2 into open-cluster-management-io:main Nov 18, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant