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