OCPNODE-4040: Use single KubeletConfigAccepted condition type with True/False status #5854
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 329 lines diff across 4 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.347
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #5854"
general
weight: 0.35
aksjadha
Replace separate Success/Failure condition types with a unified
Acceptedtype that uses Status=True for success and Status=False for failure, following standard Kubernetes condition conventions.<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
"Closes: #xxxx"
Please provide the following information:
-->
- What I did
status.Condition.TypefromSuccess/FailuretoAcceptedand accordingly setstatus.Condition.StatustoTrue/False- How to verify it
Create a Kubeletconfig
~~~
1. Create kubeletconfig
$ cat kubeletconf.yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: kubeletconfig-test
spec:
autoSizingReserved: true
kubeletConfig:
memorySwap:
swapBehavior: LimitedSwap
machineConfigPoolSelector:
matchLabels:
pools.operator.machineconfiguration.openshift.io/worker: ""
$ oc apply -f kubeletconf.yaml
2. Verify kubeletconfig status:
$ oc get kubeletconfig kubeletconfig-test -o yaml
[.....]
Status:
Conditions:
Last Transition Time: 2026-xx-xxTxx:xx:xxZ
Message: Success
Status: True
Type: Accepted
Last Transition Time: 2026-xx-xxTxx:xx:xxZ
Message: Error: KubeletConfiguration: swapBehavior is not allowed to be set, but contains: LimitedSwap
Status: False
Type: Accepted
~~~
- Description for the changelog
This change makes kubeletconfig status more readable and understandable. Previously in case of Success,
Status.Conditions.messageandStatus.Conditions.Typeboth fields showing Success.<!--
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
KubeletConfig completion now recognizes the newer "accepted" condition (true/false) as completed alongside the legacy "success" condition.
Status condition mapping for error/success was standardized to use the "accepted" condition with appropriate true/false semantics.
Tests
Test assertions and helpers updated to validate the accepted-style condition, its statuses, and expected messages.
Documentation
* Clarified doc comments about status-only updates to KubeletConfig.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->