-
Notifications
You must be signed in to change notification settings - Fork 95
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/restore functionality - PVC subset #392
Conversation
0da39b1
to
915673c
Compare
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.
Left some comments
pkg/controller/apimanagerrestore/apimanagerrestore_logic_reconciler.go
Outdated
Show resolved
Hide resolved
pkg/controller/apimanagerrestore/apimanagerrestore_logic_reconciler.go
Outdated
Show resolved
Hide resolved
915673c
to
2757151
Compare
Applied changes and answered comments |
comments left |
Changes applied |
- Add APIManagerBackup type - Add APIManagerRestore type - Implement APIManagerBackup controller and model logic with PVC as destination and PVC as System's FileStorage - Implement APIManagerRestore controller and model logic with PVC as source and PVC as System's FileStorage - Add operator APIManager-based 3scale backup and restore documentation
…etCleanup The job is now automatically deleted when deleting the CR (via ownerReference)
With a default or from an environment variable
Several restore steps always expected the shared secret to always be available. However, one of the last steps is removing them. That made steps fail in some situations where reconciliation loop was reexecuted again. This commit adds a new Status field 'APIManagerToRestoreRef' that contains the name of the APIManager to restore, and the steps that needed the secret now can do their tasks using this flag.
Implement path omission mechanism in CRD tests to exclude specific fields When used fields in the CRDs have unexported fields or are serialized in a different format than the defined Golang object the schema.MissingEntries method reports them as missing. Implemented a mechanism to be able to ignore specific entries and added the ones where we were having this situation.
2a2738d
to
c9ca8a8
Compare
LGTM Fix failing tests and let's merge |
25ef4e5
to
5f68780
Compare
Code Climate has analyzed commit 5f68780 and detected 124 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Fixed failing tests: added back the wildcard permission on apps.3scale.net, the removal of it was causing errors creating some objects https://app.circleci.com/pipelines/github/3scale/3scale-operator/2061/workflows/749dbf90-69c4-40d6-821b-2c8d87a2fc2f/jobs/13598 |
Merge backup/restore PVC subset new functionality integration branch into master