Documentation ¶
Index ¶
- Constants
- Variables
- type AdoptionReconciler
- func (r *AdoptionReconciler) ReconcileClusterServiceVersion(ctx context.Context, req ctrl.Request) (reconcile.Result, error)
- func (r *AdoptionReconciler) ReconcileSubscription(ctx context.Context, req ctrl.Request) (reconcile.Result, error)
- func (r *AdoptionReconciler) SetupWithManager(mgr ctrl.Manager) error
- type OperatorConditionGeneratorReconciler
- type OperatorConditionReconciler
- type OperatorReconciler
Constants ¶
const (
OperatorConditionEnvVarKey = "OPERATOR_CONDITION_NAME"
)
Variables ¶
var (
// AddToScheme adds all types necessary for the controller to operate.
AddToScheme = localSchemeBuilder.AddToScheme
)
Functions ¶
This section is empty.
Types ¶
type AdoptionReconciler ¶
AdoptionReconciler automagically associates Operator components with their respective operator resource.
func NewAdoptionReconciler ¶
func NewAdoptionReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*AdoptionReconciler, error)
NewAdoptionReconciler constructs and returns an AdoptionReconciler. As a side effect, the given scheme has operator discovery types added to it.
func (*AdoptionReconciler) ReconcileClusterServiceVersion ¶
func (r *AdoptionReconciler) ReconcileClusterServiceVersion(ctx context.Context, req ctrl.Request) (reconcile.Result, error)
ReconcileClusterServiceVersion projects the component labels of a given CSV onto all resources owned by it.
func (*AdoptionReconciler) ReconcileSubscription ¶
func (r *AdoptionReconciler) ReconcileSubscription(ctx context.Context, req ctrl.Request) (reconcile.Result, error)
ReconcileSubscription labels the CSVs installed by a Subscription as components of an operator named after the subscribed package and install namespace.
func (*AdoptionReconciler) SetupWithManager ¶
func (r *AdoptionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds the operator reconciler to the given controller manager.
type OperatorConditionGeneratorReconciler ¶ added in v0.18.0
type OperatorConditionGeneratorReconciler struct { Client client.Client // contains filtered or unexported fields }
OperatorConditionGeneratorReconciler reconciles a ClusterServiceVersion object and creates an OperatorCondition.
func NewOperatorConditionGeneratorReconciler ¶ added in v0.18.0
func NewOperatorConditionGeneratorReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*OperatorConditionGeneratorReconciler, error)
NewOperatorConditionGeneratorReconciler constructs and returns an OperatorConditionGeneratorReconciler. As a side effect, the given scheme has operator discovery types added to it.
func (*OperatorConditionGeneratorReconciler) SetupWithManager ¶ added in v0.18.0
func (r *OperatorConditionGeneratorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds the OperatorCondition Reconciler reconciler to the given controller manager.
type OperatorConditionReconciler ¶ added in v0.18.0
OperatorConditionReconciler reconciles an OperatorCondition object.
func NewOperatorConditionReconciler ¶ added in v0.18.0
func NewOperatorConditionReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*OperatorConditionReconciler, error)
NewOperatorConditionReconciler constructs and returns an OperatorConditionReconciler. As a side effect, the given scheme has operator discovery types added to it.
func (*OperatorConditionReconciler) SetupWithManager ¶ added in v0.18.0
func (r *OperatorConditionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds the OperatorCondition Reconciler reconciler to the given controller manager.
type OperatorReconciler ¶
OperatorReconciler reconciles a Operator object.
func NewOperatorReconciler ¶
func NewOperatorReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*OperatorReconciler, error)
NewOperatorReconciler constructs and returns an OperatorReconciler. As a side effect, the given scheme has operator discovery types added to it.
func (*OperatorReconciler) SetupWithManager ¶
func (r *OperatorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds the operator reconciler to the given controller manager.