🌱 Add debug logging for the state of the priority queue#3075
🌱 Add debug logging for the state of the priority queue#3075k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
Conversation
| addedCounter uint64 | ||
| priority int | ||
| readyAt *time.Time | ||
| Key T `json:"key"` |
There was a problem hiding this comment.
Exporting these is required for the json marshalling, otherwise they get omitted
This debug logging prints the state of the workqueue in order to allow
debugging it. It will continously check at runtime if debug logging is
enabled and do nothing if not, making it very cheap if unused.
Sample output piped through `jq` for readability:
```
{
"level": "debug",
"ts": "2025-01-19T12:00:43-05:00",
"msg": "workqueue_state",
"controller": "configmap",
"items": [
{
"key": {
"Namespace": "kube-system",
"Name": "kubeadm-config"
},
"addedCounter": 1,
"priority": -100
}
]
}
```
|
Thank you! /lgtm |
|
LGTM label has been added. DetailsGit tree hash: 389335b47acedc19b2616447330a433f4eb55b21 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, sbueringer 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 |
|
/cherrypick release-0.20 |
|
@alvaroaleman: new pull request created: #3088 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This debug logging prints the state of the workqueue in order to allow debugging it. It will continously check at runtime if debug logging is enabled and do nothing if not, making it very cheap if unused.
Sample output piped through
jqfor readability: