apply

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lister

type Lister func(cli client.Client) ([]Object, error)

Lister Get the current objects

type Object

type Object interface {
	metav1.Object
	runtime.Object
}

Object interface

type Option

type Option func(o *options)

Option is some configuration that modifies options for a apply.

func DanglingPolicy

func DanglingPolicy(policy string) Option

DanglingPolicy specify a policy for handling dangling cr

func List

func List(lister Lister) Option

List Set the function to get the object.

func SetOwnerReferences

func SetOwnerReferences(refs []metav1.OwnerReference) Option

SetOwnerReferences set OwnerReferences

type Syncer

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

Syncer synchronize the current state to the desired state

func New

func New(cli client.Client) *Syncer

New Syncer

func (*Syncer) Apply

func (syncer *Syncer) Apply(objs []Object, applyOptions ...Option) error

Apply perform synchronization operations

Jump to

Keyboard shortcuts

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