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:1.root pvc could be lost possibly; 2.leaf pvc spec could not be m… #252

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

xyz2277
Copy link
Collaborator

@xyz2277 xyz2277 commented Nov 15, 2023

…odified 3. root pv nodeSelectorTerms

What type of PR is this?

/kind bug

What does this PR do?

fix:1.root pvc could be lost possibly;
2.leaf pvc spec could not be modified
3. root pv nodeSelectorTerms is wrong

Which issue(s) does this PR fix?

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

…odified 3. root pv nodeSelectorTerms

Signed-off-by: zhangyongxi <[email protected]>
@kosmos-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xyz2277

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

@@ -291,15 +291,15 @@ func (c *ClusterController) setupControllers(mgr manager.Manager, cluster *kosmo
return fmt.Errorf("error starting podUpstreamReconciler %s: %v", podcontrollers.LeafPodControllerName, err)
}

err := c.setupStorageControllers(mgr, nodes, leafClientset, cluster.Name)
err := c.setupStorageControllers(mgr, utils.IsOne2OneMode(cluster), cluster.Name)
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

we can use leafModelHandler( AggregationModelHandler DispersionModelHandler) other than if .... else ...

@wangyizhi1
Copy link
Member

/lgtm

@kosmos-robot kosmos-robot merged commit 9a6c2ba into kosmos-io:main Nov 16, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants