Skip to content
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

Merged

Conversation

grokspawn
Copy link
Contributor

@grokspawn grokspawn commented May 17, 2023

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.

…inks to example sections

Signed-off-by: Jordan Keister <[email protected]>
@grokspawn
Copy link
Contributor Author

grokspawn commented May 17, 2023

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.

@grokspawn grokspawn enabled auto-merge (squash) May 17, 2023 13:58
Signed-off-by: Jordan Keister <[email protected]>

```yaml
GenerateMinorChannels: true
GenerateMajorChannels: false
Copy link
Contributor

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:

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DefaultChannelTypePreference?: bool
DefaultChannelTypePreference?: string

Signed-off-by: Jordan Keister <[email protected]>
Copy link

@oceanc80 oceanc80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@everettraven everettraven left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grokspawn grokspawn merged commit db3bed9 into operator-framework:master May 24, 2023
@grokspawn grokspawn deleted the channel-type-preference branch May 25, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants