// Load returns a deployment instance.
Load returns a deployment instance.
// Load returns a deployment instance .
func (*Deployment) Load(f Factory, fqn string) (*appsv1.Deployment, error) {
	o, err := f.Get("apps/v1/deployments", fqn, true, labels.Everything())
	if err != nil {
		return nil, err
	}
	var dp appsv1.Deployment
	err = runtime.DefaultUnstructuredConverter.FromUnstructured(o.(*unstructured.Unstructured).Object, &dp)
	if err != nil {
		return nil, errors.New("expecting Deployment resource")
	}
	return &dp, nil
}
func ( * Deployment ) Load ( f Factory , fqn string ) ( * appsv1 . Deployment , error ) { o , err := f . Get ( " " , fqn , true , labels . Everything ( ) ) if err != nil { return nil , err } var dp appsv1 . Deployment err = runtime . DefaultUnstructuredConverter . FromUnstructured ( o . ( * unstructured . Unstructured ) . Object , & dp ) if err != nil { return nil , errors . New ( " " ) } return & dp , nil }
Load returns a deployment instance.
Load returns a deployment instance .