Skip to content

Commit 10edcdd

Browse files
committed
Fix Class
Signed-off-by: Dinar Valeev <[email protected]>
1 parent c578f8e commit 10edcdd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

controlplane/eks/api/v1beta2/awsmanagedcontrolplanetemplate_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
2929
)
3030

31-
// SetupWebhookWithManager will setup the webhooks for the AWSManagedControlPlane.
31+
// SetupWebhookWithManager will setup the webhooks for the AWSManagedControlPlaneTemplate.
3232
func (rt *AWSManagedControlPlaneTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error {
3333
return ctrl.NewWebhookManagedBy(mgr).
3434
For(rt).

exp/api/v1beta2/awsmanagedmachinepooltemplate_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func (rt *AWSManagedMachinePoolTemplate) SetupWebhookWithManager(mgr ctrl.Manage
3737
// +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
3838
// +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
3939

40-
var _ webhook.Defaulter = &AWSManagedMachinePool{}
41-
var _ webhook.Validator = &AWSManagedMachinePool{}
40+
var _ webhook.Defaulter = &AWSManagedMachinePoolTemplate{}
41+
var _ webhook.Validator = &AWSManagedMachinePoolTemplate{}
4242

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

0 commit comments

Comments
 (0)