Documentation
¶
Index ¶
- type AccessManagementValidator
- func (*AccessManagementValidator) Default(_ context.Context, am *kcmv1.AccessManagement) error
- func (v *AccessManagementValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *AccessManagementValidator) ValidateCreate(ctx context.Context, am *kcmv1.AccessManagement) (admission.Warnings, error)
- func (v *AccessManagementValidator) ValidateDelete(ctx context.Context, _ *kcmv1.AccessManagement) (admission.Warnings, error)
- func (v *AccessManagementValidator) ValidateUpdate(_ context.Context, _, newAM *kcmv1.AccessManagement) (admission.Warnings, error)
- type ClusterAuditPolicyValidator
- func (v *ClusterAuditPolicyValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (*ClusterAuditPolicyValidator) ValidateCreate(_ context.Context, obj *kcmv1.ClusterAuditPolicy) (admission.Warnings, error)
- func (v *ClusterAuditPolicyValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ClusterAuditPolicy) (admission.Warnings, error)
- func (*ClusterAuditPolicyValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ClusterAuditPolicy) (admission.Warnings, error)
- type ClusterAuthenticationValidator
- func (v *ClusterAuthenticationValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *ClusterAuthenticationValidator) ValidateCreate(ctx context.Context, obj *kcmv1.ClusterAuthentication) (admission.Warnings, error)
- func (v *ClusterAuthenticationValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ClusterAuthentication) (admission.Warnings, error)
- func (v *ClusterAuthenticationValidator) ValidateUpdate(ctx context.Context, _, newObj *kcmv1.ClusterAuthentication) (admission.Warnings, error)
- type ClusterDeploymentValidator
- func (v *ClusterDeploymentValidator) Default(ctx context.Context, clusterDeployment *kcmv1.ClusterDeployment) error
- func (v *ClusterDeploymentValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *ClusterDeploymentValidator) ValidateCreate(ctx context.Context, clusterDeployment *kcmv1.ClusterDeployment) (admission.Warnings, error)
- func (v *ClusterDeploymentValidator) ValidateDelete(ctx context.Context, clusterDeployment *kcmv1.ClusterDeployment) (admission.Warnings, error)
- func (v *ClusterDeploymentValidator) ValidateUpdate(ctx context.Context, ...) (admission.Warnings, error)
- type ClusterTemplateChainValidator
- func (in *ClusterTemplateChainValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (in *ClusterTemplateChainValidator) ValidateCreate(ctx context.Context, obj *kcmv1.ClusterTemplateChain) (admission.Warnings, error)
- func (*ClusterTemplateChainValidator) ValidateDelete(_ context.Context, _ *kcmv1.ClusterTemplateChain) (admission.Warnings, error)
- func (*ClusterTemplateChainValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ClusterTemplateChain) (admission.Warnings, error)
- type ClusterTemplateValidator
- func (*ClusterTemplateValidator) Default(_ context.Context, obj *kcmv1.ClusterTemplate) error
- func (v *ClusterTemplateValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (*ClusterTemplateValidator) ValidateCreate(_ context.Context, _ *kcmv1.ClusterTemplate) (admission.Warnings, error)
- func (v *ClusterTemplateValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ClusterTemplate) (admission.Warnings, error)
- func (*ClusterTemplateValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ClusterTemplate) (admission.Warnings, error)
- type ManagementValidator
- func (v *ManagementValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *ManagementValidator) ValidateCreate(ctx context.Context, obj *kcmv1.Management) (admission.Warnings, error)
- func (v *ManagementValidator) ValidateDelete(ctx context.Context, _ *kcmv1.Management) (admission.Warnings, error)
- func (v *ManagementValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *kcmv1.Management) (admission.Warnings, error)
- type ProviderTemplateValidator
- func (*ProviderTemplateValidator) Default(_ context.Context, obj *kcmv1.ProviderTemplate) error
- func (v *ProviderTemplateValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (*ProviderTemplateValidator) ValidateCreate(_ context.Context, _ *kcmv1.ProviderTemplate) (admission.Warnings, error)
- func (v *ProviderTemplateValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ProviderTemplate) (admission.Warnings, error)
- func (*ProviderTemplateValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ProviderTemplate) (admission.Warnings, error)
- type RegionValidator
- func (v *RegionValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *RegionValidator) ValidateCreate(ctx context.Context, obj *kcmv1.Region) (admission.Warnings, error)
- func (v *RegionValidator) ValidateDelete(ctx context.Context, obj *kcmv1.Region) (admission.Warnings, error)
- func (v *RegionValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *kcmv1.Region) (admission.Warnings, error)
- type ReleaseValidator
- func (v *ReleaseValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (*ReleaseValidator) ValidateCreate(_ context.Context, _ *kcmv1.Release) (admission.Warnings, error)
- func (v *ReleaseValidator) ValidateDelete(ctx context.Context, obj *kcmv1.Release) (admission.Warnings, error)
- func (*ReleaseValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.Release) (admission.Warnings, error)
- type ServiceTemplateChainValidator
- func (in *ServiceTemplateChainValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (in *ServiceTemplateChainValidator) ValidateCreate(ctx context.Context, obj *kcmv1.ServiceTemplateChain) (admission.Warnings, error)
- func (*ServiceTemplateChainValidator) ValidateDelete(_ context.Context, _ *kcmv1.ServiceTemplateChain) (admission.Warnings, error)
- func (*ServiceTemplateChainValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ServiceTemplateChain) (admission.Warnings, error)
- type ServiceTemplateValidator
- func (*ServiceTemplateValidator) Default(_ context.Context, obj *kcmv1.ServiceTemplate) error
- func (v *ServiceTemplateValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (*ServiceTemplateValidator) ValidateCreate(_ context.Context, _ *kcmv1.ServiceTemplate) (admission.Warnings, error)
- func (v *ServiceTemplateValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ServiceTemplate) (admission.Warnings, error)
- func (*ServiceTemplateValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ServiceTemplate) (admission.Warnings, error)
- type TemplateValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessManagementValidator ¶
type AccessManagementValidator struct {
client.Client
// RESTMapper is used to resolve the scope (namespaced vs cluster-scoped) of a
// ResourceRule's Kind at admission time. Populated by SetupWebhookWithManager; left unset
// only in tests that don't exercise the scope check.
RESTMapper apimeta.RESTMapper
SystemNamespace string
}
AccessManagementValidator validates and defaults AccessManagement objects.
Its Default method also carries the automatic migration of the deprecated one-field-per-Kind AccessRule selectors (ClusterTemplateChains, ServiceTemplateChains, Credentials, ClusterAuthentications, DataSources, ClusterAuditPolicies) into the generic Resources field, so existing manifests keep working unmodified while the controller only ever has to deal with the new shape.
func (*AccessManagementValidator) Default ¶
func (*AccessManagementValidator) Default(_ context.Context, am *kcmv1.AccessManagement) error
Default implements webhook.Defaulter so a webhook will be registered for the type.
It migrates any deprecated one-field-per-Kind AccessRule selectors still populated into equivalent Resources entries, and defaults the APIVersion of Resources entries that omit it. Re-running against an already-migrated object is a no-op.
func (*AccessManagementValidator) SetupWebhookWithManager ¶
func (v *AccessManagementValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*AccessManagementValidator) ValidateCreate ¶
func (v *AccessManagementValidator) ValidateCreate(ctx context.Context, am *kcmv1.AccessManagement) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*AccessManagementValidator) ValidateDelete ¶
func (v *AccessManagementValidator) ValidateDelete(ctx context.Context, _ *kcmv1.AccessManagement) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*AccessManagementValidator) ValidateUpdate ¶
func (v *AccessManagementValidator) ValidateUpdate(_ context.Context, _, newAM *kcmv1.AccessManagement) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ClusterAuditPolicyValidator ¶ added in v1.10.0
func (*ClusterAuditPolicyValidator) SetupWebhookWithManager ¶ added in v1.10.0
func (v *ClusterAuditPolicyValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterAuditPolicyValidator) ValidateCreate ¶ added in v1.10.0
func (*ClusterAuditPolicyValidator) ValidateCreate(_ context.Context, obj *kcmv1.ClusterAuditPolicy) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ClusterAuditPolicyValidator) ValidateDelete ¶ added in v1.10.0
func (v *ClusterAuditPolicyValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ClusterAuditPolicy) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClusterAuditPolicyValidator) ValidateUpdate ¶ added in v1.10.0
func (*ClusterAuditPolicyValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ClusterAuditPolicy) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ClusterAuthenticationValidator ¶ added in v1.6.0
func (*ClusterAuthenticationValidator) SetupWebhookWithManager ¶ added in v1.6.0
func (v *ClusterAuthenticationValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterAuthenticationValidator) ValidateCreate ¶ added in v1.6.0
func (v *ClusterAuthenticationValidator) ValidateCreate(ctx context.Context, obj *kcmv1.ClusterAuthentication) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterAuthenticationValidator) ValidateDelete ¶ added in v1.6.0
func (v *ClusterAuthenticationValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ClusterAuthentication) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterAuthenticationValidator) ValidateUpdate ¶ added in v1.6.0
func (v *ClusterAuthenticationValidator) ValidateUpdate(ctx context.Context, _, newObj *kcmv1.ClusterAuthentication) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ClusterDeploymentValidator ¶
type ClusterDeploymentValidator struct {
client.Client
SystemNamespace string
ValidateClusterUpgradePath bool
}
func (*ClusterDeploymentValidator) Default ¶
func (v *ClusterDeploymentValidator) Default(ctx context.Context, clusterDeployment *kcmv1.ClusterDeployment) error
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*ClusterDeploymentValidator) SetupWebhookWithManager ¶
func (v *ClusterDeploymentValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterDeploymentValidator) ValidateCreate ¶
func (v *ClusterDeploymentValidator) ValidateCreate(ctx context.Context, clusterDeployment *kcmv1.ClusterDeployment) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterDeploymentValidator) ValidateDelete ¶
func (v *ClusterDeploymentValidator) ValidateDelete(ctx context.Context, clusterDeployment *kcmv1.ClusterDeployment) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterDeploymentValidator) ValidateUpdate ¶
func (v *ClusterDeploymentValidator) ValidateUpdate(ctx context.Context, oldClusterDeployment, newClusterDeployment *kcmv1.ClusterDeployment) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ClusterTemplateChainValidator ¶
func (*ClusterTemplateChainValidator) SetupWebhookWithManager ¶
func (in *ClusterTemplateChainValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterTemplateChainValidator) ValidateCreate ¶
func (in *ClusterTemplateChainValidator) ValidateCreate(ctx context.Context, obj *kcmv1.ClusterTemplateChain) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterTemplateChainValidator) ValidateDelete ¶
func (*ClusterTemplateChainValidator) ValidateDelete(_ context.Context, _ *kcmv1.ClusterTemplateChain) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterTemplateChainValidator) ValidateUpdate ¶
func (*ClusterTemplateChainValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ClusterTemplateChain) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ClusterTemplateValidator ¶
type ClusterTemplateValidator struct {
TemplateValidator
}
func (*ClusterTemplateValidator) Default ¶
func (*ClusterTemplateValidator) Default(_ context.Context, obj *kcmv1.ClusterTemplate) error
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*ClusterTemplateValidator) SetupWebhookWithManager ¶
func (v *ClusterTemplateValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterTemplateValidator) ValidateCreate ¶
func (*ClusterTemplateValidator) ValidateCreate(_ context.Context, _ *kcmv1.ClusterTemplate) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterTemplateValidator) ValidateDelete ¶
func (v *ClusterTemplateValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ClusterTemplate) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ClusterTemplateValidator) ValidateUpdate ¶
func (*ClusterTemplateValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ClusterTemplate) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ManagementValidator ¶
func (*ManagementValidator) SetupWebhookWithManager ¶
func (v *ManagementValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ManagementValidator) ValidateCreate ¶
func (v *ManagementValidator) ValidateCreate(ctx context.Context, obj *kcmv1.Management) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ManagementValidator) ValidateDelete ¶
func (v *ManagementValidator) ValidateDelete(ctx context.Context, _ *kcmv1.Management) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ManagementValidator) ValidateUpdate ¶
func (v *ManagementValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *kcmv1.Management) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ProviderTemplateValidator ¶
type ProviderTemplateValidator struct {
TemplateValidator
}
func (*ProviderTemplateValidator) Default ¶
func (*ProviderTemplateValidator) Default(_ context.Context, obj *kcmv1.ProviderTemplate) error
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*ProviderTemplateValidator) SetupWebhookWithManager ¶
func (v *ProviderTemplateValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ProviderTemplateValidator) ValidateCreate ¶
func (*ProviderTemplateValidator) ValidateCreate(_ context.Context, _ *kcmv1.ProviderTemplate) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ProviderTemplateValidator) ValidateDelete ¶
func (v *ProviderTemplateValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ProviderTemplate) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ProviderTemplateValidator) ValidateUpdate ¶
func (*ProviderTemplateValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ProviderTemplate) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type RegionValidator ¶ added in v1.5.0
func (*RegionValidator) SetupWebhookWithManager ¶ added in v1.5.0
func (v *RegionValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*RegionValidator) ValidateCreate ¶ added in v1.5.0
func (v *RegionValidator) ValidateCreate(ctx context.Context, obj *kcmv1.Region) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*RegionValidator) ValidateDelete ¶ added in v1.5.0
func (v *RegionValidator) ValidateDelete(ctx context.Context, obj *kcmv1.Region) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*RegionValidator) ValidateUpdate ¶ added in v1.5.0
func (v *RegionValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *kcmv1.Region) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ReleaseValidator ¶
func (*ReleaseValidator) SetupWebhookWithManager ¶
func (v *ReleaseValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*ReleaseValidator) ValidateCreate ¶
func (*ReleaseValidator) ValidateCreate(_ context.Context, _ *kcmv1.Release) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ReleaseValidator) ValidateDelete ¶
func (v *ReleaseValidator) ValidateDelete(ctx context.Context, obj *kcmv1.Release) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ReleaseValidator) ValidateUpdate ¶
func (*ReleaseValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.Release) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ServiceTemplateChainValidator ¶
func (*ServiceTemplateChainValidator) SetupWebhookWithManager ¶
func (in *ServiceTemplateChainValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ServiceTemplateChainValidator) ValidateCreate ¶
func (in *ServiceTemplateChainValidator) ValidateCreate(ctx context.Context, obj *kcmv1.ServiceTemplateChain) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ServiceTemplateChainValidator) ValidateDelete ¶
func (*ServiceTemplateChainValidator) ValidateDelete(_ context.Context, _ *kcmv1.ServiceTemplateChain) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ServiceTemplateChainValidator) ValidateUpdate ¶
func (*ServiceTemplateChainValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ServiceTemplateChain) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type ServiceTemplateValidator ¶
type ServiceTemplateValidator struct {
TemplateValidator
}
func (*ServiceTemplateValidator) Default ¶
func (*ServiceTemplateValidator) Default(_ context.Context, obj *kcmv1.ServiceTemplate) error
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*ServiceTemplateValidator) SetupWebhookWithManager ¶
func (v *ServiceTemplateValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ServiceTemplateValidator) ValidateCreate ¶
func (*ServiceTemplateValidator) ValidateCreate(_ context.Context, _ *kcmv1.ServiceTemplate) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*ServiceTemplateValidator) ValidateDelete ¶
func (v *ServiceTemplateValidator) ValidateDelete(ctx context.Context, obj *kcmv1.ServiceTemplate) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*ServiceTemplateValidator) ValidateUpdate ¶
func (*ServiceTemplateValidator) ValidateUpdate(_ context.Context, _, _ *kcmv1.ServiceTemplate) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.