Documentation ¶
Index ¶
- Variables
- func CacheCreator(conf *rest.Config, opts cache.Options) (cache.Cache, error)
- type BtpOperatorReconciler
- func (r *BtpOperatorReconciler) GvkToList(gvk schema.GroupVersionKind) *unstructured.UnstructuredList
- func (r *BtpOperatorReconciler) HandleDeletingState(ctx context.Context, cr *v1alpha1.BtpOperator) error
- func (r *BtpOperatorReconciler) HandleErrorState(ctx context.Context, cr *v1alpha1.BtpOperator) error
- func (r *BtpOperatorReconciler) HandleInitialState(ctx context.Context, cr *v1alpha1.BtpOperator) error
- func (r *BtpOperatorReconciler) HandleProcessingState(ctx context.Context, cr *v1alpha1.BtpOperator) error
- func (r *BtpOperatorReconciler) HandleReadyState(ctx context.Context, cr *v1alpha1.BtpOperator) error
- func (r *BtpOperatorReconciler) HandleRedundantCR(ctx context.Context, oldestCr *v1alpha1.BtpOperator, cr *v1alpha1.BtpOperator) error
- func (r *BtpOperatorReconciler) HandleWarningState(ctx context.Context, cr *v1alpha1.BtpOperator) (ctrl.Result, error)
- func (r *BtpOperatorReconciler) IsForceDelete(cr *v1alpha1.BtpOperator) bool
- func (r *BtpOperatorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *BtpOperatorReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *BtpOperatorReconciler) UpdateBtpOperatorStatus(ctx context.Context, cr *v1alpha1.BtpOperator, newState v1alpha1.State, ...) error
- type ErrorWithReason
- type InstanceBindingControllerManager
- type InstanceBindingSerivce
- type ServiceInstanceReconciler
- func (r *ServiceInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ServiceInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *ServiceInstanceReconciler) UpdateBtpOperatorStatus(ctx context.Context, cr *v1alpha1.BtpOperator, newState v1alpha1.State, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChartNamespace = "kyma-system" SecretName = "sap-btp-manager" ConfigName = "sap-btp-manager" DeploymentName = "sap-btp-operator-controller-manager" ProcessingStateRequeueInterval = time.Minute * 5 ReadyStateRequeueInterval = time.Minute * 15 ReadyTimeout = time.Minute * 1 ReadyCheckInterval = time.Second * 1 HardDeleteTimeout = time.Minute * 20 HardDeleteCheckInterval = time.Second * 10 DeleteRequestTimeout = time.Minute * 5 StatusUpdateTimeout = time.Second * 10 StatusUpdateCheckInterval = time.Millisecond * 500 ChartPath = "./module-chart/chart" ResourcesPath = "./module-resources" )
Configuration options that can be overwritten either by CLI parameter or ConfigMap
View Source
var ( CaSecret = "ca-server-cert" WebhookSecret = "webhook-server-cert" CaCertificateExpiration = time.Hour * 87600 // 10 years WebhookCertificateExpiration = time.Hour * 8760 // 1 year ExpirationBoundary = time.Hour * -168 // 1 week CaSecretDataPrefix = "ca" WebhookSecretDataPrefix = "tls" CertificatePostfix = "crt" RsaKeyPostfix = "key" MutatingWebhookConfiguration = "MutatingWebhookConfiguration" ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration" )
Functions ¶
Types ¶
type BtpOperatorReconciler ¶
type BtpOperatorReconciler struct { client.Client *rest.Config Scheme *runtime.Scheme // contains filtered or unexported fields }
BtpOperatorReconciler reconciles a BtpOperator object
func NewBtpOperatorReconciler ¶
func NewBtpOperatorReconciler(client client.Client, scheme *runtime.Scheme, instanceBindingSerivice InstanceBindingSerivce, metrics *metrics.Metrics) *BtpOperatorReconciler
func (*BtpOperatorReconciler) GvkToList ¶
func (r *BtpOperatorReconciler) GvkToList(gvk schema.GroupVersionKind) *unstructured.UnstructuredList
func (*BtpOperatorReconciler) HandleDeletingState ¶
func (r *BtpOperatorReconciler) HandleDeletingState(ctx context.Context, cr *v1alpha1.BtpOperator) error
func (*BtpOperatorReconciler) HandleErrorState ¶
func (r *BtpOperatorReconciler) HandleErrorState(ctx context.Context, cr *v1alpha1.BtpOperator) error
func (*BtpOperatorReconciler) HandleInitialState ¶
func (r *BtpOperatorReconciler) HandleInitialState(ctx context.Context, cr *v1alpha1.BtpOperator) error
func (*BtpOperatorReconciler) HandleProcessingState ¶
func (r *BtpOperatorReconciler) HandleProcessingState(ctx context.Context, cr *v1alpha1.BtpOperator) error
func (*BtpOperatorReconciler) HandleReadyState ¶
func (r *BtpOperatorReconciler) HandleReadyState(ctx context.Context, cr *v1alpha1.BtpOperator) error
func (*BtpOperatorReconciler) HandleRedundantCR ¶
func (r *BtpOperatorReconciler) HandleRedundantCR(ctx context.Context, oldestCr *v1alpha1.BtpOperator, cr *v1alpha1.BtpOperator) error
func (*BtpOperatorReconciler) HandleWarningState ¶
func (r *BtpOperatorReconciler) HandleWarningState(ctx context.Context, cr *v1alpha1.BtpOperator) (ctrl.Result, error)
func (*BtpOperatorReconciler) IsForceDelete ¶
func (r *BtpOperatorReconciler) IsForceDelete(cr *v1alpha1.BtpOperator) bool
func (*BtpOperatorReconciler) SetupWithManager ¶
func (r *BtpOperatorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*BtpOperatorReconciler) UpdateBtpOperatorStatus ¶
func (r *BtpOperatorReconciler) UpdateBtpOperatorStatus(ctx context.Context, cr *v1alpha1.BtpOperator, newState v1alpha1.State, reason conditions.Reason, message string) error
type ErrorWithReason ¶
type ErrorWithReason struct {
// contains filtered or unexported fields
}
func NewErrorWithReason ¶
func NewErrorWithReason(reason conditions.Reason, message string) *ErrorWithReason
func (*ErrorWithReason) Error ¶
func (e *ErrorWithReason) Error() string
type InstanceBindingControllerManager ¶
type InstanceBindingControllerManager struct { client.Client *rest.Config Scheme *runtime.Scheme // contains filtered or unexported fields }
InstanceBindingControllerManager runs and stops the ServiceInstance controller
func (*InstanceBindingControllerManager) DisableSISBController ¶
func (r *InstanceBindingControllerManager) DisableSISBController()
func (*InstanceBindingControllerManager) EnableSISBController ¶
func (r *InstanceBindingControllerManager) EnableSISBController()
type InstanceBindingSerivce ¶
type InstanceBindingSerivce interface { DisableSISBController() EnableSISBController() }
type ServiceInstanceReconciler ¶
ServiceInstanceReconciler reconciles a BtpOperator object in case of service instance changes
func NewServiceInstanceReconciler ¶
func NewServiceInstanceReconciler(client client.Client, scheme *runtime.Scheme) *ServiceInstanceReconciler
func (*ServiceInstanceReconciler) SetupWithManager ¶
func (r *ServiceInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*ServiceInstanceReconciler) UpdateBtpOperatorStatus ¶
func (r *ServiceInstanceReconciler) UpdateBtpOperatorStatus(ctx context.Context, cr *v1alpha1.BtpOperator, newState v1alpha1.State, reason conditions.Reason, message string) error
Click to show internal directories.
Click to hide internal directories.