Documentation ¶
Index ¶
- func GetOpsRequestFromBackup(backup *dpv1alpha1.Backup) *appsv1alpha1.OpsRecorder
- func GetOpsRequestSliceFromCluster(cluster *appsv1alpha1.Cluster) ([]appsv1alpha1.OpsRecorder, error)
- func PatchOpsRequestReconcileAnnotation(ctx context.Context, cli client.Client, namespace string, ...) error
- func SetOpsRequestToCluster(cluster *appsv1alpha1.Cluster, opsRequestSlice []appsv1alpha1.OpsRecorder)
- func UpdateClusterOpsAnnotations(ctx context.Context, cli client.Client, cluster *appsv1alpha1.Cluster, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpsRequestFromBackup ¶ added in v0.7.0
func GetOpsRequestFromBackup(backup *dpv1alpha1.Backup) *appsv1alpha1.OpsRecorder
GetOpsRequestFromBackup gets OpsRequest slice from cluster annotations.
func GetOpsRequestSliceFromCluster ¶
func GetOpsRequestSliceFromCluster(cluster *appsv1alpha1.Cluster) ([]appsv1alpha1.OpsRecorder, error)
GetOpsRequestSliceFromCluster gets OpsRequest slice from cluster annotations. this records what OpsRequests are running in cluster
func PatchOpsRequestReconcileAnnotation ¶
func PatchOpsRequestReconcileAnnotation(ctx context.Context, cli client.Client, namespace string, opsRequestName string) error
PatchOpsRequestReconcileAnnotation patches the reconcile annotation to OpsRequest
func SetOpsRequestToCluster ¶ added in v0.8.0
func SetOpsRequestToCluster(cluster *appsv1alpha1.Cluster, opsRequestSlice []appsv1alpha1.OpsRecorder)
func UpdateClusterOpsAnnotations ¶
func UpdateClusterOpsAnnotations(ctx context.Context, cli client.Client, cluster *appsv1alpha1.Cluster, opsRequestSlice []appsv1alpha1.OpsRecorder) error
UpdateClusterOpsAnnotations updates OpsRequest annotation in Cluster.annotations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.