diff --git a/cmd/gator/sync/verify/verify.go b/cmd/gator/sync/verify/verify.go index ea703be7598..3964c1b38c3 100644 --- a/cmd/gator/sync/verify/verify.go +++ b/cmd/gator/sync/verify/verify.go @@ -50,14 +50,14 @@ func run(cmd *cobra.Command, args []string) { } if len(missingRequirements) > 0 { - cmdutils.ErrFatalf("The following requirements were not met: \n%v", resultsToString(missingRequirements)) + cmdutils.ErrFatalf("the following requirements were not met: \n%v", resultsToString(missingRequirements)) } if len(templateErrors) > 0 { - cmdutils.ErrFatalf("Encountered errors parsing the following templates: \n%v", resultsToString(templateErrors)) + cmdutils.ErrFatalf("encountered errors parsing the following templates: \n%v", resultsToString(templateErrors)) } - fmt.Println("All template requirements met.") + fmt.Println("all template requirements met") os.Exit(0) } diff --git a/pkg/gator/sync/verify/verify.go b/pkg/gator/sync/verify/verify.go index a342dbbedc7..73f55b7aa6f 100644 --- a/pkg/gator/sync/verify/verify.go +++ b/pkg/gator/sync/verify/verify.go @@ -62,7 +62,7 @@ func init() { } // Reads a list of unstructured objects and a string containing supported GVKs and -// outputs a set of missing sync requirements per template and ingestion problems per template +// outputs a set of missing sync requirements per template and ingestion problems per template. func Verify(unstrucs []*unstructured.Unstructured, supportedGVKs SupportedGVKs) (map[string]parser.SyncRequirements, map[string]error, error) { templates := []*templates.ConstraintTemplate{} syncedGVKs := map[schema.GroupVersionKind]struct{}{} @@ -87,7 +87,7 @@ func Verify(unstrucs []*unstructured.Unstructured, supportedGVKs SupportedGVKs) } } else if reader.IsConfig(obj) { if hasConfig { - return nil, nil, fmt.Errorf("Multiple configs found. Config is a singleton resource.") + return nil, nil, fmt.Errorf("multiple configs found. Config is a singleton resource") } config, err := reader.ToConfig(scheme, obj) if err != nil { @@ -112,7 +112,7 @@ func Verify(unstrucs []*unstructured.Unstructured, supportedGVKs SupportedGVKs) } templates = append(templates, templ) } else { - fmt.Printf("Skipping unstructured %q because it is not a syncset, config, or template\n", obj.GetName()) + fmt.Printf("skipping unstructured %q because it is not a syncset, config, or template\n", obj.GetName()) } }