Skip to content

Commit

Permalink
Fix Class
Browse files Browse the repository at this point in the history
Signed-off-by: Dinar Valeev <[email protected]>
  • Loading branch information
k0da committed Jan 24, 2025
1 parent c578f8e commit 10edcdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
)

// SetupWebhookWithManager will setup the webhooks for the AWSManagedControlPlane.
// SetupWebhookWithManager will setup the webhooks for the AWSManagedControlPlaneTemplate.
func (rt *AWSManagedControlPlaneTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error {
return ctrl.NewWebhookManagedBy(mgr).
For(rt).
Expand Down
4 changes: 2 additions & 2 deletions exp/api/v1beta2/awsmanagedmachinepooltemplate_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func (rt *AWSManagedMachinePoolTemplate) SetupWebhookWithManager(mgr ctrl.Manage
// +kubebuilder:webhook:verbs=create;update,path=/validate-infrastructure-cluster-x-k8s-io-v1beta2-awsmanagedmachinepooltemplate,mutating=false,failurePolicy=fail,matchPolicy=Equivalent,groups=infrastructure.cluster.x-k8s.io,resources=awsmanagedmachinepooltemplates,versions=v1beta2,name=validation.awsmanagedmachinepooltemplate.infrastructure.cluster.x-k8s.io,sideEffects=None,admissionReviewVersions=v1;v1beta1
// +kubebuilder:webhook:verbs=create;update,path=/mutate-infrastructure-cluster-x-k8s-io-v1beta2-awsmanagedmachinepooltemplate,mutating=true,failurePolicy=fail,matchPolicy=Equivalent,groups=infrastructure.cluster.x-k8s.io,resources=awsmanagedmachinepooltemplates,versions=v1beta2,name=default.awsmanagedmachinepooltemplate.infrastructure.cluster.x-k8s.io,sideEffects=None,admissionReviewVersions=v1;v1beta1

var _ webhook.Defaulter = &AWSManagedMachinePool{}
var _ webhook.Validator = &AWSManagedMachinePool{}
var _ webhook.Defaulter = &AWSManagedMachinePoolTemplate{}
var _ webhook.Validator = &AWSManagedMachinePoolTemplate{}

// ValidateCreate will do any extra validation when creating a AWSManagedMachinePoolTemplate.
func (rt *AWSManagedMachinePoolTemplate) ValidateCreate() (admission.Warnings, error) {
Expand Down

0 comments on commit 10edcdd

Please sign in to comment.