k8s

package
v0.0.0-...-bb344e4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: UPL-1.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizerAndPatch

func AddFinalizerAndPatch(kubeClient client.Client, obj client.Object, finalizer string) error

func CombineErrors

func CombineErrors(errs ...error) error

func CreateAutonomousBackup

func CreateAutonomousBackup(kubeClient client.Client,
	backupName string,
	backupSummary database.AutonomousDatabaseBackupSummary,
	ownerADB *dbv1alpha1.AutonomousDatabase) error

func CreateSecret

func CreateSecret(kubeClient client.Client, namespace string, name string, data map[string][]byte, owner client.Object, label map[string]string) error

func FetchAutonomousDatabaseBackups

func FetchAutonomousDatabaseBackups(kubeClient client.Client, namespace string) (*dbv1alpha1.AutonomousDatabaseBackupList, error)

func FetchAutonomousDatabaseWithOCID

func FetchAutonomousDatabaseWithOCID(kubeClient client.Client, namespace string, ocid string) (*dbv1alpha1.AutonomousDatabase, error)

Returns the first AutonomousDatabase resource that matches the AutonomousDatabaseOCID of the backup Sometimes the AutonomousDatabase doesn't exist. It could happen if a user simply want to restore or backup the ADB without creating an ADB rersource in the cluster. If there isn't an AutonomousDatabase with the same OCID, a nil is returned.

func FetchConfigMap

func FetchConfigMap(kubeClient client.Client, namespace string, name string) (*corev1.ConfigMap, error)

func FetchResource

func FetchResource(kubeClient client.Client, namespace string, name string, object client.Object) error

func FetchSecret

func FetchSecret(kubeClient client.Client, namespace string, name string) (*corev1.Secret, error)

func GetSecretValue

func GetSecretValue(kubeClient client.Client, namespace string, name string, key string) (string, error)

func NewOwnerReference

func NewOwnerReference(owner client.Object) []metav1.OwnerReference

func Patch

func Patch(kubeClient client.Client, obj client.Object, path string, value interface{}) error

func RemoveFinalizerAndPatch

func RemoveFinalizerAndPatch(kubeClient client.Client, obj client.Object, finalizer string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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