Skip to content
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

Deploy an external mode cluster and create resources with the rbd rados namespace #11019

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yitzhak12
Copy link
Contributor

@yitzhak12 yitzhak12 added team/ecosystem Ecosystem team related issues/PRs new feature labels Dec 9, 2024
@yitzhak12 yitzhak12 requested a review from a team as a code owner December 9, 2024 16:47
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines label Dec 9, 2024
Copy link

openshift-ci bot commented Dec 9, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yitzhak12

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment on lines 665 to 668
from ocs_ci.ocs.resources.storage_cluster import (
get_storageclass_names_from_storagecluster_spec,
get_storageclass_with_rbd_namespace,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you move to import section. incase if there is circular dependancy, please make comment for the same

return sc

log.warning(f"Didn't find the storageclass with the rbd namespace {rbd_namespace}")
return None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default function returns None implicitly. so we can remove this

rbd_namespace (str): The rbd namespace to search in the storage classes

Returns:
dict: The storage class with the specified rbd namespace. If not found, it returns None.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dict: The storage class with the specified rbd namespace. If not found, it returns None.
str: The storage class with the specified rbd namespace. If not found, it returns None.

@yitzhak12 yitzhak12 force-pushed the create-resources-with-rbd-namesapce branch from fbb27c8 to bc6df44 Compare December 10, 2024 10:17
@pull-request-size pull-request-size bot added size/S PR that changes 10-29 lines and removed size/M PR that changes 30-99 lines labels Dec 10, 2024
@yitzhak12 yitzhak12 changed the title Create resources with rbd namespace Deploy an external mode cluster and create resources with the rbd rados namespace Dec 10, 2024
@yitzhak12 yitzhak12 force-pushed the create-resources-with-rbd-namesapce branch from bc6df44 to e4e5341 Compare December 12, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature size/S PR that changes 10-29 lines team/ecosystem Ecosystem team related issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants