mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
Do not log the content of pod manifest if parsing fails.
This commit is contained in:
parent
d0dfd8c4da
commit
4805252e0f
@ -189,8 +189,7 @@ func (s *sourceFile) extractFromFile(filename string) (pod *v1.Pod, err error) {
|
|||||||
return pod, nil
|
return pod, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return pod, fmt.Errorf("%v: read '%v', but couldn't parse as pod(%v).\n",
|
return pod, fmt.Errorf("%v: couldn't parse as pod(%v), please check config file.\n", filename, podErr)
|
||||||
filename, string(data), podErr)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sourceFile) replaceStore(pods ...*v1.Pod) (err error) {
|
func (s *sourceFile) replaceStore(pods ...*v1.Pod) (err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user