Skip to content

chore(deps): bump k8s.io/klog/v2 from v2.130.1 to v2.140.0#1101

Merged
QcFe merged 1 commit into
netgroup-polito:masterfrom
pierluigilenoci:fix/honor-stderrthreshold
May 20, 2026
Merged

chore(deps): bump k8s.io/klog/v2 from v2.130.1 to v2.140.0#1101
QcFe merged 1 commit into
netgroup-polito:masterfrom
pierluigilenoci:fix/honor-stderrthreshold

Conversation

@pierluigilenoci

@pierluigilenoci pierluigilenoci commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps k8s.io/klog/v2 from v2.130.1 to v2.140.0 in both operators/ and infrastructure/ingress-controller/custom-error-pages/.

Changes

  • operators/go.mod / operators/go.sum — klog v2.130.1 → v2.140.0
  • infrastructure/ingress-controller/custom-error-pages/go.mod / go.sum — klog v2.130.1 → v2.140.0

@pierluigilenoci pierluigilenoci requested a review from a team as a code owner April 23, 2026 08:55
@kingmakerbot

Copy link
Copy Markdown
Collaborator

Hi @pierluigilenoci. Thanks for your PR.

I am @kingmakerbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch
  • /merge: Merge this PR into the master branch
  • /hold: Adds hold label to prevent merging with /merge
  • /unhold: Removes the hold label to allow merging with /merge
  • /deploy-staging: Deploy a staging environment to test this PR (the build-all flag enables user environments building)
  • /undeploy-staging: Manually undeploy the staging environment

Make sure this PR appears in the CrownLabs changelog, adding one of the following labels:

  • kind/breaking: 💥 Breaking Change
  • kind/feature: 🚀 New Feature
  • kind/bug: 🐛 Bug Fix
  • kind/cleanup: 🧹 Code Refactoring
  • kind/docs: 📝 Documentation

@QcFe

QcFe commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Hi @pierluigilenoci, thanks for your contribution.
Unfortunately several tests aren't passing, as you may have noticed. Apart from having removed a couple of rather crucial directives without which the applications you touched can't start, changes like these would also require changes to the associated helm charts. Also whenever go linting checks are explicitly disabled, we generally require a comment to explain the reason why they have been.

@pierluigilenoci

Copy link
Copy Markdown
Contributor Author

Hi @QcFe, thanks for the review! You're absolutely right — I'm sorry about the broken state.

I've pushed a fix (62f8e4b) that addresses all the issues you raised:

Restored accidentally deleted directives:

  • bastion-operator/main.go: restored the ctrl.NewManager(...) call that was removed
  • instance-automation/main.go: restored ctrl.SetLogger(...), log := ctrl.Log.WithName("setup"), and whiteListMap := parseMap(...) — without these the application can't start
  • instance-operator/main.go: restored ctrl.SetLogger(textlogger.NewLogger(textlogger.NewConfig()))
  • instmetrics/main.go: restored log := textlogger.NewLogger(textlogger.NewConfig()).WithName("instmetrics")
  • operator/main.go: restored the // Set the ctrl.Log to klogr comment
  • examagent/options.go: restored the // Parse and normalize options. doc comment
  • custom-error-pages/server/main.go: restored the // Load response templates comment

Added explanatory nolint comments:
All //nolint:errcheck directives now include a reason: // flag is registered by klog.InitFlags above

Regarding helm chart changes: The flag.Set() calls set defaults before flag.Parse(), so any --stderrthreshold=... passed via helm chart args will override the code defaults. If you'd prefer explicit helm chart values for these flags, happy to add them — please let me know.

Thanks again for catching these!

@pierluigilenoci pierluigilenoci force-pushed the fix/honor-stderrthreshold branch 2 times, most recently from bda5974 to f1f68d5 Compare May 7, 2026 17:07
@pierluigilenoci pierluigilenoci force-pushed the fix/honor-stderrthreshold branch 2 times, most recently from aabbe61 to c6ef1a6 Compare May 15, 2026 15:01
@QcFe

QcFe commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Ciao @pierluigilenoci, sorry for getting back to you this late. We eventually considered we don't mind the new behavior and that we prefer not to have the flags to revert to the old standard. So bumping dependencies would be enough already :)

@pierluigilenoci pierluigilenoci force-pushed the fix/honor-stderrthreshold branch from c6ef1a6 to dd8f325 Compare May 17, 2026 08:46
@pull-request-size pull-request-size Bot added size/S and removed size/M labels May 17, 2026
@pierluigilenoci pierluigilenoci changed the title fix: honor klog -stderrthreshold even when -logtostderr is true chore(deps): bump k8s.io/klog/v2 from v2.130.1 to v2.140.0 May 17, 2026
@pierluigilenoci

Copy link
Copy Markdown
Contributor Author

Thanks @QcFe! Understood — I've simplified the PR to just the klog dependency bump (v2.130.1 → v2.140.0) without the stderrthreshold behavior flags.

Signed-off-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>
@pierluigilenoci pierluigilenoci force-pushed the fix/honor-stderrthreshold branch from dd8f325 to cd1c7af Compare May 19, 2026 08:59
@QcFe

QcFe commented May 20, 2026

Copy link
Copy Markdown
Collaborator

/deploy-staging

@kingmakerbot

Copy link
Copy Markdown
Collaborator

Your staging environment has been correctly deployed.
You can access the application frontend and Qlkube APIs using the following URLs:

@QcFe QcFe merged commit e849c3b into netgroup-polito:master May 20, 2026
27 of 28 checks passed
@kingmakerbot

Copy link
Copy Markdown
Collaborator

Your staging environment has been correctly teared down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants