mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
add ApproximatePodTemplateForObject factory method
This commit is contained in:
@@ -454,6 +454,10 @@ func (f *FakeFactory) AttachablePodForObject(ob runtime.Object, timeout time.Dur
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (f *FakeFactory) ApproximatePodTemplateForObject(obj runtime.Object) (*api.PodTemplateSpec, error) {
|
||||
return f.ApproximatePodTemplateForObject(obj)
|
||||
}
|
||||
|
||||
func (f *FakeFactory) UpdatePodSpecForObject(obj runtime.Object, fn func(*api.PodSpec) error) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
@@ -718,6 +722,10 @@ func (f *fakeAPIFactory) AttachablePodForObject(object runtime.Object, timeout t
|
||||
}
|
||||
}
|
||||
|
||||
func (f *fakeAPIFactory) ApproximatePodTemplateForObject(obj runtime.Object) (*api.PodTemplateSpec, error) {
|
||||
return f.Factory.ApproximatePodTemplateForObject(obj)
|
||||
}
|
||||
|
||||
func (f *fakeAPIFactory) Validator(validate bool) (validation.Schema, error) {
|
||||
return f.tf.Validator, f.tf.Err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user