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(cspc): replace the spc label with cspc label #1611

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

shubham14bajpai
Copy link
Contributor

@shubham14bajpai shubham14bajpai commented Feb 11, 2020

Signed-off-by: shubham [email protected]

What this PR does / why we need it:
This PR replaces the spc label with cspc label in the cspc-operator. If the finalizers are removed from the cspi and for some unknown reason the deletion is stuck then in that case the cspc should not be deleted before cspi deletion.

Copy link

@mittachaitu mittachaitu left a comment

Choose a reason for hiding this comment

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

Changes are good

@@ -332,7 +332,7 @@ func (pc *PoolConfig) removeCSPCFinalizer() error {
}

cspList, err := apiscsp.NewKubeClient().List(metav1.ListOptions{
LabelSelector: string(apis.StoragePoolClaimCPK) + "=" + pc.AlgorithmConfig.CSPC.Name,
LabelSelector: string(apis.CStorPoolClusterCPK) + "=" + pc.AlgorithmConfig.CSPC.Name,

Choose a reason for hiding this comment

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

👍 Good one

Copy link

@mittachaitu mittachaitu left a comment

Choose a reason for hiding this comment

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

Changes are good

Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@sonasingh46 sonasingh46 left a comment

Choose a reason for hiding this comment

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

lgtm.
Thank You!

@prateekpandey14 prateekpandey14 merged commit dd61520 into openebs-archive:master Feb 11, 2020
shubham14bajpai added a commit to shubham14bajpai/maya that referenced this pull request Feb 11, 2020
prateekpandey14 pushed a commit that referenced this pull request Feb 11, 2020
@shubham14bajpai shubham14bajpai deleted the label branch March 17, 2020 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants