Documentation
¶
Index ¶
- Constants
- func SetupTemporalClusterConnectionWebhookWithManager(mgr ctrl.Manager) error
- func SetupTemporalClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupTemporalNamespaceWebhookWithManager(mgr ctrl.Manager) error
- func SetupTemporalScheduleWebhookWithManager(mgr ctrl.Manager) error
- func SetupTemporalSearchAttributeWebhookWithManager(mgr ctrl.Manager) error
- type TemporalClusterConnectionCustomValidator
- func (v *TemporalClusterConnectionCustomValidator) ValidateCreate(_ context.Context, c *temporalv1alpha1.TemporalClusterConnection) (admission.Warnings, error)
- func (v *TemporalClusterConnectionCustomValidator) ValidateDelete(_ context.Context, _ *temporalv1alpha1.TemporalClusterConnection) (admission.Warnings, error)
- func (v *TemporalClusterConnectionCustomValidator) ValidateUpdate(_ context.Context, _, newC *temporalv1alpha1.TemporalClusterConnection) (admission.Warnings, error)
- type TemporalClusterCustomDefaulter
- type TemporalClusterCustomValidator
- func (v *TemporalClusterCustomValidator) ValidateCreate(_ context.Context, cluster *temporalv1alpha1.TemporalCluster) (admission.Warnings, error)
- func (v *TemporalClusterCustomValidator) ValidateDelete(_ context.Context, cluster *temporalv1alpha1.TemporalCluster) (admission.Warnings, error)
- func (v *TemporalClusterCustomValidator) ValidateUpdate(_ context.Context, oldCluster, newCluster *temporalv1alpha1.TemporalCluster) (admission.Warnings, error)
- type TemporalNamespaceCustomValidator
- func (v *TemporalNamespaceCustomValidator) ValidateCreate(_ context.Context, temporalnamespace *temporalv1alpha1.TemporalNamespace) (admission.Warnings, error)
- func (v *TemporalNamespaceCustomValidator) ValidateDelete(_ context.Context, temporalnamespace *temporalv1alpha1.TemporalNamespace) (admission.Warnings, error)
- func (v *TemporalNamespaceCustomValidator) ValidateUpdate(_ context.Context, oldNS, newNS *temporalv1alpha1.TemporalNamespace) (admission.Warnings, error)
- type TemporalScheduleCustomValidator
- func (v *TemporalScheduleCustomValidator) ValidateCreate(_ context.Context, sched *temporalv1alpha1.TemporalSchedule) (admission.Warnings, error)
- func (v *TemporalScheduleCustomValidator) ValidateDelete(_ context.Context, _ *temporalv1alpha1.TemporalSchedule) (admission.Warnings, error)
- func (v *TemporalScheduleCustomValidator) ValidateUpdate(_ context.Context, oldSched, newSched *temporalv1alpha1.TemporalSchedule) (admission.Warnings, error)
- type TemporalSearchAttributeCustomValidator
- func (v *TemporalSearchAttributeCustomValidator) ValidateCreate(_ context.Context, ...) (admission.Warnings, error)
- func (v *TemporalSearchAttributeCustomValidator) ValidateDelete(_ context.Context, ...) (admission.Warnings, error)
- func (v *TemporalSearchAttributeCustomValidator) ValidateUpdate(_ context.Context, oldSA, newSA *temporalv1alpha1.TemporalSearchAttribute) (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 SetupTemporalClusterConnectionWebhookWithManager ¶ added in v0.9.0
SetupTemporalClusterConnectionWebhookWithManager registers the webhook for TemporalClusterConnection in the manager.
func SetupTemporalClusterWebhookWithManager ¶
SetupTemporalClusterWebhookWithManager registers the webhook for TemporalCluster in the manager.
func SetupTemporalNamespaceWebhookWithManager ¶
SetupTemporalNamespaceWebhookWithManager registers the webhook for TemporalNamespace in the manager.
func SetupTemporalScheduleWebhookWithManager ¶ added in v0.5.0
SetupTemporalScheduleWebhookWithManager registers the webhook for TemporalSchedule.
func SetupTemporalSearchAttributeWebhookWithManager ¶
SetupTemporalSearchAttributeWebhookWithManager registers the webhook for TemporalSearchAttribute in the manager.
Types ¶
type TemporalClusterConnectionCustomValidator ¶ added in v0.9.0
type TemporalClusterConnectionCustomValidator struct{}
TemporalClusterConnectionCustomValidator validates TemporalClusterConnection resources.
func (*TemporalClusterConnectionCustomValidator) ValidateCreate ¶ added in v0.9.0
func (v *TemporalClusterConnectionCustomValidator) ValidateCreate(_ context.Context, c *temporalv1alpha1.TemporalClusterConnection) (admission.Warnings, error)
ValidateCreate implements admission.Validator.
func (*TemporalClusterConnectionCustomValidator) ValidateDelete ¶ added in v0.9.0
func (v *TemporalClusterConnectionCustomValidator) ValidateDelete(_ context.Context, _ *temporalv1alpha1.TemporalClusterConnection) (admission.Warnings, error)
ValidateDelete implements admission.Validator.
func (*TemporalClusterConnectionCustomValidator) ValidateUpdate ¶ added in v0.9.0
func (v *TemporalClusterConnectionCustomValidator) ValidateUpdate(_ context.Context, _, newC *temporalv1alpha1.TemporalClusterConnection) (admission.Warnings, error)
ValidateUpdate implements admission.Validator.
type TemporalClusterCustomDefaulter ¶
type TemporalClusterCustomDefaulter struct{}
TemporalClusterCustomDefaulter sets default values on TemporalCluster resources.
func (*TemporalClusterCustomDefaulter) Default ¶
func (d *TemporalClusterCustomDefaulter) Default(_ context.Context, cluster *temporalv1alpha1.TemporalCluster) error
Default implements admission.Defaulter.
type TemporalClusterCustomValidator ¶
type TemporalClusterCustomValidator struct{}
TemporalClusterCustomValidator validates TemporalCluster resources.
func (*TemporalClusterCustomValidator) ValidateCreate ¶
func (v *TemporalClusterCustomValidator) ValidateCreate(_ context.Context, cluster *temporalv1alpha1.TemporalCluster) (admission.Warnings, error)
ValidateCreate implements admission.Validator.
func (*TemporalClusterCustomValidator) ValidateDelete ¶
func (v *TemporalClusterCustomValidator) ValidateDelete(_ context.Context, cluster *temporalv1alpha1.TemporalCluster) (admission.Warnings, error)
ValidateDelete implements admission.Validator.
func (*TemporalClusterCustomValidator) ValidateUpdate ¶
func (v *TemporalClusterCustomValidator) ValidateUpdate(_ context.Context, oldCluster, newCluster *temporalv1alpha1.TemporalCluster) (admission.Warnings, error)
ValidateUpdate implements admission.Validator.
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, temporalnamespace *temporalv1alpha1.TemporalNamespace) (admission.Warnings, error)
ValidateCreate implements admission.Validator so a webhook will be registered for the type TemporalNamespace.
func (*TemporalNamespaceCustomValidator) ValidateDelete ¶
func (v *TemporalNamespaceCustomValidator) ValidateDelete(_ context.Context, temporalnamespace *temporalv1alpha1.TemporalNamespace) (admission.Warnings, error)
ValidateDelete implements admission.Validator so a webhook will be registered for the type TemporalNamespace.
func (*TemporalNamespaceCustomValidator) ValidateUpdate ¶
func (v *TemporalNamespaceCustomValidator) ValidateUpdate(_ context.Context, oldNS, newNS *temporalv1alpha1.TemporalNamespace) (admission.Warnings, error)
ValidateUpdate implements admission.Validator so a webhook will be registered for the type TemporalNamespace.
type TemporalScheduleCustomValidator ¶ added in v0.5.0
type TemporalScheduleCustomValidator struct{}
TemporalScheduleCustomValidator validates TemporalSchedule resources.
func (*TemporalScheduleCustomValidator) ValidateCreate ¶ added in v0.5.0
func (v *TemporalScheduleCustomValidator) ValidateCreate(_ context.Context, sched *temporalv1alpha1.TemporalSchedule) (admission.Warnings, error)
func (*TemporalScheduleCustomValidator) ValidateDelete ¶ added in v0.5.0
func (v *TemporalScheduleCustomValidator) ValidateDelete(_ context.Context, _ *temporalv1alpha1.TemporalSchedule) (admission.Warnings, error)
func (*TemporalScheduleCustomValidator) ValidateUpdate ¶ added in v0.5.0
func (v *TemporalScheduleCustomValidator) ValidateUpdate(_ context.Context, oldSched, newSched *temporalv1alpha1.TemporalSchedule) (admission.Warnings, error)
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, temporalsearchattribute *temporalv1alpha1.TemporalSearchAttribute) (admission.Warnings, error)
ValidateCreate implements admission.Validator so a webhook will be registered for the type TemporalSearchAttribute.
func (*TemporalSearchAttributeCustomValidator) ValidateDelete ¶
func (v *TemporalSearchAttributeCustomValidator) ValidateDelete(_ context.Context, temporalsearchattribute *temporalv1alpha1.TemporalSearchAttribute) (admission.Warnings, error)
ValidateDelete implements admission.Validator so a webhook will be registered for the type TemporalSearchAttribute.
func (*TemporalSearchAttributeCustomValidator) ValidateUpdate ¶
func (v *TemporalSearchAttributeCustomValidator) ValidateUpdate(_ context.Context, oldSA, newSA *temporalv1alpha1.TemporalSearchAttribute) (admission.Warnings, error)
ValidateUpdate implements admission.Validator so a webhook will be registered for the type TemporalSearchAttribute.