diff --git a/pkg/addon/utils.go b/pkg/addon/utils.go index 1ed123f5e..f32633564 100644 --- a/pkg/addon/utils.go +++ b/pkg/addon/utils.go @@ -531,10 +531,10 @@ func validateAddonPackage(addonPkg *InstallPackage) error { return fmt.Errorf("the addon package doesn't have `metadata.yaml`") } if addonPkg.Name == "" { - return fmt.Errorf("`matadata.yaml` must define the name of addon") + return fmt.Errorf("`metadata.yaml` must define the name of addon") } if addonPkg.Version == "" { - return fmt.Errorf("`matadata.yaml` must define the version of addon") + return fmt.Errorf("`metadata.yaml` must define the version of addon") } return nil } diff --git a/pkg/addon/utils_test.go b/pkg/addon/utils_test.go index 07fec6c93..d2f0d8a1d 100644 --- a/pkg/addon/utils_test.go +++ b/pkg/addon/utils_test.go @@ -468,10 +468,10 @@ func TestCheckAddonPackageValid(t *testing.T) { err: fmt.Errorf("the addon package doesn't have `metadata.yaml`"), }, { testCase: Meta{Version: "v1.4.0"}, - err: fmt.Errorf("`matadata.yaml` must define the name of addon"), + err: fmt.Errorf("`metadata.yaml` must define the name of addon"), }, { testCase: Meta{Name: "test-addon"}, - err: fmt.Errorf("`matadata.yaml` must define the version of addon"), + err: fmt.Errorf("`metadata.yaml` must define the version of addon"), }, { testCase: Meta{Name: "test-addon", Version: "1.4.5"}, err: nil,