controllers

package
v0.0.0-...-a955d6c Latest Latest
Warning

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

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

Documentation

Index

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

func CacheCreator

func CacheCreator(conf *rest.Config, opts cache.Options) (cache.Cache, error)

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 (*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) Reconcile

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

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 NewInstanceBindingControllerManager

func NewInstanceBindingControllerManager(ctx context.Context, client client.Client, scheme *runtime.Scheme, cfg *rest.Config) *InstanceBindingControllerManager

func (*InstanceBindingControllerManager) DisableSISBController

func (r *InstanceBindingControllerManager) DisableSISBController()

func (*InstanceBindingControllerManager) EnableSISBController

func (r *InstanceBindingControllerManager) EnableSISBController()

type InstanceBindingSerivce

type InstanceBindingSerivce interface {
	DisableSISBController()
	EnableSISBController()
}

type ServiceInstanceReconciler

type ServiceInstanceReconciler struct {
	client.Client
	*rest.Config
	Scheme *runtime.Scheme
}

ServiceInstanceReconciler reconciles a BtpOperator object in case of service instance changes

func NewServiceInstanceReconciler

func NewServiceInstanceReconciler(client client.Client, scheme *runtime.Scheme) *ServiceInstanceReconciler

func (*ServiceInstanceReconciler) Reconcile

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

Jump to

Keyboard shortcuts

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