Documentation ¶
Index ¶
- Constants
- func AddControllerEnv(controllerEnvs []corev1.EnvVar) mf.Transformer
- func GenerateSigningSecrets(ctx context.Context) map[string][]byte
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- func NewExtendedController(generator common.ExtensionGenerator) injection.ControllerConstructor
- type Reconciler
- type Recorder
Constants ¶
View Source
const (
// Chains ConfigMap
ChainsConfig = "chains-config"
)
Variables ¶
This section is empty.
Functions ¶
func AddControllerEnv ¶ added in v0.68.0
func AddControllerEnv(controllerEnvs []corev1.EnvVar) mf.Transformer
func GenerateSigningSecrets ¶ added in v0.74.0
func NewController ¶
NewController initializes the controller and is called by the generated code Registers eventhandlers to enqueue events
func NewExtendedController ¶
func NewExtendedController(generator common.ExtensionGenerator) 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 TektonChain resources.
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, original *v1alpha1.TektonChain) pkgreconciler.Event
FinalizeKind removes all resources after deletion of a TektonChain.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, tc *v1alpha1.TektonChain) pkgreconciler.Event
ReconcileKind compares the actual state with the desired, and attempts to converge the two.
type Recorder ¶ added in v0.68.0
Recorder holds keys for Tekton metrics
func NewRecorder ¶ added in v0.68.0
NewRecorder creates a new metrics recorder instance to log the PipelineRun related metrics
func (*Recorder) Count ¶ added in v0.68.0
func (r *Recorder) Count(version string, spec v1alpha1.TektonChainSpec) error
Logs when chains is reconciled with version and config labels.
func (*Recorder) LogMetrics ¶ added in v0.68.0
func (m *Recorder) LogMetrics(version string, spec v1alpha1.TektonChainSpec, logger *zap.SugaredLogger)
Click to show internal directories.
Click to hide internal directories.