controllers

package
v0.0.0-...-70aa31a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultManagedNamespace = "openshift-cloud-controller-manager"

	OpenshiftConfigNamespace        = "openshift-config"
	OpenshiftManagedConfigNamespace = "openshift-config-managed"
)
View Source
const (
	ReasonAsExpected          = "AsExpected"
	ReasonInitializing        = "Initializing"
	ReasonSyncing             = "SyncingResources"
	ReasonSyncFailed          = "SyncingFailed"
	ReasonPlatformTechPreview = "PlatformTechPreview"
)

The default set of status change reasons.

Variables

This section is empty.

Functions

func GetReleaseVersion

func GetReleaseVersion() string

GetReleaseVersion gets the release version string from the env

Types

type CloudConfigReconciler

type CloudConfigReconciler struct {
	ClusterOperatorStatusClient
	Scheme *runtime.Scheme
}

func (*CloudConfigReconciler) Reconcile

func (r *CloudConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*CloudConfigReconciler) SetupWithManager

func (r *CloudConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CloudOperatorReconciler

type CloudOperatorReconciler struct {
	ClusterOperatorStatusClient
	Scheme *runtime.Scheme

	ImagesFile        string
	FeatureGateAccess featuregates.FeatureGateAccess
	// contains filtered or unexported fields
}

CloudOperatorReconciler reconciles a ClusterOperator object

func (*CloudOperatorReconciler) Reconcile

Reconcile will process the cloud-controller-manager clusterOperator

func (*CloudOperatorReconciler) SetupWithManager

func (r *CloudOperatorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterOperatorStatusClient

type ClusterOperatorStatusClient struct {
	client.Client
	Recorder         record.EventRecorder
	ManagedNamespace string
	ReleaseVersion   string
}

type ObjectWatcher

type ObjectWatcher interface {
	Watch(ctx context.Context, obj client.Object) error
	EventStream() <-chan event.GenericEvent
}

func NewObjectWatcher

func NewObjectWatcher(opts WatcherOptions) (ObjectWatcher, error)

type TrustedCABundleReconciler

type TrustedCABundleReconciler struct {
	ClusterOperatorStatusClient
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*TrustedCABundleReconciler) Reconcile

func (*TrustedCABundleReconciler) SetupWithManager

func (r *TrustedCABundleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type WatcherOptions

type WatcherOptions struct {
	Cache  cache.Cache
	Scheme *runtime.Scheme
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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