Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Allow ingress to the discovery-operator webhook server (port 9443).
# Webhook calls originate from the API server which runs on the host network,
# so we use the special host-network namespace selector.
# Webhook calls originate from kube-apiserver, which validates the
# DiscoveredCluster CRD and runs on the host network, so we use the
# special host-network namespace selector.
#
# IMPORTANT: do not combine this namespaceSelector with a podSelector in
# the same "from" entry (even an empty podSelector: {}). OVN-Kubernetes
# does not correctly match host-network-sourced traffic against the
# special "openshift-host-network" virtual namespace when a podSelector
# is present alongside the namespaceSelector, causing all webhook calls
# from kube-apiserver to silently time out.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Expand All @@ -14,7 +22,6 @@ spec:
- namespaceSelector:
matchLabels:
policy-group.network.openshift.io/host-network: ""
podSelector: {}
ports:
- protocol: TCP
port: 9443
Expand Down
4 changes: 3 additions & 1 deletion bundle/manifests/discovery.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ metadata:
]
capabilities: Seamless Upgrades
categories: Integration & Delivery
createdAt: "2026-04-30T13:23:41Z"
createdAt: "2026-08-27T16:15:45Z"
description: This operator discovers OpenShift Conatiner Platform clusters which
are not yet under management by Open Cluster Management.
operatorframework.io/suggested-namespace: open-cluster-management
Expand Down Expand Up @@ -241,6 +241,8 @@ spec:
ports:
- containerPort: 8080
name: metrics
- containerPort: 9443
name: webhook-server
readinessProbe:
httpGet:
path: /readyz
Expand Down
2 changes: 2 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
ports:
- containerPort: 8080
name: metrics
- containerPort: 9443
name: webhook-server
resources:
requests:
cpu: 100m
Expand Down
Loading