@@ -19,7 +19,6 @@ package v1alpha1
19
19
import (
20
20
"sigs.k8s.io/kubebuilder/v3/pkg/config"
21
21
cfgv3 "sigs.k8s.io/kubebuilder/v3/pkg/config/v3"
22
- "sigs.k8s.io/kubebuilder/v3/pkg/model/resource"
23
22
"sigs.k8s.io/kubebuilder/v3/pkg/model/stage"
24
23
"sigs.k8s.io/kubebuilder/v3/pkg/plugin"
25
24
"sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang"
@@ -53,8 +52,18 @@ func (Plugin) SupportedProjectVersions() []config.Version { return supportedProj
53
52
func (p Plugin ) GetCreateAPISubcommand () plugin.CreateAPISubcommand { return & p .createAPISubcommand }
54
53
55
54
type pluginConfig struct {
56
- Resources []resource.GVK `json:"resources,omitempty"`
57
- // image indicates the image that will be used to scaffold the deployment
55
+ Resources []resourceData `json:"resources,omitempty"`
56
+ }
57
+
58
+ type resourceData struct {
59
+ Group string `json:"group,omitempty"`
60
+ Domain string `json:"domain,omitempty"`
61
+ Version string `json:"version"`
62
+ Kind string `json:"kind"`
63
+ Options options `json:"options,omitempty"`
64
+ }
65
+
66
+ type options struct {
58
67
Image string `json:"image,omitempty"`
59
68
ContainerCommand string `json:"containerCommand,omitempty"`
60
69
ContainerPort string `json:"containerPort,omitempty"`
0 commit comments