mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
commit
cf18b5098e
@ -405,8 +405,8 @@ func (s *SimpleStream) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (obj *SimpleStream) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
|
func (s *SimpleStream) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
|
||||||
func (obj *SimpleStream) DeepCopyObject() runtime.Object {
|
func (s *SimpleStream) DeepCopyObject() runtime.Object {
|
||||||
panic("SimpleStream does not support DeepCopy")
|
panic("SimpleStream does not support DeepCopy")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,13 +233,13 @@ func (h postStartHookHealthz) Name() string {
|
|||||||
return h.name
|
return h.name
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookNotFinished = errors.New("not finished")
|
var errHookNotFinished = errors.New("not finished")
|
||||||
|
|
||||||
func (h postStartHookHealthz) Check(req *http.Request) error {
|
func (h postStartHookHealthz) Check(req *http.Request) error {
|
||||||
select {
|
select {
|
||||||
case <-h.done:
|
case <-h.done:
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return hookNotFinished
|
return errHookNotFinished
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user