util

package
v0.7.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: AGPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

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 PatchClusterOpsAnnotations

func PatchClusterOpsAnnotations(ctx context.Context,
	cli client.Client,
	cluster *appsv1alpha1.Cluster,
	opsRequestSlice []appsv1alpha1.OpsRecorder) error

PatchClusterOpsAnnotations patches OpsRequest annotation in Cluster.annotations

func PatchOpsRequestReconcileAnnotation

func PatchOpsRequestReconcileAnnotation(ctx context.Context, cli client.Client, namespace string, opsRequestName string) error

PatchOpsRequestReconcileAnnotation patches the reconcile annotation to OpsRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL