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
fix panic with SIGSEGV in kubeadm certs check-expiration #124124
Conversation
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Mon Apr 1 02:16:24 UTC 2024. |
/release-note-edit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/triage accepted
/priority important-longterm
thanks for the quick fix.
@@ -239,7 +239,7 @@ func TestFileExists(t *testing.T) { | |||
} | |||
for _, tt := range tests { | |||
t.Run(tt.name, func(t *testing.T) { | |||
if got := fileExists(tt.filename); got != tt.want { | |||
if got, _ := fileExists(tt.filename); got != tt.want { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after this change there is a missing unit test case for the return false, err
return of func fileExists(filename string) (bool, error) {
but i don't insist of adding it.
we could use os.Chmod() or a os.WriteFile with a restrictive FileMode, but then this test will not work on Windows, i think.
so fine to leave this test case out for now.
LGTM label has been added. Git tree hash: a6f2b568db7b1be7389698ca8d2b3982a7c05ef2
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carlory, neolit123 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 |
let's see if this can be added in 1.30.0 /milestone v1.30 |
please send backport PRs for 1.29, 1.28, 1.27 |
…124-upstream-release-1.27 Automated cherry pick of #124124: fix panic with SIGSEGV in kubeadm certs check-expiration
…124-upstream-release-1.29 Automated cherry pick of #124124: fix panic with SIGSEGV in kubeadm certs check-expiration
…124-upstream-release-1.28 Automated cherry pick of #124124: fix panic with SIGSEGV in kubeadm certs check-expiration
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #124120
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: