Documentation ¶
Index ¶
- Constants
- func CreateAndStartReconciler(ctx context.Context, mgr controllerruntime.Manager) error
- func CreateServiceController(ctx context.Context, mgr ctrl.Manager) (*serviceReconciler, error)
- func NewSspReconciler(client client.Client, uncachedReader client.Reader, ...) *sspReconciler
- func ServiceObject(namespace string, appKubernetesPartOfValue string) *v1.Service
- type ControllerReconciler
- type VmReconciler
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 NewSspReconciler ¶ added in v0.13.0
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
Click to show internal directories.
Click to hide internal directories.