-
Notifications
You must be signed in to change notification settings - Fork 13
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
[DPE-4157] Add upgrade basics #408
Conversation
@@ -58,3 +58,14 @@ set-tls-private-key: | |||
|
|||
pre-upgrade-check: | |||
description: Run necessary pre-upgrade checks before executing a charm upgrade. | |||
|
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.
copied from OpenSearch
UPGRADE_RELATION = "upgrade" | ||
|
||
|
||
class MongoDBUpgrade(Object): |
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.
most of this is copied from OpenSearch with some changes for MongoDB
Co-authored-by: Carl Csaposs <carl.csaposs@canonical.com>
ae32088
to
5334baa
Compare
from config import Config | ||
from upgrades import upgrade |
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.
copied from opensearch
@@ -9,6 +9,7 @@ | |||
|
|||
import abc | |||
import copy | |||
import enum |
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.
copied from opensearch
207a582
to
3d21f1c
Compare
3d6c275
to
ce3c92f
Compare
Summary
Before implementing Upgrades add some of the boiler plate that is necessary for them. (i.e. Carl's event handlers + small changes for them to work with MongoDB)
Future PRs
machine_upgrades.py