-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add required subscription on package creation #897
Conversation
🌐 Coverage report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Name: "elastic_subscription", | ||
Prompt: &survey.Select{ | ||
Message: "Required Elastic subscription:", | ||
Options: []string{"basic", "gold", "platinum", "enterprise"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would change the order to be shown like here
Options: []string{"basic", "gold", "platinum", "enterprise"}, | |
Options: []string{"basic", "platinum", "enterprise", "gold"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I didn't know that gold is discontinued, I guess that this is the only reason why it appears later there. But technically platinum > gold, we have been using this order everywhere. See the spec for example: https://github.com/elastic/package-spec/blob/0456e4f000a5bf85130d4e5e9c6d329a627523ec/versions/1/integration/manifest.spec.yml#L54
It adds by now the old
license
field and the newelastic.subscription
condition.Follow up of elastic/package-spec#355.
Part of elastic/package-spec#298.