func setVRGInitialCondition(conditions *[]metav1.Condition, observedGeneration int64, message string) {
	setStatusCondition(conditions, metav1.Condition{
		Type:               VRGConditionTypeDataReady,
		Reason:             VRGConditionReasonInitializing,
		ObservedGeneration: observedGeneration,
		Status:             metav1.ConditionUnknown,
		Message:            message,
	})
	setStatusCondition(conditions, metav1.Condition{
		Type:               VRGConditionTypeDataProtected,
		Reason:             VRGConditionReasonInitializing,
		ObservedGeneration: observedGeneration,
		Status:             metav1.ConditionUnknown,
		Message:            message,
	})
	setStatusCondition(conditions, metav1.Condition{
		Type:               VRGConditionTypeClusterDataReady,
		Reason:             VRGConditionReasonInitializing,
		ObservedGeneration: observedGeneration,
		Status:             metav1.ConditionUnknown,
		Message:            message,
	})
	setStatusCondition(conditions, metav1.Condition{
		Type:               VRGConditionTypeClusterDataProtected,
		Reason:             VRGConditionReasonInitializing,
		ObservedGeneration: observedGeneration,
		Status:             metav1.ConditionUnknown,
		Message:            message,
	})
}
Just when VRG has been picked up for reconciliation when nothing has been
figured out yet.
package controllers
import (
	"time"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
	VRGConditionTypeDataReady = "DataReady"
	VRGConditionTypeDataProtected = "DataProtected"
	VRGConditionTypeClusterDataReady = "ClusterDataReady"
	VRGConditionTypeClusterDataProtected = "ClusterDataProtected"
)
const (
	VRGConditionReasonInitializing        = "Initializing"
	VRGConditionReasonReplicating         = "Replicating"
	VRGConditionReasonReplicated          = "Replicated"
	VRGConditionReasonReady               = "Ready"
	VRGConditionReasonDataProtected       = "DataProtected"
	VRGConditionReasonProgressing         = "Progressing"
	VRGConditionReasonClusterDataRestored = "Restored"
	VRGConditionReasonError               = "Error"
	VRGConditionReasonErrorUnknown        = "UnknownError"
	VRGConditionReasonUploading           = "Uploading"
	VRGConditionReasonUploaded            = "Uploaded"
	VRGConditionReasonUploadError         = "UploadError"
)