// createNewUnstructuredClusterScoped creates resources by using gvr & obj, will get object after create.
createNewUnstructuredClusterScoped creates resources by using gvr & obj, will get object after create.
// createNewUnstructuredClusterScoped creates resources by using gvr & obj will get object after create .
func createNewUnstructuredClusterScoped(
	clientHubDynamic dynamic.Interface,
	gvr schema.GroupVersionResource,
	obj *unstructured.Unstructured,
	name string,
) {
	klog.V(5).Infof("Creation Unstructured of %s %s", gvr, name)
	s := clientHubDynamic.Resource(gvr)
	klog.V(5).Infof("ns created for %s %s created", gvr, name)
	Expect(s.Create(context.TODO(), obj, metav1.CreateOptions{})).NotTo(BeNil())
	klog.V(5).Infof("Check if Unstructured %s %s created", gvr, name)
	Expect(s.Get(context.TODO(), name, metav1.GetOptions{})).NotTo(BeNil())
	klog.V(5).Infof("Unstructured %s %s created", gvr, name)
}
func createNewUnstructuredClusterScoped ( clientHubDynamic dynamic . Interface , gvr schema . GroupVersionResource , obj * unstructured . Unstructured , name string , ) { klog . V ( 5 ) . Infof ( " " , gvr , name ) s := clientHubDynamic . Resource ( gvr ) klog . V ( 5 ) . Infof ( " " , gvr , name ) Expect ( s . Create ( context . TODO ( ) , obj , metav1 . CreateOptions { } ) ) . NotTo ( BeNil ( ) ) klog . V ( 5 ) . Infof ( " " , gvr , name ) Expect ( s . Get ( context . TODO ( ) , name , metav1 . GetOptions { } ) ) . NotTo ( BeNil ( ) ) klog . V ( 5 ) . Infof ( " " , gvr , name ) }
createNewUnstructuredClusterScoped creates resources by using gvr & obj, will get object after create.
createNewUnstructuredClusterScoped creates resources by using gvr & obj will get object after create .