Skip to content

Conversation

@anndono
Copy link
Contributor

@anndono anndono commented Jan 5, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Cherry pick of logging migration(#9664 , #9707 , #9773 , #9778 ): This standardizes logging by migrating from a mix of plaintext and structured logging to contextual logging, improving consistency, clarity, and observability across the codebase.

Which issue(s) this PR fixes:

Fixes #
ref: #1575

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 5, 2026
@github-actions github-actions bot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Jan 5, 2026
@k8s-ci-robot
Copy link
Contributor

Hi @anndono. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 5, 2026
@nilo19
Copy link
Contributor

nilo19 commented Jan 6, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 6, 2026
@nilo19 nilo19 requested a review from Copilot January 6, 2026 00:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the logging implementation from a mix of klog plaintext and structured logging to contextual logging using a new pkg/log package. This is a cherry-pick of multiple logging migration PRs (#9664, #9707, #9773, #9778) for the release-1.33 branch, aimed at standardizing logging, improving consistency, clarity, and observability across the codebase.

Key Changes

  • Replaces klog imports with sigs.k8s.io/cloud-provider-azure/pkg/log
  • Migrates from klog.V().Info/Infof/Error/Errorf() to structured logging with key-value pairs
  • Introduces logger initialization with log.Background().WithName() or log.FromContextOrBackground(ctx).WithName()

Reviewed changes

Copilot reviewed 63 out of 64 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/e2e/utils/kustoIngest.go Migrates KustoIngest function to use contextual logging with structured key-value pairs
tests/e2e/e2e_test.go Updates test logging to use log package with proper error handling
pkg/windows/service/service.go Converts Windows service logging to contextual logging
pkg/util/node/node.go Updates node utility logging with structured format
pkg/util/controller/testutil/test_utils.go Migrates test utilities to use contextual logging from context
pkg/util/controller/node/controller_utils.go Updates controller utilities with structured logging
pkg/provider/subnet/subnet.go Converts subnet operations logging to contextual logging
pkg/provider/storage/*.go Migrates storage-related logging across multiple files
pkg/provider/securitygroup/*.go Updates security group logging with structured format
pkg/provider/azure_*.go Comprehensive migration of Azure provider logging across 30+ files
pkg/nodeipam/*.go Updates node IPAM controller logging to use contextual logging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nilo19
Copy link
Contributor

nilo19 commented Jan 6, 2026

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 6, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anndono, nilo19

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 6, 2026
@k8s-ci-robot k8s-ci-robot merged commit 5ff3493 into kubernetes-sigs:release-1.33 Jan 6, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants