sync

package
v0.0.0-...-be4e7bc Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: EPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

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

Syncer synchronized K8s objects with the cluster

func New

func New(client client.Client, scheme *runtime.Scheme) Syncer

func (*Syncer) Delete

func (s *Syncer) Delete(ctx context.Context, object client.Object) error

Delete deletes the supplied object from the cluster.

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, owner client.Object, blueprint client.Object, diffOpts cmp.Option) (bool, client.Object, error)

Sync syncs the blueprint to the cluster in a generic (as much as Go allows) manner. Returns true if the object was created or updated, false if there was no change detected.

Jump to

Keyboard shortcuts

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