From 8bf5674f2706fc35c12b77f2a46f6d8bdaadfa3b Mon Sep 17 00:00:00 2001 From: Abhinav Nagaraj <2302780+abhinavnagaraj@users.noreply.github.com> Date: Tue, 26 Oct 2021 21:17:32 -0700 Subject: [PATCH] fix typo (#30) --- api/v1alpha4/maascluster_webhook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1alpha4/maascluster_webhook.go b/api/v1alpha4/maascluster_webhook.go index 58d9426..3da75fd 100644 --- a/api/v1alpha4/maascluster_webhook.go +++ b/api/v1alpha4/maascluster_webhook.go @@ -18,6 +18,7 @@ package v1alpha4 import ( "fmt" + apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" @@ -58,7 +59,7 @@ func (r *MaasCluster) ValidateUpdate(old runtime.Object) error { maasclusterlog.Info("validate update", "name", r.Name) oldC, ok := old.(*MaasCluster) if !ok { - return apierrors.NewBadRequest(fmt.Sprintf("expected an AWSCluster but got a %T", old)) + return apierrors.NewBadRequest(fmt.Sprintf("expected a MaasCluster but got a %T", old)) } if r.Spec.DNSDomain != oldC.Spec.DNSDomain {