-
Notifications
You must be signed in to change notification settings - Fork 58
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
Adding new SC and Pool for RBD #1756
base: main
Are you sure you want to change the base?
Conversation
8b884a0
to
8760c02
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.
Missing the big picture but changes look very nice!
test/addons/rook-pool/start
Outdated
|
||
def deploy(cluster): | ||
scs = [ |
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.
storage_classes would be nicer and consistent with other names like POOL_NAMES
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.
renamed the variable.
test/addons/rook-pool/start
Outdated
for sc in scs: | ||
template = drenv.template("storage-class.yaml") | ||
yaml = template.substitute( | ||
cluster=cluster, name=sc.get("name"), pool=sc.get("pool") |
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.
sc.get() will return None if we have a typo. It should be used when you want to support missing key, possibly adding a default. Since missing key is a bug in this code we want to fail loudly in this case, and the right way is:
cluster=cluster, name=sc["name"], pool=sc["pool"]
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 have made the changes.
8760c02
to
9a91484
Compare
This commit adds a new storage class and pool for RBD, which allows the ramen code base to exercise the filtering logic when there are multiple storage classes in the environment. This also prepares the environment for scenarios where more than two workloads use different storage classes. Signed-off-by: rakeshgm <[email protected]>
9a91484
to
56f26f0
Compare
I have updated the PR description and the commit message |
This commit adds a new storage class and pool for RBD, which allows the ramen code base to exercise the filtering logic when there are multiple storage classes in the environment. This also prepares the environment for scenarios where more than two workloads use different storage classes.