applied

package
v0.10.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(plan apply.Plan, bd *fleet.BundleDeployment, ns string, objs ...runtime.Object) (apply.Plan, error)

Diff factors the bundledeployment's bundle diff patches into the plan from DryRun. This way, the status of the bundledeployment can be updated accurately.

func GetLabelsAndAnnotations

func GetLabelsAndAnnotations(setID string, owner runtime.Object) (map[string]string, map[string]string, error)

GetLabelsAndAnnotations returns the labels and annotations, like "objectset.rio.cattle.io/hash" and owners, to be able to use apply.DryRun

func GetSetID

func GetSetID(bundleID, labelPrefix, labelSuffix string) string

GetSetID constructs a identifier from the provided args, bundleID "fleet-agent" is special

Types

type Applied

type Applied struct {
	// contains filtered or unexported fields
}

func NewWithClient

func NewWithClient(config *rest.Config) (*Applied, error)

func (*Applied) DryRun

func (a *Applied) DryRun(defaultNS string, setID string, objs ...runtime.Object) (apply.Plan, error)

DryRun does a dry run of the apply to get the difference between the desired and live state. It needs a client. This adds the "objectset.rio.cattle.io/applied" annotation, which is used for tracking changes.

Jump to

Keyboard shortcuts

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