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] Support to mount emptyDir in storageVolumes #324

Merged

Conversation

yandongxiao
Copy link
Collaborator

@yandongxiao yandongxiao commented Nov 27, 2023

fixes #320

@yandongxiao yandongxiao force-pushed the feature/support-emptyDir-volume branch 4 times, most recently from 3f74778 to 6fb5cce Compare November 28, 2023 07:45
@yandongxiao yandongxiao marked this pull request as ready for review November 28, 2023 07:46
@yandongxiao yandongxiao force-pushed the feature/support-emptyDir-volume branch from 09e0894 to 6fb5cce Compare November 29, 2023 03:22
@yandongxiao yandongxiao force-pushed the feature/support-emptyDir-volume branch from f9ba369 to 4928526 Compare December 8, 2023 06:13
@@ -595,3 +613,8 @@ starrocksFeProxySpec:
# ReadinessProbeFailureSeconds defines the total failure seconds of readiness Probe.
# default value is 15 seconds
readinessProbeFailureSeconds:
# Note: will create emptyDir volume for fe proxy, PVC is not supported.
emptyDirs: []
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 emptyDirs has a path that conflicts with the storageSpec path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe Statefulset will refuse to apply the change to pod? I am not sure, will try it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

that's what I am afraid of. statefulset refuses the change but the error will be silent to the user, the user is waiting for something happen but never happens, check if we can validate this kind of errors in operator?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, a good suggestion, will check it. And we can also show errors(or k8s event) from statefulset and pod on StarRocksCluster CR. So we can describe the StarRocksCluster CR to get the error.

Copy link
Collaborator

Choose a reason for hiding this comment

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

right! When the mount path conflicts from multiple configurations, what we can do for now is to refuse the crd apply, or show errors in cr status at least.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Operator can not refuse the crd apply, we should use k8s webhook to achive this.

@yandongxiao yandongxiao merged commit 18e21cb into StarRocks:main Dec 11, 2023
6 checks passed
@yandongxiao yandongxiao added v1.9.0 enhancement New feature or request labels Jan 4, 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.0
Projects
None yet
2 participants