client

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

View Source
const (
	InstallerSubTypeStatic     = "static"
	InstallerSubTypeDeployment = "deployment"

	InstallerTypeMain   = "main"
	InstallerTypePre    = "pre"
	InstallerTypePost   = "post"
	InstallerTypeCustom = "custom"
)

Variables

View Source
var (
	ErrInvalidState        = fmt.Errorf("installer sets in invalid state")
	ErrNotFound            = fmt.Errorf("installer sets not found")
	ErrVersionDifferent    = fmt.Errorf("installer sets release version doesn't match")
	ErrNsDifferent         = fmt.Errorf("installer sets target namespace doesn't match")
	ErrUpdateRequired      = fmt.Errorf("installer sets needs to be updated")
	ErrSetsInDeletionState = fmt.Errorf("installer sets are in deletion state, will come back")
)

Functions

This section is empty.

Types

type FilterAndTransform

type FilterAndTransform func(ctx context.Context, manifest *mf.Manifest, comp v1alpha1.TektonComponent) (*mf.Manifest, error)

type InstallerSetClient

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

func NewInstallerSetClient

func NewInstallerSetClient(clientSet clientSet.TektonInstallerSetInterface, releaseVersion, componentVersion string, resourceKind string, metrics Metrics) *InstallerSetClient

func (*InstallerSetClient) CleanupAllCustomSet

func (i *InstallerSetClient) CleanupAllCustomSet(ctx context.Context) error

func (*InstallerSetClient) CleanupCustomSet

func (i *InstallerSetClient) CleanupCustomSet(ctx context.Context, customName string) error

func (*InstallerSetClient) CleanupMainSet

func (i *InstallerSetClient) CleanupMainSet(ctx context.Context) error

func (*InstallerSetClient) CleanupPostSet

func (i *InstallerSetClient) CleanupPostSet(ctx context.Context) error

func (*InstallerSetClient) CleanupPreSet

func (i *InstallerSetClient) CleanupPreSet(ctx context.Context) error

func (*InstallerSetClient) CleanupSet

func (i *InstallerSetClient) CleanupSet(ctx context.Context, setType string) error

func (*InstallerSetClient) CustomSet

func (i *InstallerSetClient) CustomSet(ctx context.Context, comp v1alpha1.TektonComponent, customName string, manifest *mf.Manifest, filterAndTransform FilterAndTransform) error

func (*InstallerSetClient) MainSet

func (i *InstallerSetClient) MainSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, filterAndTransform FilterAndTransform) error

func (*InstallerSetClient) PostSet

func (i *InstallerSetClient) PostSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, filterAndTransform FilterAndTransform) error

func (*InstallerSetClient) PreSet

func (i *InstallerSetClient) PreSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, filterAndTransform FilterAndTransform) error

func (*InstallerSetClient) RemoveObsoleteSets

func (i *InstallerSetClient) RemoveObsoleteSets(ctx context.Context) error

func (*InstallerSetClient) VersionedClusterTaskSet

func (i *InstallerSetClient) VersionedClusterTaskSet(ctx context.Context, comp v1alpha1.TektonComponent, customName string, manifest *mf.Manifest, filterAndTransform FilterAndTransform) error

VersionedClusterTaskSet this is an exception case where we create one installer set for one minor version not for patch version and we don't remove older installer sets on upgrade, hence keeping it different from custom set otherwise code becomes unnecessarily complex to handle this case

type Metrics

type Metrics interface {
	LogMetrics(string, string, *zap.SugaredLogger)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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