We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb9db5 commit 8bf5674Copy full SHA for 8bf5674
api/v1alpha4/maascluster_webhook.go
@@ -18,6 +18,7 @@ package v1alpha4
18
19
import (
20
"fmt"
21
+
22
apierrors "k8s.io/apimachinery/pkg/api/errors"
23
"k8s.io/apimachinery/pkg/runtime"
24
ctrl "sigs.k8s.io/controller-runtime"
@@ -58,7 +59,7 @@ func (r *MaasCluster) ValidateUpdate(old runtime.Object) error {
58
59
maasclusterlog.Info("validate update", "name", r.Name)
60
oldC, ok := old.(*MaasCluster)
61
if !ok {
- 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))
63
}
64
65
if r.Spec.DNSDomain != oldC.Spec.DNSDomain {
0 commit comments