Skip to content

chore(webhook): log defaulting at debug instead of info - #11790

Merged
leonardoce merged 1 commit into
cloudnative-pg:mainfrom
leonardoce:chore-quiet-webhook-defaulting-logs
Nov 2, 2026
Merged

leonardoce merged 1 commit into
cloudnative-pg:mainfrom
leonardoce:chore-quiet-webhook-defaulting-logs

Conversation

@leonardoce

@leonardoce leonardoce commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

EnsureResourceIsAdmitted runs the defaulting webhook on every
reconcile, not just on admission, so these "Defaulting for X" lines
were printed at info level on every reconcile of every Backup,
Cluster, Database and ScheduledBackup, drowning out other operator
logs. Demote them to debug.

Closes #11792

@leonardoce
leonardoce requested a review from a team as a code owner October 28, 2026 21:08
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.28 release-1.30 labels Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@leonardoce
leonardoce force-pushed the chore-quiet-webhook-defaulting-logs branch from 69812f2 to da07f8a Compare October 28, 2026 21:11
@leonardoce
leonardoce force-pushed the chore-quiet-webhook-defaulting-logs branch from da07f8a to cfb58ae Compare November 2, 2026 09:26
@leonardoce

Copy link
Copy Markdown
Contributor Author

/test type=smoke

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Nov 2, 2026
EnsureResourceIsAdmitted runs the defaulting webhook on every
reconcile, not just on admission, so these "Defaulting for X" lines
were printed at info level on every reconcile of every Backup,
Cluster, Database and ScheduledBackup, drowning out other operator
logs. Demote them to debug.

Closes cloudnative-pg#11792

Signed-off-by: Leonardo Cecchi <[email protected]>
@leonardoce
leonardoce force-pushed the chore-quiet-webhook-defaulting-logs branch from cfb58ae to c3c09d7 Compare November 2, 2026 10:01
@leonardoce
leonardoce merged commit d8f7f98 into cloudnative-pg:main Nov 2, 2026
cnpg-bot pushed a commit that referenced this pull request Nov 2, 2026
EnsureResourceIsAdmitted runs the defaulting webhook on every
reconcile, not just on admission, so these "Defaulting for X" lines
were printed at info level on every reconcile of every Backup,
Cluster, Database and ScheduledBackup, drowning out other operator
logs. Demote them to debug.

Closes #11792

Signed-off-by: Leonardo Cecchi <[email protected]>
(cherry picked from commit d8f7f98)
cnpg-bot pushed a commit that referenced this pull request Nov 2, 2026
EnsureResourceIsAdmitted runs the defaulting webhook on every
reconcile, not just on admission, so these "Defaulting for X" lines
were printed at info level on every reconcile of every Backup,
Cluster, Database and ScheduledBackup, drowning out other operator
logs. Demote them to debug.

Closes #11792

Signed-off-by: Leonardo Cecchi <[email protected]>
(cherry picked from commit d8f7f98)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged release-1.28 release-1.30

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webhook defaulting logs every reconcile at info level, drowning out other operator logs

4 participants