Skip to content

[backplane-5.0] [ACM-42853] Add missing webhook containerPort declaration - #2338

Merged
openshift-merge-bot[bot] merged 2 commits into
stolostron:backplane-5.0from
openshift-cherrypick-robot:cherry-pick-2337-to-backplane-5.0
Aug 27, 2026
Merged

openshift-merge-bot[bot] merged 2 commits into
stolostron:backplane-5.0from
openshift-cherrypick-robot:cherry-pick-2337-to-backplane-5.0

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #2337

/assign dislbenn

The discovery-operator's validating webhook was added without a
corresponding containerPort declaration in the deployment manifest.
This went unnoticed until a NetworkPolicy enforcing port-based ingress
rules was introduced, at which point the webhook became unreachable
and all DiscoveredCluster create/update operations began failing with
context deadline exceeded timeouts.

- Add containerPort: 9443 (name: webhook-server) to the
  discovery-operator container spec in config/manager/manager.yaml
- Regenerate bundle/manifests/discovery.clusterserviceversion.yaml via
  make manifests && make bundle to reflect the new port declaration

Signed-off-by: dislbenn <dbennett@redhat.com>
The discovery-operator-allow-webhook NetworkPolicy combined a
namespaceSelector (matching the special openshift-host-network virtual
namespace) with a podSelector: {} in the same 'from' entry.

Verified on a live OVN-Kubernetes cluster that this combination causes
ingress traffic from host-network pods (i.e. kube-apiserver, which
performs admission webhook calls for the DiscoveredCluster CRD) to be
silently dropped, even though the namespaceSelector alone matches
correctly. Removing the redundant podSelector restores connectivity.

Without this fix, DiscoveredCluster create/update/delete operations
fail with 'context deadline exceeded' calling the webhook, even when
containerPort: 9443 is correctly declared on the deployment.

Signed-off-by: dislbenn <dbennett@redhat.com>
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 0ffba276-d154-4fd0-b78f-12b0b8dd8640

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from dislbenn and ngraham20 August 27, 2026 16:40
@dislbenn

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Aug 27, 2026
@openshift-ci

openshift-ci Bot commented Aug 27, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dislbenn, openshift-cherrypick-robot

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 PR approval has been given label Aug 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@openshift-merge-bot
openshift-merge-bot Bot merged commit b95864b into stolostron:backplane-5.0 Aug 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved PR approval has been given dco-signoff: yes lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants