Skip to content

Commit 8bf5674

Browse files
fix typo (#30)
1 parent 0bb9db5 commit 8bf5674

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/v1alpha4/maascluster_webhook.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package v1alpha4
1818

1919
import (
2020
"fmt"
21+
2122
apierrors "k8s.io/apimachinery/pkg/api/errors"
2223
"k8s.io/apimachinery/pkg/runtime"
2324
ctrl "sigs.k8s.io/controller-runtime"
@@ -58,7 +59,7 @@ func (r *MaasCluster) ValidateUpdate(old runtime.Object) error {
5859
maasclusterlog.Info("validate update", "name", r.Name)
5960
oldC, ok := old.(*MaasCluster)
6061
if !ok {
61-
return apierrors.NewBadRequest(fmt.Sprintf("expected an AWSCluster but got a %T", old))
62+
return apierrors.NewBadRequest(fmt.Sprintf("expected a MaasCluster but got a %T", old))
6263
}
6364

6465
if r.Spec.DNSDomain != oldC.Spec.DNSDomain {

0 commit comments

Comments
 (0)