Skip to content

Commit

Permalink
fix typo (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavnagaraj authored Oct 27, 2021
1 parent 0bb9db5 commit 8bf5674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1alpha4/maascluster_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8bf5674

Please sign in to comment.