controller

package
v0.0.0-...-5d653f6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 59 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatherJob

type GatherJob struct {
	config.Controller
	InsightsConfigEnabled bool
}

GatherJob is the type responsible for controlling a non-periodic Gather execution

func (*GatherJob) Gather

func (g *GatherJob) Gather(ctx context.Context, kubeConfig, protoKubeConfig *rest.Config) error

Gather runs a single gather and stores the generated archive, without uploading it. 1. Creates the necessary configs/clients 2. Creates the configobserver to get more configs 3. Initiates the recorder 4. Executes a Gather 5. Flushes the results

func (*GatherJob) GatherAndUpload

func (g *GatherJob) GatherAndUpload(kubeConfig, protoKubeConfig *rest.Config) error

GatherAndUpload runs a single gather and stores the generated archive, uploads it. 1. Prepare the necessary kube configs 2. Get the corresponding "datagathers.insights.openshift.io" resource 3. Create all the gatherers 4. Run data gathering 5. Record the data into the Insights archive 6. Get the latest archive and upload it 7. Updates the status of the corresponding "datagathers.insights.openshift.io" resource continuously

type Operator

type Operator struct {
	config.Controller
}

Operator is the type responsible for controlling the start-up of the Insights Operator

func (*Operator) Run

func (s *Operator) Run(ctx context.Context, controller *controllercmd.ControllerContext) error

Run starts the Insights Operator: 1. Gets/Creates the necessary configs/clients 2. Starts the configobserver and status reporter 3. Initiates the recorder and starts the periodic record pruneing 4. Starts the periodic gathering 5. Creates the insights-client and starts uploader and reporter

type TechPreviewInformers

type TechPreviewInformers struct {
	JobInformer                periodic.JobWatcher
	InsightsDataGatherObserver configobserver.InsightsDataGatherObserver
	DataGatherInformer         periodic.DataGatherInformer
}

TechPreviewInformers holds all informers needed for TechPreview functionality when the InsightsConfig feature gate is enabled.

Directories

Path Synopsis
Package runtimeextractor manages the lifecycle of the runtime-extractor deployment based on the DisableRuntimeExtractor configuration option.
Package runtimeextractor manages the lifecycle of the runtime-extractor deployment based on the DisableRuntimeExtractor configuration option.

Jump to

Keyboard shortcuts

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