Skip to content

Fix warning related to Printf like formatting that became build error…#3090

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
mmamczur:printf-like_errors
Apr 22, 2026
Merged

Fix warning related to Printf like formatting that became build error…#3090
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
mmamczur:printf-like_errors

Conversation

@mmamczur
Copy link
Copy Markdown
Contributor

@mmamczur mmamczur commented Apr 17, 2026

…s in go1.26 (code won't build without fixing this on go 1.26)

This is done in preparation for k8s 1.36 that requires go 1.26.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 17, 2026
@k8s-ci-robot k8s-ci-robot requested review from 08volt and aojea April 17, 2026 15:14
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 17, 2026
Copy link
Copy Markdown
Member

@08volt 08volt left a comment

Choose a reason for hiding this comment

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

/lgtm

Comment thread pkg/psc/controller.go Outdated
} else if exists {
svcAttachment := obj.(*sav1.ServiceAttachment)
c.recorder(svcAttachment.Namespace).Eventf(svcAttachment, v1.EventTypeWarning, "ProcessServiceAttachmentFailed", eventMsg)
c.recorder(svcAttachment.Namespace).Eventf(svcAttachment, v1.EventTypeWarning, "ProcessServiceAttachmentFailed", "error processing service attachment %q: %q", key, err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: we could keep using "eventMsg" and just use "Event" instead of Eventf:

c.recorder(svcAttachment.Namespace).Event(svcAttachment, v1.EventTypeWarning, "ProcessServiceAttachmentFailed", eventMsg)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed it to use Event

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 20, 2026
…s in go1.26 (code won't build without fixing this)
@mmamczur mmamczur force-pushed the printf-like_errors branch from 26d2a45 to d4ff640 Compare April 21, 2026 08:39
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 21, 2026
@mmamczur
Copy link
Copy Markdown
Contributor Author

/assign @kl52752

@kl52752
Copy link
Copy Markdown
Contributor

kl52752 commented Apr 22, 2026

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 08volt, kl52752, mmamczur

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 Apr 22, 2026
@k8s-ci-robot k8s-ci-robot merged commit 626a49e into kubernetes:master Apr 22, 2026
5 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. 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.

4 participants