Skip to content

Commit 4b19445

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

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

config/crd/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ patchesStrategicMerge:
3838
- patches/webhook_in_awsclusterroleidentities.yaml
3939
- patches/webhook_in_awsclustertemplates.yaml
4040
- patches/webhook_in_awsmanagedcontrolplanes.yaml
41-
- patches/webhook_in_awsmanagedcontrolplanetemplates.yaml
4241
- patches/webhook_in_eksconfigs.yaml
4342
- patches/webhook_in_eksconfigtemplates.yaml
4443
# +kubebuilder:scaffold:crdkustomizewebhookpatch

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)