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.
2 parents ae06fc8 + a024127 commit eb3d796Copy full SHA for eb3d796
pkg/scaffold/api.go
@@ -57,14 +57,8 @@ func (api *API) Validate() error {
57
if err := api.setDefaults(); err != nil {
58
return err
59
}
60
- if api.Resource.Group == "" {
61
- return fmt.Errorf("missing group information for resource")
62
- }
63
- if api.Resource.Version == "" {
64
- return fmt.Errorf("missing version information for resource")
65
66
- if api.Resource.Kind == "" {
67
- return fmt.Errorf("missing kind information for resource")
+ if err := api.Resource.Validate(); err != nil {
+ return err
68
69
70
return nil
0 commit comments