You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CKS: scaling down by size ignores nodes added with addNodesToKubernetesCluster #14836
A CKS cluster's size counts worker nodes added with addNodesToKubernetesCluster, but scaleKubernetesCluster with size only counts CKS-created workers when picking nodes to remove.
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
On scaleKubernetesCluster with size, the worker count only includes CKS-created workers, so nodes added with addNodesToKubernetesCluster are ignored. The scale-down log then says "No nodes to remove", the stored size changes, and the real node count no longer matches. Later scale-ups can wait for a Ready count that is never reached. The reporter also describes the same drift for nodeids with control or etcd nodes and for autoscaling minsize below the number of added nodes.
📊 Assessment
Dimension
Value
Reasoning
Type
type:bug
Scale-down counts the wrong nodes, with reproduction steps and a worked example
Component
component:cks
Scale worker node counting
Severity
Severity:Major
Stored size drifts and breaks later scaling
Labels
type:bug, component:cks, Severity:Major
Based on the issue text
Coding agent
Suitable
Expected behaviour is specified: count added workers, and reject sizes below the added-node count
Activity
github-actions commentedon Dec 1, 2026
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
🎯 Triage report
On
scaleKubernetesClusterwithsize, the worker count only includes CKS-created workers, so nodes added withaddNodesToKubernetesClusterare ignored. The scale-down log then says "No nodes to remove", the storedsizechanges, and the real node count no longer matches. Later scale-ups can wait for a Ready count that is never reached. The reporter also describes the same drift fornodeidswith control or etcd nodes and for autoscalingminsizebelow the number of added nodes.📊 Assessment
🔗 Similar issues
💡 Notes and suggestions
nodeidsand autoscaling cases.size= 6), thenscaleKubernetesCluster size=5.Add this agentic workflow to your repo
To install this agentic workflow, run