-
Notifications
You must be signed in to change notification settings - Fork 462
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
[Feature] Validation of RayFTEnabled is false and GcsFaultToleranceOption is not nil #2726
Merged
kevin85421
merged 15 commits into
ray-project:master
from
CheyuWu:feat/gcsFT/validation
Jan 14, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a1f0d05
feat: validation of RayFTEnabled == false and GcsFaultToleranceOption…
CheyuWu 3cb26b0
fix: rm panic and set status in instance
CheyuWu a3d76d6
Revert "fix: rm panic and set status in instance"
CheyuWu b0edcd0
Revert "feat: validation of RayFTEnabled == false and GcsFaultToleran…
CheyuWu 19625f5
feat: add validateRayClusterSpec in the beginning of rayClusterReconcile
CheyuWu 392120e
fix: linter issue
CheyuWu ff818ef
feat: add additional case to reject, instance has RAY_REDIS_ADDRESS e…
CheyuWu 8b50a8e
feat: add ValidateRayClusterSpec in raycluster webhook and add unit test
CheyuWu ef011c1
fix: linter issue
CheyuWu f4e5bd1
Revert "fix: linter issue"
CheyuWu ffa0bdf
Revert "feat: add ValidateRayClusterSpec in raycluster webhook and ad…
CheyuWu 31b75f6
fix: validateRayClusterSpec not need to be the member of RayClusterRe…
CheyuWu 987dbb2
chore: add rayCluseter Namespace and Name to logger and return nil to…
CheyuWu db6d00e
Merge remote-tracking branch 'upstream/master' into feat/gcsFT/valida…
CheyuWu 2642edc
fix: rm Containers[utils.RayContainerIndex].Env (not necessary) and c…
CheyuWu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides this case, we also need to reject the case where the
instance
hasRAY_REDIS_ADDRESS
env set but has noinstance.Annotations[utils.RayFTEnabledAnnotationKey] == "true"
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this
validateRayClusterSpec
validation should also be invoked in the optional validation webhook:kuberay/ray-operator/apis/ray/v1/raycluster_webhook.go
Line 51 in 9068102
Note that the validation webhook is usually the recommended way to validate a k8s CR, but users can choose not to enable it. That is the reason we need to do validation in both reconciliation and the webhook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, no problem