Documentation ¶
Index ¶
- Variables
- func CleanUpObsoleteResources(ctx context.Context, client clientset.Interface, createdBy string) error
- func CurrentInstallerSetName(ctx context.Context, client clientset.Interface, labelSelector string) (string, error)
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- func NewExtendedController() injection.ControllerConstructor
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
var (
ConsoleYAMLSamplePred = mf.ByKind("ConsoleYAMLSample")
)
Functions ¶
func CleanUpObsoleteResources ¶ added in v0.55.0
func CleanUpObsoleteResources(ctx context.Context, client clientset.Interface, createdBy string) error
CleanUpObsoleteResources cleans up obsolete resources this is required because after TektonInstallerSet were introduced it was observed that during upgrade multiple installerSets were getting created now that we have label based query and we have new labels this cleanup is just to make sure we delete all older installerSets from the cluster
func CurrentInstallerSetName ¶ added in v0.55.0
func NewController ¶
NewController initializes the controller and is called by the generated code Registers eventhandlers to enqueue events
func NewExtendedController ¶
func NewExtendedController() injection.ControllerConstructor
NewExtendedController returns a controller extended to a specific platform
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements controller.Reconciler for TektonInstallerSet resources.
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, installerSet *v1alpha1.TektonInstallerSet) pkgreconciler.Event
FinalizeKind removes all resources after deletion of a TektonInstallerSet.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, installerSet *v1alpha1.TektonInstallerSet) pkgreconciler.Event
ReconcileKind compares the actual state with the desired, and attempts to converge the two.