bmg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

README

BMG - Backup Maker Generator

Applies a set of objects like kind: CronJob, kind: Job, kind: ConfigMap and kind: Secret to the cluster as a conversion from CRD.

Documentation

Index

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.

Jump to

Keyboard shortcuts

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