func IsCrDeleted(crdName, crName string) func() (bool, error) {
	return func() (bool, error) {
		isCrdExist, _ := IsCrdAvailable(crdName)()

		if !isCrdExist {
			return true, nil
		}

		var stdout, stderr bytes.Buffer
		err := kubectl.Run(&stdout, &stderr, "get", crdName, crName,
			"-o", "json", "--ignore-not-found=true")

		if err != nil {
			return false, err
		}

		return stdout.String() == "", nil
	}
}
// IsCrDeleted check if CRD is deleted
IsCrDeleted check if CRD is deleted
// IsCrDeleted check if CRD is deleted
func IsCrDeleted(crdName, crName string) func() (bool, error) {
	return func() (bool, error) {
		isCrdExist, _ := IsCrdAvailable(crdName)()
		if !isCrdExist {
			return true, nil
		}
		var stdout, stderr bytes.Buffer
		err := kubectl.Run(&stdout, &stderr, "get", crdName, crName,
			"-o", "json", "--ignore-not-found=true")
		if err != nil {
			return false, err
		}
		return stdout.String() == "", nil
	}
}
func IsCrDeleted ( crdName , crName string ) func ( ) ( bool , error ) { return func ( ) ( bool , error ) { isCrdExist , _ := IsCrdAvailable ( crdName ) ( ) if ! isCrdExist { return true , nil } var stdout , stderr bytes . Buffer err := kubectl . Run ( & stdout , & stderr , " " , crdName , crName , " " , " " , " " ) if err != nil { return false , err } return stdout . String ( ) == " " , nil } }
IsCrDeleted check if CRD is deleted
IsCrDeleted check if CRD is deleted