func defaultGet(
	cli *kubernetes.Clientset,
	name string,
	namespace string,
	opts *metav1.GetOptions,
) (*appsv1.Deployment, error) {
	return cli.AppsV1().Deployments(namespace).Get(context.TODO(), name, *opts)
}
defaultGet is the default implementation to get a
deployment instance from kubernetes cluster
package deployment
import (
	"context"
	"encoding/json"
	"strings"
	"github.com/openebs/maya/pkg/debug"
	"github.com/openebs/dynamic-nfs-provisioner/pkg/kubernetes/client"
	"github.com/pkg/errors"
	appsv1 "k8s.io/api/apps/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	"k8s.io/client-go/kubernetes"
)
type getClientsetFn func() (*kubernetes.Clientset, error)
type getClientsetForPathFn func(path string) (*kubernetes.Clientset, error)
type getFn func(
	cli *kubernetes.Clientset,
	name string,
	namespace string,
	opts *metav1.GetOptions,
) (*appsv1.Deployment, error)
type listFn func(
	cli *kubernetes.Clientset,
	namespace string,
	opts *metav1.ListOptions,
) (*appsv1.DeploymentList, error)
type createFn func(
	cli *kubernetes.Clientset,
	namespace string,
	deploy *appsv1.Deployment,
	createOpts metav1.CreateOptions,
) (*appsv1.Deployment, error)
type updateFn func(
	cli *kubernetes.Clientset,
	namespace string,
	deploy *appsv1.Deployment,
	updateOpts metav1.UpdateOptions,
) (*appsv1.Deployment, error)
type deleteFn func(
	cli *kubernetes.Clientset,
	namespace string,
	name string,
	opts *metav1.DeleteOptions,
) error
type patchFn func(
	cli *kubernetes.Clientset,
	name, namespace string,
	pt types.PatchType,
	data []byte,
	opts metav1.PatchOptions,
	subresources ...string,
) (*appsv1.Deployment, error)
type rolloutStatusFn func(d *appsv1.Deployment) (*RolloutOutput, error)
type rolloutStatusfFn func(d *appsv1.Deployment) ([]byte, error)
func defaultGetClientset() (*kubernetes.Clientset, error) {
	return client.Instance().Clientset()
}
func defaultGetClientsetForPath(path string) (*kubernetes.Clientset, error) {
	return client.New(client.WithKubeConfigPath(path)).Clientset()
}