kubernetes-sigs / cluster-api-provider-ibmcloud

Cluster API Provider for IBM Cloud
https://cluster-api-ibmcloud.sigs.k8s.io
Apache License 2.0
62 stars 82 forks source link

Refactor reconcileNormal function to accept context from caller #2018

Open carmal891 opened 5 days ago

carmal891 commented 5 days ago

/kind bug /area provider/ibmcloud

What steps did you take and what happened: Refactor the existing reconcileNormal function to accept a context parameter from the caller.

  1. The new function signature should be: reconcileNormal(ctx context.Context, machineScope *scope.PowerVSMachineScope)

  2. Update logs to use contextual logging with appropriate verbosity level - https://cluster-api.sigs.k8s.io/developer/logging#contextual-logging

  3. All code sections where reconcileNormal is invoked must also be updated accordingly

What did you expect to happen:

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

carmal891 commented 5 days ago

/assign