func GetProvisionerName() string {
	provisionerName := os.Getenv("HOSTPATH_PROVISIONER_NAME")
	if provisionerName == "" {
		provisionerName = "hostpath"
	}
	return provisionerName
}
Fetch provisioner name from environment variable HOSTPATH_PROVISIONER_NAME
if not set uses default hostpath name
package main
import (
	"context"
	"errors"
	"flag"
	"os"
	"path"
	"syscall"
	"sigs.k8s.io/sig-storage-lib-external-provisioner/v7/controller"
	v1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"
	"k8s.io/client-go/rest"
	klog "k8s.io/klog/v2"
)