OPNET-811: operator: source BGP VIP peers from the BGPVIPConfig CR #6686
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 508 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.373
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #6686"
general
weight: 0.35
mkowalski
Stacked on #6685 (the first commit; this PR is the second commit).
What
Under BGP-based VIP management the operator read the per-peer configuration from the Dev Preview
bgp-vip-configConfigMap. The Tech Preview surface is theBGPVIPConfigCRD (openshift/api#2972; in the payload since openshift/api#3127; the installer emits theclusterCR since openshift/installer#11026). This switches the operator to the CR and drops the ConfigMap path — there are no deployments on it.bgpvipconfigs(openshift/client-go has no typed clients for it) feedssyncBGPVIPPeersJSON, which serializes the CR intoControllerConfigSpec.BGPVIPPeersJSONexactly as the installer's ConfigMap producer did (only BFD/MultiHop written, as"true"; bare-seconds timers) — the peers file on the nodes is byte-identical across the switch, templates and baremetal-runtimecfg are untouched. The informer exists only when theBGPBasedVIPManagementgate is on (the CRD arrives with the gate); a cache miss before its first list falls back to a direct GET. A missing CR degrades and keeps the last good ControllerConfig, as the missing ConfigMap did.passwordSecretreferences are resolved fromopenshift-config: typekubernetes.io/basic-auth, non-emptypasswordkey ≤ 80 bytes (TCP MD5 limit); failures fail the render and never surface the Secret contents.--bgp-vip-config-file(default/assets/manifests/cluster-bgp-vip-02-config.yml), Secrets found by namespace/name among the YAML manifests in the same directory (no file-name coupling).Renderedcondition via SSA (field managermachine-config-operator), with the condition'sobservedGeneration(the API has no status-level one).Rendered=Trueonly after the ControllerConfig carrying the rendered peers was applied; render/apply failures reportRendered=False/RenderFailed.Testing
Rendered=False, password resolved, missing Secret degrades), bootstrap file path incl. Secret lookup by name among decoys, NodeDisruptionPolicy default + user override, resourcemerge day-2 merge.go test ./pkg/operator/ ./pkg/apihelpers/ ./lib/resourcemerge/ ./pkg/controller/template/...green; vendored golangci-lint clean./testwith openshift/installer/main/e2e-metal-ipi-bgp-vipincluding this PR (the lane'sbgp-vip-verifyasserts the sessions/VIPs that only exist if the peers file was rendered from the CR).Design validated live in August on a dual-stack cluster (byte-identical peers file vs the ConfigMap path, day-2 edit applied in ~45 s with zero disruption); this is that work adapted to the API as merged.
This PR description was generated using AI. Please verify before acting on it.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
BGP-based VIP configuration can be provided through a BGP VIP manifest, with peer passwords resolved from referenced Secrets in the same configuration directory.
The operator reports whether BGP VIP configuration rendered successfully and whether it was applied.
Bug Fixes
Changes to FRR peer configuration no longer trigger a node reboot by default.
Invalid or missing required BGP VIP configuration and invalid or missing password Secrets are reported as errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->