clusterresource

package
v1.9.22 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrategicMergeFrom

func StrategicMergeFrom(obj runtime.Object) client.Patch

StrategicMergeFrom creates a Patch using the strategic-merge-patch strategy with the given object as base.

Types

type Controller

type Controller interface {
	Sync(ctx context.Context) error
	Run()
}

The clusterresource Controller manages applying desired templatized kubernetes resource files as resources in the execution kubernetes cluster.

func NewClusterResourceController

func NewClusterResourceController(adminDataProvider interfaces.FlyteAdminDataProvider, listTargets executionclusterIfaces.ListTargetsInterface, scope promutils.Scope) Controller

func NewClusterResourceControllerFromConfig

func NewClusterResourceControllerFromConfig(ctx context.Context, scope promutils.Scope, configuration runtimeInterfaces.Configuration) (Controller, error)

type FileName

type FileName = string

type NamespaceCache

type NamespaceCache = map[NamespaceName]TemplateChecksums

type NamespaceName

type NamespaceName = string

type ResourceSyncStats

type ResourceSyncStats struct {
	Created      int
	Updated      int
	AlreadyThere int
	Errored      int
}

ResourceSyncStats is a simple struct to track the number of resources created, updated, already there, and errored

func (*ResourceSyncStats) Add

func (m *ResourceSyncStats) Add(other ResourceSyncStats)

Add adds the values of the other ResourceSyncStats to this one

type TemplateChecksums

type TemplateChecksums = map[FileName][16]byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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