Documentation
¶
Index ¶
- func AddFinalizerAndPatch(kubeClient client.Client, obj client.Object, finalizer string) error
- func CombineErrors(errs ...error) error
- func CreateAutonomousBackup(kubeClient client.Client, backupName string, ...) error
- func CreateSecret(kubeClient client.Client, namespace string, name string, ...) error
- func FetchAutonomousDatabaseBackups(kubeClient client.Client, namespace string, adbName string) (*dbv4.AutonomousDatabaseBackupList, error)
- func FetchAutonomousDatabaseWithOCID(kubeClient client.Client, namespace string, ocid string) (*dbv4.AutonomousDatabase, error)
- func FetchConfigMap(kubeClient client.Client, namespace string, name string) (*corev1.ConfigMap, error)
- func FetchResource(kubeClient client.Client, namespace string, name string, object client.Object) error
- func FetchSecret(kubeClient client.Client, namespace string, name string) (*corev1.Secret, error)
- func GetSecretValue(kubeClient client.Client, namespace string, name string, key string) (string, error)
- func NewOwnerReference(owner client.Object) []metav1.OwnerReference
- func Patch(kubeClient client.Client, obj client.Object, path string, value interface{}) error
- func RemoveFinalizerAndPatch(kubeClient client.Client, obj client.Object, finalizer string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizerAndPatch ¶
func CombineErrors ¶
func CreateAutonomousBackup ¶
func CreateAutonomousBackup(kubeClient client.Client, backupName string, backupSummary database.AutonomousDatabaseBackupSummary, ownerAdb *dbv4.AutonomousDatabase) error
func CreateSecret ¶
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 FetchResource ¶
func FetchSecret ¶
func GetSecretValue ¶
func NewOwnerReference ¶
func NewOwnerReference(owner client.Object) []metav1.OwnerReference
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.