-
Notifications
You must be signed in to change notification settings - Fork 37
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
backup: init backup controller #394
Conversation
✅ Deploy Preview for kurator-dev canceled.
|
f05c19b
to
77c5619
Compare
Signed-off-by: Xieql <[email protected]>
77c5619
to
139f0d2
Compare
@hzxuzhonghu PTAL |
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.
nit: prefer move it in backup
pkg
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.
next pr
return len(backup.Spec.Schedule) != 0 | ||
} | ||
|
||
func generateVeleroInstanceLabel(createdByLabel, creatorName, fleetName string) map[string]string { |
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.
nit: we have many duplicate calling these
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.
could you please clarify what you mean by 'many duplicate calling these'? Can you point to specific instances or suggest how I might address this?
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.
I mean we set labels in many different places
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.
refactor them in subsequent PRs.
cde0da7
to
ee38a5a
Compare
Signed-off-by: Xieql <[email protected]>
ee38a5a
to
ddbf7a7
Compare
return len(backup.Spec.Schedule) != 0 | ||
} | ||
|
||
func generateVeleroInstanceLabel(createdByLabel, creatorName, fleetName string) map[string]string { |
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.
I mean we set labels in many different places
Signed-off-by: Xieql <[email protected]>
f0dea62
to
1d4ab8b
Compare
/label tide/merge-method-squash |
Please donot force push, so we can review the delta commit. When it is ready, we should squash then |
In fact, this force submission made the delta commit more clear. I won't force a submission casually. |
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
We should add tests for it
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
It will help the reviewers to review only the delta change |
ok |
What type of PR is this?
/kind feature
What this PR does / why we need it:
init the Backup controller.
in addition, refactor the
client.go
to getclient.Client
fromsigs.k8s.io/controller-runtime/pkg/client
part of #377
part of #374
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: