-
Notifications
You must be signed in to change notification settings - Fork 75
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
Make subscription spec.config and spec.config.resources optional #97
Make subscription spec.config and spec.config.resources optional #97
Conversation
…es structs optional via pointer Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
This is a breaking change for Go users of As far as I can tell, this is NOT a breaking change from a Kubernetes API standpoint. The current CRD does not require |
There's likely a way to fix this on the OLM side without making an API change by treating an empty struct identically to a nil struct pointer. However that has the downside that it becomes impossible to use |
Channel string `json:"channel,omitempty"` | ||
StartingCSV string `json:"startingCSV,omitempty"` | ||
InstallPlanApproval Approval `json:"installPlanApproval,omitempty"` | ||
Config *SubscriptionConfig `json:"config,omitempty"` |
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.
This change is not directly related to bug fix with overriding resources. However it seems that the intent is for spec.config
to be optional, so it seems like a reasonable time to make this change as well.
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
/approve |
Required by operator-framework/operator-lifecycle-manager#2010
Signed-off-by: Joe Lanford joe.lanford@gmail.com