func CreateNamespace(name string, c client.Client) error {
	ns := &corev1.Namespace{
		ObjectMeta: metav1.ObjectMeta{
			Name: name,
		},
	}
	var err error
	err = wait.Poll(Poll, DefaultTimeout, func() (bool, error) {
		err = c.Create(context.Background(), ns)
		if err != nil {
			log.Errorf("Unexpected error while creating namespace: %v", err)
			return false, nil
		}
		return true, nil
	})
	if err != nil {
		return err
	}
	return nil
}
CreateNamespace creates a new namespace in the cluster
package framework
import (
	"context"
	log "github.com/sirupsen/logrus"
	corev1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/util/wait"
	"sigs.k8s.io/controller-runtime/pkg/client"
)