Documentation ¶
Index ¶
- type TemporalClusterWebhook
- func (w *TemporalClusterWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *TemporalClusterWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (w *TemporalClusterWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *TemporalClusterWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *TemporalClusterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type TemporalWorkerProcessWebhook
- func (w *TemporalWorkerProcessWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *TemporalWorkerProcessWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (w *TemporalWorkerProcessWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *TemporalWorkerProcessWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *TemporalWorkerProcessWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemporalClusterWebhook ¶
type TemporalClusterWebhook struct {
AvailableAPIs *discovery.AvailableAPIs
}
TemporalClusterWebhook provides endpoints to validate and set default fields values for TemporalCluster objects.
func (*TemporalClusterWebhook) SetupWebhookWithManager ¶
func (w *TemporalClusterWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*TemporalClusterWebhook) ValidateCreate ¶
func (w *TemporalClusterWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate ensures the user is creating a consistent temporal cluster.
func (*TemporalClusterWebhook) ValidateDelete ¶
func (w *TemporalClusterWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete does nothing.
func (*TemporalClusterWebhook) ValidateUpdate ¶
func (w *TemporalClusterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates TemporalCluster updates. It mainly check for sequential version upgrades.
type TemporalWorkerProcessWebhook ¶
type TemporalWorkerProcessWebhook struct { AvailableAPIs *discovery.AvailableAPIs client.Client }
TemporalWorkerProcessWebhook provides endpoints to validate and set default fields values for TemporalWorkerProcess objects.
func (*TemporalWorkerProcessWebhook) Default ¶
Default ensures empty fields have their default value.
func (*TemporalWorkerProcessWebhook) SetupWebhookWithManager ¶
func (w *TemporalWorkerProcessWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*TemporalWorkerProcessWebhook) ValidateCreate ¶
func (w *TemporalWorkerProcessWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate ensures the user is creating a consistent temporal cluster.
func (*TemporalWorkerProcessWebhook) ValidateDelete ¶
func (w *TemporalWorkerProcessWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete does nothing.
func (*TemporalWorkerProcessWebhook) ValidateUpdate ¶
func (w *TemporalWorkerProcessWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates TemporalWorkerProcess updates. It mainly check for sequential version upgrades.