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

fix: renamed storageclass to remove topolvm #114

Merged
merged 1 commit into from
Feb 21, 2022
Merged

fix: renamed storageclass to remove topolvm #114

merged 1 commit into from
Feb 21, 2022

Conversation

nbalacha
Copy link
Contributor

Replaced "topolvm-" with "odf-lvm" in the storageclass name.

Signed-off-by: N Balachandran [email protected]

Replaced "topolvm-" with "odf-lvm" in the storageclass name.

Signed-off-by: N Balachandran <[email protected]>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 17, 2022
@nbalacha nbalacha requested a review from leelavg February 17, 2022 15:50
Copy link

@Yuggupta27 Yuggupta27 left a comment

Choose a reason for hiding this comment

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

Do we need to update here too?

@@ -93,7 +93,7 @@ func getTopolvmStorageClasses(lvmCluster *lvmv1alpha1.LVMCluster) []*storagev1.S
for _, deviceClass := range lvmCluster.Spec.DeviceClasses {
storageClass := &storagev1.StorageClass{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("topolvm-%s", deviceClass.Name),
Name: fmt.Sprintf("odf-lvm-%s", deviceClass.Name),
Copy link
Contributor

Choose a reason for hiding this comment

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

@nbalacha not sure it a problem for upgrades update of storageclass name is not supported we need to delete and recreate it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upgrades are not in the picture as yet as this is the first downstream release.

@nbalacha
Copy link
Contributor Author

Do we need to update here too?

Not required. This is the name of the resource manager, not the storageclass.

@@ -93,7 +93,7 @@ func getTopolvmStorageClasses(lvmCluster *lvmv1alpha1.LVMCluster) []*storagev1.S
for _, deviceClass := range lvmCluster.Spec.DeviceClasses {
storageClass := &storagev1.StorageClass{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("topolvm-%s", deviceClass.Name),
Name: fmt.Sprintf("odf-lvm-%s", deviceClass.Name),
Copy link
Contributor

Choose a reason for hiding this comment

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

  • with this change, we are make the project more downstream-ish, as we already have code to determine k8s environment (openshift or other), how about we use that info to decide on odf-lvm- vs topolvm-?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think a more generic sc name is probably fine for both upstream and downstream.

Copy link
Contributor

Choose a reason for hiding this comment

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

ack, so we'll proceed with this name for now and later change it to generic then.

Copy link
Contributor

@leelavg leelavg left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 21, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leelavg, nbalacha

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

The pull request process is described 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

@openshift-merge-robot openshift-merge-robot merged commit 747268e into openshift:main Feb 21, 2022
@nbalacha nbalacha deleted the sc-name branch February 21, 2022 11:58
@nbalacha
Copy link
Contributor Author

/cherry-pick release-4.10

@openshift-cherrypick-robot

@nbalacha: new pull request created: #116

In response to this:

/cherry-pick release-4.10

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants