Skip to content

Add Channel to Operator API #171

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

Merged
merged 1 commit into from
Apr 17, 2023
Merged

Conversation

tmshort
Copy link
Contributor

@tmshort tmshort commented Apr 17, 2023

Just add the Channel to the API
Fixes #169
Fixes OPRUN-2916

Just add the Channel to the API
Fixes operator-framework#169
Fixes OPRUN-2916

Signed-off-by: Todd Short <[email protected]>
@@ -37,6 +37,11 @@ type OperatorSpec struct {
//
// For more information on semver, please see https://semver.org/
Version string `json:"version,omitempty"`

//+kubebuilder:validation:MaxLength:=48
//+kubebuilder:validation:Pattern:=^[a-z0-9]+(-[a-z0-9]+)*$
Copy link
Member

Choose a reason for hiding this comment

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

+1 on a super-well-defined pattern for channel name. Not important for this particular PR, but we should probably make sure opm agrees with this pattern (e.g. as part of opm validate)


//+kubebuilder:validation:MaxLength:=48
//+kubebuilder:validation:Pattern:=^[a-z0-9]+(-[a-z0-9]+)*$
// Channel constraint defintion
Copy link
Member

Choose a reason for hiding this comment

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

Nit: it might be nice to beef this up a little bit with a narrative about how the channel constraint works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that once I actually implement it in the next PR

@grokspawn grokspawn merged commit 4f95713 into operator-framework:main Apr 17, 2023
@tmshort tmshort deleted the issue-169 branch April 17, 2023 18:42
@tmshort tmshort mentioned this pull request Apr 18, 2023
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.

Introduce spec.channel field to the operator API
3 participants