k8s

package
v0.0.0-...-d13e39c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: UPL-1.0 Imports: 14 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 BoolPointer

func BoolPointer(d bool) *bool

func CombineErrors

func CombineErrors(errs ...error) error

func CreateAutonomousBackup

func CreateAutonomousBackup(kubeClient client.Client,
	backupName string,
	backupSummary database.AutonomousDatabaseBackupSummary,
	ownerAdb *dbv4.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, adbName string) (*dbv4.AutonomousDatabaseBackupList, error)

func FetchAutonomousDatabaseWithOCID

func FetchAutonomousDatabaseWithOCID(kubeClient client.Client, namespace string, ocid string) (*dbv4.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 AutonomousDatabase without creating an AutonomousDatabase 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 Int64Pointer

func Int64Pointer(d int64) *int64

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