Skip to content

Conversation

@sbueringer
Copy link
Member

Signed-off-by: Stefan Büringer [email protected]

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Signed-off-by: Stefan Büringer [email protected]
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 11, 2025
@sbueringer
Copy link
Member Author

/cherry-pick release-1.11

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 11, 2025
@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.11

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.

@sbueringer sbueringer added the area/logging Issues or PRs related to logging label Aug 11, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-area PR is missing an area label label Aug 11, 2025
// if error is not nil, so setting result here to empty to avoid noisy warnings.
if rerr != nil {
retRes = ctrl.Result{}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this we get these logs

I0811 08:55:52.637042 1 controller.go:351] "Warning: Reconciler returned both a non-zero result and a non-nil error. The result will always be ignored if the error is non-nil and the non-nil error causes requeuing with exponential backoff. For more details, see: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler" controller="kubeadmconfig" controllerGroup="bootstrap.cluster.x-k8s.io" controllerKind="KubeadmConfig" KubeadmConfig="node-drain-cg4f22/node-drain-yrt3jt-mp-0-dd2dp" namespace="node-drain-cg4f22" name="node-drain-yrt3jt-mp-0-dd2dp" reconcileID="00abc693-0f18-4f80-8e3a-29c083cde356"
https://storage.googleapis.com/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-main/1954807928472997888/artifacts/clusters/bootstrap/logs/capi-kubeadm-bootstrap-system/capi-kubeadm-bootstrap-controller-manager/capi-kubeadm-bootstrap-controller-manager-f4cf5f747-m76js/manager.log


// DeprecationWarning is a regular expression that matches a
// warning that the API server returns when using a type that is deprecated.
func DeprecationWarning() regexp.Regexp {
Copy link
Member Author

@sbueringer sbueringer Aug 11, 2025

Choose a reason for hiding this comment

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

We get a lot of warnings in our controllers if our controllers use deprecated APIs because our users use deprecated APIs, e.g.

"infrastructure.cluster.x-k8s.io/v1beta1 DockerClusterTemplate is deprecated; use infrastructure.cluster.x-k8s.io/v1beta2 DockerClusterTemplate" logger="API Server Warning"
https://storage.googleapis.com/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-main/1954807928472997888/artifacts/clusters/bootstrap/logs/capi-system/capi-controller-manager/capi-controller-manager-655d6cb6cc-4vgbr/manager.log

I think it's enough if the users get deprecation warnings from the apiserver. I think it's not worth the log spam that we also get them in controller logs.

func DomainQualifiedFinalizerWarning(domain string) regexp.Regexp {
return *regexp.MustCompile(
fmt.Sprintf("^metadata.finalizers:.*%s.*prefer a domain-qualified finalizer name to avoid accidental conflicts with other finalizer writers$", domain),
fmt.Sprintf("^metadata.finalizers:.*%s.*prefer a domain-qualified finalizer name (including a path \\(\\/\\) )?to avoid accidental conflicts with other finalizer writers$", domain),
Copy link
Member Author

Choose a reason for hiding this comment

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

@sbueringer
Copy link
Member Author

/assign @sivchari @JoelSpeed @mboersma

@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

@JoelSpeed
Copy link
Contributor

/lgtm

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

LGTM label has been added.

Git tree hash: fcc81012bff8513f7cc723045e0537f1e10970ba

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

@sbueringer
Copy link
Member Author

/approve

Given lgtm's above

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 12, 2025
@k8s-ci-robot k8s-ci-robot merged commit c0bd847 into kubernetes-sigs:main Aug 12, 2025
22 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.12 milestone Aug 12, 2025
@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #12626

In response to this:

/cherry-pick release-1.11

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.

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. area/logging Issues or PRs related to logging cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants