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

feat: add CSI controller affinity/anti-affinity rules #325

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

ihcsim
Copy link
Contributor

@ihcsim ihcsim commented Jan 15, 2025

This PR cherry-picked #323 from the master branch.

Relevant issue: harvester/harvester#7189

Note #326 needs to be merged for CI to pass.

@Vicente-Cheng
Copy link
Contributor

Hi @ihcsim,
please help to rebase

This ensures the replicas are scheduled to run on distinct control plane nodes
on the guest cluster. These rules are the same as those of the cloud provider.

Signed-off-by: Ivan Sim <[email protected]>
@ihcsim ihcsim force-pushed the csi-driver-affinity branch from 54f0c5c to a6d457e Compare January 16, 2025 04:51
@ihcsim
Copy link
Contributor Author

ihcsim commented Jan 16, 2025

@Vicente-Cheng Rebased completed - thanks.

Copy link
Contributor

@Vicente-Cheng Vicente-Cheng left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Member

@starbops starbops 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.

@bk201
Copy link
Member

bk201 commented Jan 16, 2025

iirc if the template changes in the release branch, we need to bump the chart version. @Vicente-Cheng can you confirm?

@Vicente-Cheng
Copy link
Contributor

iirc if the template changes in the release branch, we need to bump the chart version. @Vicente-Cheng can you confirm?

Ah... yeah, nice catch!
We need to release a new version with this change.
@ihcsim, please also bump the chart version. Thanks!

@ihcsim
Copy link
Contributor Author

ihcsim commented Jan 16, 2025

@bk201 @Vicente-Cheng Version updated in cbb57d9. Let me know if this looks right. I am going by how it was done in #315. Thanks.


# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "v0.2.2"
appVersion: "v0.2.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

The appVersion is associated with the Harvester CSI image version.
As you saw here (https://github.com/harvester/harvester-csi-driver/releases), the latest image version is v0.2.2.
We could skip updating the appVersion at this moment.

Just updating the Chart version from 0.1.22 -> 0.1.23 is enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 9b4f327.

@@ -7,7 +7,7 @@ image:
csiDriver:
repository: rancher/harvester-csi-driver
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.2.2"
tag: "v0.2.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto, we did not need to update tag

@ihcsim ihcsim merged commit fb7a95b into harvester:release Jan 17, 2025
3 checks passed
@ihcsim ihcsim deleted the csi-driver-affinity branch January 17, 2025 20:45
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