-
Notifications
You must be signed in to change notification settings - Fork 40
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
Optimize tenant backup and restore #83
Conversation
…d to Name of CustomResource
…with backup or archive path
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's some type modification, is it capable with the previous release
@@ -30,8 +30,8 @@ type OBTenantBackupPolicySpec struct { | |||
// Important: Run "make" to regenerate code after modifying this file | |||
|
|||
ObClusterName string `json:"obClusterName"` | |||
TenantName string `json:"tenantName"` | |||
TenantSecret string `json:"tenantSecret"` | |||
TenantName string `json:"tenantName"` // Name of obtenant resource |
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.
is this the tenant name in obcluster or cr's name, the previous implementation is tenant name in obcluster
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.
The field had been changed to refer to name of CR in commit 6966330
@@ -69,6 +69,10 @@ func (c *Coordinator) Coordinate() (ctrl.Result, error) { | |||
return result, errors.Wrapf(err, "Check and update finalizer failed") | |||
} | |||
} | |||
err = c.cleanTaskResultMap(f) |
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 is already fixed in the release branch, maybe it's better to merge the branch before develop next time
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.
OK, I will merge the branch 2.0.0_relase
It SHOULD NOT be compatible with branch |
Optimize backup and restore progress #41 |
Summary
backupPolicy.tenantName
from tenant_name ofDBA_OB_TENANT
database view to tenantName ofOBTenant
CRDOSS
,ossAccessSecret
field become required indestination
which reference a k8s secret resource containing access_id and access_key that will be used in accessing OSSinclude make/*.mk