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

[Enhancement] If hostPath is set, the storage class will be considered as hostPath #552

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

yandongxiao
Copy link
Collaborator

Description

Related Issue(s)

Fixes: #485

Checklist

For operator, please complete the following checklist:

  • run make generate to generate the code.
  • run golangci-lint run to check the code style.
  • run make test to run UT.
  • run make manifests to update the yaml files of CRD.

@yandongxiao yandongxiao force-pushed the enhancement/hostpath-volume branch 2 times, most recently from 10dd527 to 02c2762 Compare June 24, 2024 11:07
@yandongxiao yandongxiao requested a review from kevincai June 24, 2024 11:08
@yandongxiao yandongxiao force-pushed the enhancement/hostpath-volume branch from 02c2762 to 87ad5ae Compare June 24, 2024 11:10
// SpecialStorageClassName returns the special storage class name of the storage volume, else return "".
// Now we support HostPath and EmptyDir as special storage class.
func SpecialStorageClassName(sv v1.StorageVolume) string {
if sv.HostPath != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

what if the the sv.HostPath is provided and the sv.StorageClassName is provided as well and they mismatch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. I think the storage class name will have a high priority.

…me is provided as well, name will have a high priority

Signed-off-by: yandongxiao <[email protected]>
@yandongxiao yandongxiao requested a review from kevincai June 25, 2024 02:11
@yandongxiao yandongxiao merged commit c7f0549 into StarRocks:main Jun 25, 2024
6 checks passed
@yandongxiao yandongxiao added v1.9.7 enhancement New feature or request labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1.9.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't change an existing cluster to hostPath
2 participants