func IsCrDeployed(crdName, crName string) func() (bool, error) {
	return func() (bool, error) {
		var stdout, stderr bytes.Buffer

		err := kubectl.Run(&stdout, &stderr, "get", crdName, crName,
			"-o", "jsonpath={.status.phase}")
		if err != nil {
			return false, err
		}

		return stdout.String() == "Deployed", nil
	}
}
// IsCrDeployed check if CRD is deployed
IsCrDeployed check if CRD is deployed
// IsCrDeployed check if CRD is deployed
func IsCrDeployed(crdName, crName string) func() (bool, error) {
	return func() (bool, error) {
		var stdout, stderr bytes.Buffer
		err := kubectl.Run(&stdout, &stderr, "get", crdName, crName,
			"-o", "jsonpath={.status.phase}")
		if err != nil {
			return false, err
		}
		return stdout.String() == "Deployed", nil
	}
}
func IsCrDeployed ( crdName , crName string ) func ( ) ( bool , error ) { return func ( ) ( bool , error ) { var stdout , stderr bytes . Buffer err := kubectl . Run ( & stdout , & stderr , " " , crdName , crName , " " , " " ) if err != nil { return false , err } return stdout . String ( ) == " " , nil } }
IsCrDeployed check if CRD is deployed
IsCrDeployed check if CRD is deployed