Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster controller revise #368

Merged
merged 3 commits into from
Aug 9, 2023
Merged

Cluster controller revise #368

merged 3 commits into from
Aug 9, 2023

Conversation

LiZhenCheng9527
Copy link
Contributor

./customcluster_controller.go:423:3: undefined: log
./customcluster_controller.go:429:3: undefined: log
./customcluster_controller.go:435:3: undefined: log

[undefiend log in function deleteWorkerPods]

@netlify
Copy link

netlify bot commented Aug 8, 2023

Deploy Preview for kurator-dev canceled.

Name Link
🔨 Latest commit 740ba3f
🔍 Latest deploy log https://app.netlify.com/sites/kurator-dev/deploys/64d22998e6df280008cd6439

@kurator-bot
Copy link
Collaborator

Welcome @LiZhenCheng9527! It looks like this is your first PR to kurator-dev/kurator 🎉

@@ -417,6 +417,8 @@ func (r *CustomClusterController) reconcileDelete(ctx context.Context, customClu

// deleteWorkerPods delete all the manage worker pods, including those for initialization, scaling up, scaling down, and other related tasks.
func (r *CustomClusterController) deleteWorkerPods(ctx context.Context, customCluster *v1alpha1.CustomCluster) error {
log := ctrl.LoggerFrom(ctx)
Copy link
Member

Choose a reason for hiding this comment

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

good catch

we can also add log = log.WithValues()

Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kurator-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

The pull request process is described here

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

@kurator-bot kurator-bot merged commit 1bfb035 into kurator-dev:main Aug 9, 2023
9 checks passed
@LiZhenCheng9527 LiZhenCheng9527 deleted the cluster-controller-revise branch August 11, 2023 01:35
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