Documentation ¶
Index ¶
- type ODLMOperator
- func (m *ODLMOperator) GetClusterServiceVersion(ctx context.Context, sub *olmv1alpha1.Subscription) (*olmv1alpha1.ClusterServiceVersion, error)
- func (m *ODLMOperator) GetOperandConfig(ctx context.Context, key types.NamespacedName) (*apiv1alpha1.OperandConfig, error)
- func (m *ODLMOperator) GetOperandRegistry(ctx context.Context, key types.NamespacedName) (*apiv1alpha1.OperandRegistry, error)
- func (m *ODLMOperator) GetOperandRequest(ctx context.Context, key types.NamespacedName) (*apiv1alpha1.OperandRequest, error)
- func (m *ODLMOperator) GetOperatorNamespace(installMode, namespace string) string
- func (m *ODLMOperator) GetSubscription(ctx context.Context, name, namespace string, packageName ...string) (*olmv1alpha1.Subscription, error)
- func (m *ODLMOperator) ListOperandRequests(ctx context.Context, label map[string]string) (*apiv1alpha1.OperandRequestList, error)
- func (m *ODLMOperator) ListOperandRequestsByConfig(ctx context.Context, key types.NamespacedName) (requestList []apiv1alpha1.OperandRequest, err error)
- func (m *ODLMOperator) ListOperandRequestsByRegistry(ctx context.Context, key types.NamespacedName) (requestList []apiv1alpha1.OperandRequest, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ODLMOperator ¶
type ODLMOperator struct { client.Client *rest.Config Recorder record.EventRecorder Scheme *runtime.Scheme }
ODLMOperator is the struct for ODLM controllers
func NewODLMOperator ¶
func NewODLMOperator(mgr manager.Manager, name string) *ODLMOperator
NewODLMOperator is the method to initialize an Operator struct
func (*ODLMOperator) GetClusterServiceVersion ¶
func (m *ODLMOperator) GetClusterServiceVersion(ctx context.Context, sub *olmv1alpha1.Subscription) (*olmv1alpha1.ClusterServiceVersion, error)
GetClusterServiceVersion gets the ClusterServiceVersion from the subscription
func (*ODLMOperator) GetOperandConfig ¶
func (m *ODLMOperator) GetOperandConfig(ctx context.Context, key types.NamespacedName) (*apiv1alpha1.OperandConfig, error)
GetOperandConfig gets the OperandConfig
func (*ODLMOperator) GetOperandRegistry ¶
func (m *ODLMOperator) GetOperandRegistry(ctx context.Context, key types.NamespacedName) (*apiv1alpha1.OperandRegistry, error)
GetOperandRegistry gets the OperandRegistry instance with default value
func (*ODLMOperator) GetOperandRequest ¶
func (m *ODLMOperator) GetOperandRequest(ctx context.Context, key types.NamespacedName) (*apiv1alpha1.OperandRequest, error)
GetOperandRequest gets OperandRequest
func (*ODLMOperator) GetOperatorNamespace ¶
func (m *ODLMOperator) GetOperatorNamespace(installMode, namespace string) string
GetOperatorNamespace returns the operator namespace based on the install mode
func (*ODLMOperator) GetSubscription ¶
func (m *ODLMOperator) GetSubscription(ctx context.Context, name, namespace string, packageName ...string) (*olmv1alpha1.Subscription, error)
GetSubscription gets Subscription from a name
func (*ODLMOperator) ListOperandRequests ¶
func (m *ODLMOperator) ListOperandRequests(ctx context.Context, label map[string]string) (*apiv1alpha1.OperandRequestList, error)
ListOperandRequests list all the OperandRequests with specific label
func (*ODLMOperator) ListOperandRequestsByConfig ¶
func (m *ODLMOperator) ListOperandRequestsByConfig(ctx context.Context, key types.NamespacedName) (requestList []apiv1alpha1.OperandRequest, err error)
ListOperandRequestsByConfig list all the OperandRequests using the specific OperandConfig
func (*ODLMOperator) ListOperandRequestsByRegistry ¶
func (m *ODLMOperator) ListOperandRequestsByRegistry(ctx context.Context, key types.NamespacedName) (requestList []apiv1alpha1.OperandRequest, err error)
ListOperandRequestsByRegistry list all the OperandRequests using the specific OperandRegistry