// GetInstance returns a daemonset instance.
GetInstance returns a daemonset instance.
// GetInstance returns a daemonset instance .
func (d *DaemonSet) GetInstance(fqn string) (*appsv1.DaemonSet, error) {
	o, err := d.Factory.Get(d.gvr.String(), fqn, true, labels.Everything())
	if err != nil {
		return nil, err
	}
	var ds appsv1.DaemonSet
	err = runtime.DefaultUnstructuredConverter.FromUnstructured(o.(*unstructured.Unstructured).Object, &ds)
	if err != nil {
		return nil, errors.New("expecting DaemonSet resource")
	}
	return &ds, nil
}
func ( d * DaemonSet ) GetInstance ( fqn string ) ( * appsv1 . DaemonSet , error ) { o , err := d . Factory . Get ( d . gvr . String ( ) , fqn , true , labels . Everything ( ) ) if err != nil { return nil , err } var ds appsv1 . DaemonSet err = runtime . DefaultUnstructuredConverter . FromUnstructured ( o . ( * unstructured . Unstructured ) . Object , & ds ) if err != nil { return nil , errors . New ( " " ) } return & ds , nil }
GetInstance returns a daemonset instance.
GetInstance returns a daemonset instance .