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) 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) VersionedClusterTaskSet(ctx context.Context, comp v1alpha1.TektonComponent, customName string, ...) 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) 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.