Repository navigation
Automated cherry pick of #14419: Record the pod scheduling gate removal metric with its ClusterQueue custom labels - #15391
Conversation
…ustom labels The metric is registered with the ClusterQueue custom-label set, but RecordPodSchedulingGateRemovalSeconds passed only the fixed name, cluster_queue, is_group and replica_role values. With CustomMetricLabels enabled and a ClusterQueue-sourced label configured, WithLabelValues then received fewer values than the metric's label count and panicked, crashing the manager whenever a Pod's Kueue scheduling gate was removed. Thread the ClusterQueue's custom label values through to the record call, the way the other custom-labelled metrics already do, so the recorded and registered label sets agree. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
|
||
| func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { | ||
| return r.ReconcileGenericJob(ctx, req, NewPod(WithExcessPodExpectations(r.expectationsStore), WithClock(r.clock), WithRoleTracker(r.RoleTracker()))) | ||
| return r.ReconcileGenericJob(ctx, req, NewPod( |
There was a problem hiding this comment.
I had conflic here due to reformattng
| kueue "sigs.k8s.io/kueue/apis/kueue/v1beta2" | ||
| "sigs.k8s.io/kueue/pkg/constants" | ||
| "sigs.k8s.io/kueue/pkg/controller/core" | ||
| "sigs.k8s.io/kueue/pkg/metrics" |
There was a problem hiding this comment.
conflict here due to imports changed between 0.18 and main
|
Some more fixes to align the PR to 0.19: 8b51034 |
235aeff to
8b51034
Compare
|
Thank you |
|
LGTM label has been added. DetailsGit tree hash: f8e3442a2603a25e410bbc02083ce1f70ddf215e |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mimowo, Singularity23x0 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
896766d
into
kubernetes-sigs:release-0.19
Cherry pick of #14419 on release-0.19.
#14419: Record the pod scheduling gate removal metric with its ClusterQueue custom labels
For details on the cherry pick process, see the cherry pick requests page.
What type of PR is this?
/kind bug