-
Notifications
You must be signed in to change notification settings - Fork 42.1k
kubeadm: fix url validation code #74454
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
kubeadm: fix url validation code #74454
Conversation
|
/cc @neolit123 |
neolit123
left a comment
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.
thanks for the quick fix.
/priority critical-urgent
/kind bug
/approve
we need a backport to 1.13 (at least) after this PR merges.
@bart0sh let me know if are going to do it. else, i can too...
https://github.com/eBay/Kubernetes/blob/master/docs/devel/cherry-picks.md
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bart0sh, neolit123 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixed nil pointer dereference in url validation code that
caused kubeamd panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xa7930c]
goroutine 1 [running]:
kubeadm/validation.ValidateURLs(0x40000bafe0, 0x2, 0x2, 0x1, 0x40002967b0, 0x0, 0x40002967b0, 0xf302a0)
kubeadm/validation/validation.go:324 +0xcc
kubeadm/validation.ValidateEtcd(0x400000b490, 0x4000296720, 0x0, 0x0, 0x0)
kubeadm/validation/validation.go:291 +0x1f0
...
Fixes: kubernetes/kubeadm#1419
Signed-off-by: Ed Bartosh <[email protected]>
4097a5f to
f8d235b
Compare
|
/lgtm |
…454-origin-release-1.12 Automated cherry pick of #74454: kubeadm: fix url validation code
…454-origin-release-1.13 Automated cherry pick of #74454: kubeadm: fix url validation code
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixed nil pointer dereference in url validation code that
caused kubeamd panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xa7930c]
goroutine 1 [running]:
kubeadm/validation.ValidateURLs(0x40000bafe0, 0x2, 0x2, 0x1, 0x40002967b0, 0x0, 0x40002967b0, 0xf302a0)
kubeadm/validation/validation.go:324 +0xcc
kubeadm/validation.ValidateEtcd(0x400000b490, 0x4000296720, 0x0, 0x0, 0x0)
kubeadm/validation/validation.go:291 +0x1f0
...
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#1419
Does this PR introduce a user-facing change?: