Documentation
¶
Index ¶
- func ResolveRetryPolicy(cfg *config.ControllerConfig, policy *bubuv1alpha1.RetryPolicy) *bubuv1alpha1.RetryPolicy
- type EngramCustomDefaulter
- type EngramCustomValidator
- func (v *EngramCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *EngramCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *EngramCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type EngramWebhook
- type ImpulseCustomDefaulter
- type ImpulseCustomValidator
- func (v *ImpulseCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ImpulseCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ImpulseCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ImpulseWebhook
- type StoryCustomDefaulter
- type StoryCustomValidator
- func (v *StoryCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *StoryCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *StoryCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type StoryWebhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveRetryPolicy ¶ added in v0.1.3
func ResolveRetryPolicy(cfg *config.ControllerConfig, policy *bubuv1alpha1.RetryPolicy) *bubuv1alpha1.RetryPolicy
ResolveRetryPolicy applies controller defaults to a retry policy when it is omitted.
Types ¶
type EngramCustomDefaulter ¶
type EngramCustomDefaulter struct {
}
EngramCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Engram when those are created or updated.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.
type EngramCustomValidator ¶
type EngramCustomValidator struct {
Client client.Client
Config *config.ControllerConfig
}
EngramCustomValidator struct is responsible for validating the Engram resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*EngramCustomValidator) ValidateCreate ¶
func (v *EngramCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Engram.
func (*EngramCustomValidator) ValidateDelete ¶
func (v *EngramCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Engram.
func (*EngramCustomValidator) ValidateUpdate ¶
func (v *EngramCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Engram.
type EngramWebhook ¶
type EngramWebhook struct {
client.Client
Config *config.ControllerConfig
}
func (*EngramWebhook) SetupWebhookWithManager ¶
func (wh *EngramWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager registers the webhook for Engram in the manager.
type ImpulseCustomDefaulter ¶
type ImpulseCustomDefaulter struct {
}
ImpulseCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Impulse when those are created or updated.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.
type ImpulseCustomValidator ¶
type ImpulseCustomValidator struct {
Client client.Client
Config *config.ControllerConfig
}
ImpulseCustomValidator struct is responsible for validating the Impulse resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*ImpulseCustomValidator) ValidateCreate ¶
func (v *ImpulseCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Impulse.
func (*ImpulseCustomValidator) ValidateDelete ¶
func (v *ImpulseCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Impulse.
func (*ImpulseCustomValidator) ValidateUpdate ¶
func (v *ImpulseCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Impulse.
type ImpulseWebhook ¶
type ImpulseWebhook struct {
client.Client
Config *config.ControllerConfig
}
func (*ImpulseWebhook) SetupWebhookWithManager ¶
func (wh *ImpulseWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager registers the webhook for Impulse in the manager.
type StoryCustomDefaulter ¶
type StoryCustomDefaulter struct {
Config *config.ControllerConfig
ConfigManager *config.OperatorConfigManager
}
StoryCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Story when those are created or updated.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.
type StoryCustomValidator ¶
type StoryCustomValidator struct {
Client client.Client
Config *config.ControllerConfig
ConfigManager *config.OperatorConfigManager
}
StoryCustomValidator struct is responsible for validating the Story resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*StoryCustomValidator) ValidateCreate ¶
func (v *StoryCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Story.
func (*StoryCustomValidator) ValidateDelete ¶
func (v *StoryCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Story.
func (*StoryCustomValidator) ValidateUpdate ¶
func (v *StoryCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Story.
type StoryWebhook ¶
type StoryWebhook struct {
client.Client
Config *config.ControllerConfig
ConfigManager *config.OperatorConfigManager
}
StoryWebhook sets up the webhook for Story in the manager.
func (*StoryWebhook) SetupWebhookWithManager ¶
func (wh *StoryWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager registers the webhook for Story in the manager.