-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
issue: add flag to the schedule cmd to configure the useOwnerReferencesInBackup
option #3176
#3182
Conversation
Signed-off-by: matheusjuvelino <[email protected]>
Signed-off-by: matheusjuvelino <[email protected]>
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.
Thanks for getting to this so quickly! I've left one comment but other than that, this looks good!
pkg/cmd/cli/schedule/create.go
Outdated
@@ -94,6 +95,7 @@ func NewCreateOptions() *CreateOptions { | |||
func (o *CreateOptions) BindFlags(flags *pflag.FlagSet) { | |||
o.BackupOptions.BindFlags(flags) | |||
flags.StringVar(&o.Schedule, "schedule", o.Schedule, "a cron expression specifying a recurring schedule for this backup to run") | |||
flags.BoolVar(&o.UseOwnerReferencesInBackup, "use-owner-rferences-in-backup", o.UseOwnerReferencesInBackup, "specifies whether to use OwnerReferences on backups created by this Schedule") |
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.
There is a typo in this flag, it should be "use-owner-references-in-backup".
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.
yes, sorry for my mistake.
…backup Signed-off-by: matheusjuvelino <[email protected]>
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.
Thanks for making the changes!
…cesInBackup` option vmware-tanzu#3176 (vmware-tanzu#3182) * resolve: vmware-tanzu#3176 Signed-off-by: matheusjuvelino <[email protected]> * created changelog Signed-off-by: matheusjuvelino <[email protected]> * fixed use-owner-rferences-in-backup flag for use-owner-references-in-backup Signed-off-by: matheusjuvelino <[email protected]>
…cesInBackup` option vmware-tanzu#3176 (vmware-tanzu#3182) * resolve: vmware-tanzu#3176 Signed-off-by: matheusjuvelino <[email protected]> * created changelog Signed-off-by: matheusjuvelino <[email protected]> * fixed use-owner-rferences-in-backup flag for use-owner-references-in-backup Signed-off-by: matheusjuvelino <[email protected]>
…cesInBackup` option vmware-tanzu#3176 (vmware-tanzu#3182) * resolve: vmware-tanzu#3176 Signed-off-by: matheusjuvelino <[email protected]> * created changelog Signed-off-by: matheusjuvelino <[email protected]> * fixed use-owner-rferences-in-backup flag for use-owner-references-in-backup Signed-off-by: matheusjuvelino <[email protected]>
…cesInBackup` option vmware-tanzu#3176 (vmware-tanzu#3182) * resolve: vmware-tanzu#3176 Signed-off-by: matheusjuvelino <[email protected]> * created changelog Signed-off-by: matheusjuvelino <[email protected]> * fixed use-owner-rferences-in-backup flag for use-owner-references-in-backup Signed-off-by: matheusjuvelino <[email protected]>
…cesInBackup` option vmware-tanzu#3176 (vmware-tanzu#3182) * resolve: vmware-tanzu#3176 Signed-off-by: matheusjuvelino <[email protected]> * created changelog Signed-off-by: matheusjuvelino <[email protected]> * fixed use-owner-rferences-in-backup flag for use-owner-references-in-backup Signed-off-by: matheusjuvelino <[email protected]>
…cesInBackup` option vmware-tanzu#3176 (vmware-tanzu#3182) * resolve: vmware-tanzu#3176 Signed-off-by: matheusjuvelino <[email protected]> * created changelog Signed-off-by: matheusjuvelino <[email protected]> * fixed use-owner-rferences-in-backup flag for use-owner-references-in-backup Signed-off-by: matheusjuvelino <[email protected]>
Fixes: #3176
Signed-off-by: matheusjuvelino [email protected]