From b54f444198b10766fbdd08c33c1227b9eb8b500a Mon Sep 17 00:00:00 2001 From: Andrea Mazzotti Date: Thu, 23 May 2024 10:46:54 +0200 Subject: [PATCH] Fix wrong comment reference Signed-off-by: Andrea Mazzotti --- bootstrap/api/v1beta2/kthreesconfigtemplate_webhook.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap/api/v1beta2/kthreesconfigtemplate_webhook.go b/bootstrap/api/v1beta2/kthreesconfigtemplate_webhook.go index 5c1d001b..f6bc6cc6 100644 --- a/bootstrap/api/v1beta2/kthreesconfigtemplate_webhook.go +++ b/bootstrap/api/v1beta2/kthreesconfigtemplate_webhook.go @@ -24,7 +24,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook/admission" ) -// SetupWebhookWithManager will setup the webhooks for the KThreesControlPlane. +// SetupWebhookWithManager will setup the webhooks for the KThreesConfigTemplate. func (c *KThreesConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error { return ctrl.NewWebhookManagedBy(mgr). For(c). @@ -39,12 +39,12 @@ func (c *KThreesConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error var _ admission.CustomDefaulter = &KThreesConfigTemplate{} var _ admission.CustomValidator = &KThreesConfigTemplate{} -// ValidateCreate will do any extra validation when creating a KThreesControlPlane. +// ValidateCreate will do any extra validation when creating a KThreesConfigTemplate. func (c *KThreesConfigTemplate) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error) { return []string{}, nil } -// ValidateUpdate will do any extra validation when updating a KThreesControlPlane. +// ValidateUpdate will do any extra validation when updating a KThreesConfigTemplate. func (c *KThreesConfigTemplate) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error) { return []string{}, nil } @@ -54,7 +54,7 @@ func (c *KThreesConfigTemplate) ValidateDelete(_ context.Context, _ runtime.Obje return []string{}, nil } -// Default will set default values for the KThreesControlPlane. +// Default will set default values for the KThreesConfigTemplate. func (c *KThreesConfigTemplate) Default(_ context.Context, _ runtime.Object) error { return nil }