@@ -36,6 +36,7 @@ type newPackageAnswers struct {
3636 KibanaVersion string `survey:"kibana_version"`
3737 ElasticSubscription string `survey:"elastic_subscription"`
3838 GithubOwner string `survey:"github_owner"`
39+ OwnerType string `survey:"owner_type"`
3940 DataStreamType string `survey:"datastream_type"`
4041}
4142
@@ -149,6 +150,27 @@ func createPackageCommandAction(cmd *cobra.Command, args []string) error {
149150 },
150151 Validate : survey .ComposeValidators (survey .Required , surveyext .GithubOwnerValidator ),
151152 },
153+ {
154+ Name : "owner_type" ,
155+ Prompt : & survey.Select {
156+ Message : "Owner type:" ,
157+ Options : []string {"elastic" , "partner" , "community" },
158+ Description : func (value string , _ int ) string {
159+ switch value {
160+ case "elastic" :
161+ return "Owned and supported by Elastic"
162+ case "partner" :
163+ return "Vendor-owned with support from Elastic"
164+ case "community" :
165+ return "Supported by the community"
166+ }
167+
168+ return ""
169+ },
170+ Default : "elastic" ,
171+ },
172+ Validate : survey .Required ,
173+ },
152174 }
153175
154176 if answers .Type == "input" {
@@ -217,6 +239,7 @@ func createPackageDescriptorFromAnswers(answers newPackageAnswers) archetype.Pac
217239 },
218240 Owner : packages.Owner {
219241 Github : answers .GithubOwner ,
242+ Type : answers .OwnerType ,
220243 },
221244 License : answers .ElasticSubscription ,
222245 Description : answers .Description ,
0 commit comments