Skip to content

Pass the OCM connection to GetTrustedIPs.#678

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
bergmannf:singleton-ocm-connection
May 16, 2025
Merged

Pass the OCM connection to GetTrustedIPs.#678
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
bergmannf:singleton-ocm-connection

Conversation

@bergmannf
Copy link
Contributor

This is inline with other methods taking it as an argument, and prevents breaking CAD that is building it's own OCM connection.

What type of PR is this?

  • Bug
  • Feature
  • Documentation
  • Test Coverage
  • Clean Up
  • Others

What this PR does / Why we need it?

CAD as a client build it's own OCM connection that is passed in and must be used - creating a new OCM connection breaks access to OCM.

Which Jira/Github issue(s) does this PR fix?

  • Related Issue #
  • Closes #

Special notes for your reviewer

Unit Test Coverage

Guidelines

  • If it's a new sub-command or new function to an existing sub-command, please cover at least 50% of the code
  • If it's a bug fix for an existing sub-command, please cover 70% of the code

Test coverage checks

  • Added unit tests
  • Created jira card to add unit test
  • This PR may not need unit tests

Pre-checks (if applicable)

  • Ran unit tests locally
  • Validated the changes in a cluster
  • Included documentation changes with PR

@openshift-ci openshift-ci bot requested review from hectorakemp and smarthall May 16, 2025 07:48
@bergmannf bergmannf force-pushed the singleton-ocm-connection branch from 0bee118 to 8d8ca1a Compare May 16, 2025 08:02
@Nikokolas3270
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 16, 2025
This is inline with other methods taking it as an argument, and prevents
breaking CAD that is building it's own OCM connection.
@bergmannf bergmannf force-pushed the singleton-ocm-connection branch from 8d8ca1a to d1e607a Compare May 16, 2025 08:26
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 16, 2025
@Nikokolas3270
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 16, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 16, 2025

@bergmannf: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 50.95%. Comparing base (ea337a6) to head (d1e607a).

Files with missing lines Patch % Lines
pkg/ocm/ocm.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #678      +/-   ##
==========================================
+ Coverage   50.92%   50.95%   +0.03%     
==========================================
  Files          76       76              
  Lines        5760     5756       -4     
==========================================
  Hits         2933     2933              
+ Misses       2424     2420       -4     
  Partials      403      403              
Files with missing lines Coverage Δ
cmd/ocm-backplane/cloud/common.go 43.93% <100.00%> (ø)
pkg/ocm/ocm.go 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@typeid
Copy link
Member

typeid commented May 16, 2025

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bergmannf, Nikokolas3270, typeid

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 16, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 32e363c into openshift:main May 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants