controllers

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ServiceManagedByLabelValue = "ssp-operator-services"
	MetricsServiceName         = "ssp-operator-metrics"
	OperatorName               = "ssp-operator"
	ServiceControllerName      = "service-controller"
)
View Source
const (
	OlmNameLabel      = "olm.webhook-description-generate-name"
	OlmNameLabelValue = "validation.ssp.kubevirt.io"
)

Variables

This section is empty.

Functions

func CreateAndStartReconciler added in v0.16.2

func CreateAndStartReconciler(ctx context.Context, mgr controllerruntime.Manager) error

func CreateServiceController added in v0.16.0

func CreateServiceController(ctx context.Context, mgr ctrl.Manager) (*serviceReconciler, error)

func NewSspReconciler added in v0.13.0

func NewSspReconciler(client client.Client, uncachedReader client.Reader, infrastructureTopology osconfv1.TopologyMode, operands []operands.Operand, crdList crd_watch.CrdList) *sspReconciler

func ServiceObject added in v0.16.0

func ServiceObject(namespace string, appKubernetesPartOfValue string) *v1.Service

Types

type ControllerReconciler added in v0.17.0

type ControllerReconciler interface {
	reconcile.Reconciler

	Start(ctx context.Context, mgr ctrl.Manager) error
	Name() string
}

func NewWebhookConfigurationController added in v0.20.0

func NewWebhookConfigurationController(apiClient client.Client) ControllerReconciler

CreateWebhookConfigurationController creates a controller that watches ValidatingWebhookConfiguration created by OLM, and removes any namespaceSelector defined in it.

The OLM limits the webhook scope to the namespaces that are defined in the OperatorGroup by setting namespaceSelector in the ValidatingWebhookConfiguration. We would like our webhook to intercept requests from all namespaces.

The SSP operator already watches all ValidatingWebhookConfigurations, because of template validator operand, so this controller is not a performance issue.

type VmReconciler added in v0.18.3

type VmReconciler struct {
	// contains filtered or unexported fields
}

func CreateVmController added in v0.17.0

func CreateVmController(mgr ctrl.Manager) (*VmReconciler, error)

func (*VmReconciler) Name added in v0.18.3

func (r *VmReconciler) Name() string

func (*VmReconciler) Reconcile added in v0.18.3

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

func (*VmReconciler) Start added in v0.18.3

func (r *VmReconciler) Start(_ context.Context, mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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