Documentation ¶
Index ¶
- func ApplyObjects(ctx context.Context, logger *logrus.Entry, recorder record.EventRecorder, ...) error
- func CreateOrUpdate(ctx context.Context, recorder record.EventRecorder, dyn dynamic.Interface, ...) error
- func RenderKubernetesResourcesFor(logger *logrus.Entry, backup domain.Renderable) ([]unstructured.Unstructured, error)
- func RenderKubernetesResourcesForOperation(logger *logrus.Entry, backup domain.Renderable, operation domain.Operation, ...) ([]unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyObjects ¶
func ApplyObjects(ctx context.Context, logger *logrus.Entry, recorder record.EventRecorder, restCfg *rest.Config, dynClient dynamic.Interface, backup domain.Renderable) error
ApplyObjects is applying objects to the cluster, while adding necessary metadata
func CreateOrUpdate ¶
func CreateOrUpdate( ctx context.Context, recorder record.EventRecorder, dyn dynamic.Interface, restCfg *rest.Config, obj *unstructured.Unstructured, backup runtime.Object, ) error
func RenderKubernetesResourcesFor ¶
func RenderKubernetesResourcesFor(logger *logrus.Entry, backup domain.Renderable) ([]unstructured.Unstructured, error)
func RenderKubernetesResourcesForOperation ¶
func RenderKubernetesResourcesForOperation(logger *logrus.Entry, backup domain.Renderable, operation domain.Operation, acceptedResourceTypes domain.ResourceTypes) ([]unstructured.Unstructured, error)
RenderKubernetesResourcesForOperation is rendering Kubernetes resources like CronJob, Job, Secret, ConfigMap using Backup Maker Generator (BMG), which is using Helm under the hood
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.