-
Notifications
You must be signed in to change notification settings - Fork 81
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
channeltypepreference attribute for semver template; providing hyperlinks to example sections #296
channeltypepreference attribute for semver template; providing hyperlinks to example sections #296
Conversation
…inks to example sections Signed-off-by: Jordan Keister <[email protected]>
I opened issue #297 to resolve the new 404s on the advanced topics page causing failures in the linter, so we don't lose track of them. They are not material to these changes, however. |
Signed-off-by: Jordan Keister <[email protected]>
|
||
```yaml | ||
GenerateMinorChannels: true | ||
GenerateMajorChannels: false |
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.
Based on the surrounding context:
GenerateMajorChannels: false | |
GenerateMajorChannels: true |
@@ -254,6 +254,9 @@ The `olm.semver` [cue](https://cuelang.org/docs/references/spec/) schema is: | |||
// optional flag to control generating major-version channels, defaults to _false_ if unspecified | |||
GenerateMajorChannels?: bool | |||
|
|||
// optional flag to prefer major- or minor-version channels, when both are generated and identical in stability and version | |||
DefaultChannelTypePreference?: bool |
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.
DefaultChannelTypePreference?: bool | |
DefaultChannelTypePreference?: string |
Signed-off-by: Jordan Keister <[email protected]>
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
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.
Just a question, other than that LGTM
@@ -254,6 +254,9 @@ The `olm.semver` [cue](https://cuelang.org/docs/references/spec/) schema is: | |||
// optional flag to control generating major-version channels, defaults to _false_ if unspecified | |||
GenerateMajorChannels?: bool | |||
|
|||
// optional preference for major- or minor-version channels, when both are generated and identical in stability and version | |||
DefaultChannelTypePreference?: string |
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.
Is there a requirement that this is within a specific set of values or can this be any string value?
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.
We enforce it in the code to either 'minor' or 'major': https://github.com/operator-framework/operator-registry/blob/master/alpha/template/semver/semver.go#LL95-L112
Introducing a new semver template attribute which provides authors the capability to deterministically select generated major or minor channels as default when they are for all other measures "equally stable".
This attribute is defaulted to minor-version channels if omitted.
Changes visible in the Catalog Templates page.