-
Notifications
You must be signed in to change notification settings - Fork 65
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]+)*$ | ||
// Channel constraint defintion | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
Channel string `json:"channel,omitempty"` | ||
} | ||
|
||
const ( | ||
|
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.
+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 ofopm validate
)