Documentation
¶
Index ¶
- Constants
- func SetupTemporalClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupTemporalNamespaceWebhookWithManager(mgr ctrl.Manager) error
- func SetupTemporalSearchAttributeWebhookWithManager(mgr ctrl.Manager) error
- type TemporalClusterCustomDefaulter
- type TemporalClusterCustomValidator
- func (v *TemporalClusterCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TemporalClusterCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TemporalClusterCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type TemporalNamespaceCustomValidator
- func (v *TemporalNamespaceCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TemporalNamespaceCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TemporalNamespaceCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type TemporalSearchAttributeCustomValidator
- func (v *TemporalSearchAttributeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TemporalSearchAttributeCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TemporalSearchAttributeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
const InitialShardsAnnotation = "temporal.bmor10.com/initial-shards"
InitialShardsAnnotation records the numHistoryShards value chosen at creation time. It is the source of truth for the shard-count immutability check.
Variables ¶
This section is empty.
Functions ¶
func SetupTemporalClusterWebhookWithManager ¶
SetupTemporalClusterWebhookWithManager registers the webhook for TemporalCluster in the manager.
func SetupTemporalNamespaceWebhookWithManager ¶
SetupTemporalNamespaceWebhookWithManager registers the webhook for TemporalNamespace in the manager.
func SetupTemporalSearchAttributeWebhookWithManager ¶
SetupTemporalSearchAttributeWebhookWithManager registers the webhook for TemporalSearchAttribute in the manager.
Types ¶
type TemporalClusterCustomDefaulter ¶
type TemporalClusterCustomDefaulter struct{}
TemporalClusterCustomDefaulter sets default values on TemporalCluster resources.
type TemporalClusterCustomValidator ¶
type TemporalClusterCustomValidator struct{}
TemporalClusterCustomValidator validates TemporalCluster resources.
func (*TemporalClusterCustomValidator) ValidateCreate ¶
func (v *TemporalClusterCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator.
func (*TemporalClusterCustomValidator) ValidateDelete ¶
func (v *TemporalClusterCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator.
func (*TemporalClusterCustomValidator) ValidateUpdate ¶
func (v *TemporalClusterCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator.
type TemporalNamespaceCustomValidator ¶
type TemporalNamespaceCustomValidator struct {
}
TemporalNamespaceCustomValidator struct is responsible for validating the TemporalNamespace 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 (*TemporalNamespaceCustomValidator) ValidateCreate ¶
func (v *TemporalNamespaceCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type TemporalNamespace.
func (*TemporalNamespaceCustomValidator) ValidateDelete ¶
func (v *TemporalNamespaceCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type TemporalNamespace.
func (*TemporalNamespaceCustomValidator) ValidateUpdate ¶
func (v *TemporalNamespaceCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type TemporalNamespace.
type TemporalSearchAttributeCustomValidator ¶
type TemporalSearchAttributeCustomValidator struct {
}
TemporalSearchAttributeCustomValidator struct is responsible for validating the TemporalSearchAttribute 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 (*TemporalSearchAttributeCustomValidator) ValidateCreate ¶
func (v *TemporalSearchAttributeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type TemporalSearchAttribute.
func (*TemporalSearchAttributeCustomValidator) ValidateDelete ¶
func (v *TemporalSearchAttributeCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type TemporalSearchAttribute.
func (*TemporalSearchAttributeCustomValidator) ValidateUpdate ¶
func (v *TemporalSearchAttributeCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type TemporalSearchAttribute.