kubernetes: nil pointer issue on Time object
What happened?
debug encounter panics on Time object. but panic doesn’t happen when running it.
What did you expect to happen?
no panics
How can we reproduce it (as minimally and precisely as possible)?
func TestDebugPanic(t *testing.T) {
p := v1.Pod{
ObjectMeta: metav1.ObjectMeta{},
}
t.Log(p.String())
t.Log(p.String())
}
Anything else we need to know?
No response
Kubernetes version
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go head commit.
Cloud provider
no cloud provider needed
OS version
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
Install tools
Container runtime (CRI) and and version (if applicable)
Related plugins (CNI, CSI, …) and versions (if applicable)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (12 by maintainers)
this is the issue in debug tool(delve) issue in old version mac OS or old command line tools . after upgrade the command line tool, it doesn’t panic anymore.
@jpbets , thank you for your interest on this issue.