service

package
v0.0.0-...-c71c742 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchBackupCR

func FetchBackupCR(name, namespace string, client client.Client) (*v1alpha1.Backup, error)

func FetchConfigMap

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

FetchSecret returns the ConfigMap resource with the name in the namespace

func FetchCronJob

func FetchCronJob(name, namespace string, client client.Client) (*v1beta1.CronJob, error)

FetchCronJob returns the CronJob resource with the name in the namespace

func FetchDatabaseCR

func FetchDatabaseCR(name, namespace string, client client.Client) (*v1alpha1.Database, error)

Request object not found, could have been deleted after reconcile request. Owned objects are automatically garbage collected. For additional cleanup logic use finalizers.

func FetchDatabasePod

func FetchDatabasePod(bkp *v1alpha1.Backup, db *v1alpha1.Database, client client.Client) (*corev1.Pod, error)

FetchDatabasePod search in the cluster for 1 Pod managed by the Database Controller

func FetchDatabaseService

func FetchDatabaseService(bkp *v1alpha1.Backup, db *v1alpha1.Database, client client.Client) (*corev1.Service, error)

FetchDatabaseService search in the cluster for 1 Service managed by the Database Controller

func FetchDeployment

func FetchDeployment(name, namespace string, client client.Client) (*appsv1.Deployment, error)

FetchService returns the Deployment resource with the name in the namespace

func FetchPersistentVolumeClaim

func FetchPersistentVolumeClaim(name, namespace string, client client.Client) (*corev1.PersistentVolumeClaim, error)

FetchPersistentVolumeClaim returns the PersistentVolumeClaim resource with the name in the namespace

func FetchSecret

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

FetchSecret returns the Secret resource with the name in the namespace

func FetchService

func FetchService(name, namespace string, client client.Client) (*corev1.Service, error)

FetchService returns the Service resource with the name in the namespace

func Watch

func Watch(c controller.Controller, obj runtime.Object, isConttroller bool, owner runtime.Object) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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