-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update recipe CRD to match with other consumers #35
Update recipe CRD to match with other consumers #35
Conversation
These are replaced by a list of workflows. The workflow names * backup * restore have special meaning. They will be used by default backup/capture and restore/recover workflow. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
This allows for selection of namespaces by a label selector. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
When set, this allows for restoring of the status section in the CRs. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
When set, the resources are overwritten when a restore is being performed. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
This is in preparation to introduction of other type of hooks. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
This is for compatibility with other consumers of recipes. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
This is for compatibility with other consumers of recipes. Signed-off-by: Raghavendra Talur <[email protected]> Co-Authored-by: Jose A. Rivera <[email protected]>
Signed-off-by: Raghavendra Talur <[email protected]>
f9fcf2d
to
154ee1e
Compare
LGTM, will wait for other reviews and merge as appropriate. |
// List of namespaces to include. | ||
//+optional | ||
IncludedNamespaces []string `json:"includedNamespaces,omitempty"` | ||
// List of namespace to exclude | ||
ExcludedNamespaces []string `json:"excludedNamespaces,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.
Can we also add excludedNamespacesByLabel?
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 thought about it, but given that other consumers haven't implemented a excludedNamespacesByLabel
it could be that there's no demand for it, or that there exist other complications that are not immediately apparent before attempting implementation. Given that it's always easier to add rather than remove fields from an API, it feels prudent to leave it out until there's an explicit request for it.
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.
In this PR I am only trying to match the CRD with other consumers expectations. We can add other features in a subsequent PR.
This pull request introduces several modifications to the API to have better compatibility with other consumers of the recipe CRD. The key changes include:
Command and Timeout Changes:
command
is now a single string format to improve compatibility with external recipe consumers.timeout
field has been changed to an integer type for better consistency.Hooks Enhancements:
namespace
field mandatory for hooks.Group Configuration Updates:
RestoreOverwriteResources
: Allows resource overwriting during restores.RestoreGroupStatus
: Enables status section restoration in Custom Resources (CRs).ExcludedNamespaces
: Specifies namespaces to be excluded during operations.IncludedNamespacesByLabel
: Supports namespace selection based on label selectors.Workflow Improvements:
backup
andrestore
, which are now associated with default operations.Additional Changes:
Co-authorship: This pull request includes contributions from Jose A. Rivera.