Documentation ¶
Index ¶
- Constants
- Variables
- type FilterAndTransform
- type InstallerSetClient
- func (i *InstallerSetClient) CleanupAllCustomSet(ctx context.Context) error
- func (i *InstallerSetClient) CleanupCustomSet(ctx context.Context, customName string) error
- func (i *InstallerSetClient) CleanupMainSet(ctx context.Context) error
- func (i *InstallerSetClient) CleanupPostSet(ctx context.Context) error
- func (i *InstallerSetClient) CleanupPreSet(ctx context.Context) error
- func (i *InstallerSetClient) CleanupSet(ctx context.Context, setType string) error
- func (i *InstallerSetClient) CustomSet(ctx context.Context, comp v1alpha1.TektonComponent, customName string, ...) error
- func (i *InstallerSetClient) ListCustomSet(ctx context.Context, labelSelector string) (*v1alpha1.TektonInstallerSetList, error)
- func (i *InstallerSetClient) MainSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, ...) error
- func (i *InstallerSetClient) PostSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, ...) error
- func (i *InstallerSetClient) PreSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, ...) error
- func (i *InstallerSetClient) RemoveObsoleteSets(ctx context.Context) error
- func (i *InstallerSetClient) VersionedTaskSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, ...) error
- type Metrics
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 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, customLabels map[string]string) error
func (*InstallerSetClient) ListCustomSet ¶ added in v0.70.0
func (i *InstallerSetClient) ListCustomSet(ctx context.Context, labelSelector string) (*v1alpha1.TektonInstallerSetList, error)
ListCustomSet return the lists of custom sets with the provided labelSelector
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) VersionedTaskSet ¶ added in v0.72.0
func (i *InstallerSetClient) VersionedTaskSet(ctx context.Context, comp v1alpha1.TektonComponent, manifest *mf.Manifest, filterAndTransform FilterAndTransform, insType, insName string) error
VersionedTaskSet 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.