-
Notifications
You must be signed in to change notification settings - Fork 410
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
Upgrade kustomization files to Kustomize v5 #2352
Conversation
@kevin85421 could you please have a quick look? |
Sure, sorry I didn’t know it was an urgent item for you all. I initially planned to review it after Ray Summit. |
@oksanabaza would you mind rebasing with the master branch? Thanks! |
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.
I manually test deploying KubeRay operator by running:
kubectl create -k ray-operator/config/default
make deploy-with-webhooks
It works. @oksanabaza would you mind manually testing deploying KubeRay apiserver?
462dc0f
to
0045c05
Compare
Could you provide some details in the PR description to explain how you tested deploying the KubeRay API server? Thanks! |
Hey @kevin85421 , I deployed using the following commands:
Everything worked as expected Also here are the steps I followed for manual testing:
Let me know if you need any more information |
0045c05
to
e4b1863
Compare
@kevin85421 I noticed that the KUSTOMIZE_VERSION wasn't updated, so I moved from version 3.8.7 to v5.4.3. After the upgrade, I tested it with a kind cluster using the following commands:
|
cc @MortalHappiness could you also review this PR if you have time? |
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.
I ran kustomize edit fix
on all old files and find these inconsistencies with your fix. Do you have any specific reasons not to use the kustomize edit fix
command directly? If yes, could you give some reasons why they should be different?
@oksanabaza is this PR ready for another review? |
@kevin85421 @MortalHappiness could please review it again, thanks! |
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.
LGTM
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.
I found that some files are not changed. Please run kustomize edit fix
for all of these files. For example, you didn't fix ray-operator/config/certmanager/kustomization.yaml
in this PR.
apiserver/deploy/base/insecure/kustomization.yaml
apiserver/deploy/base/secure/kustomization.yaml
apiserver/deploy/local/insecure/kustomization.yaml
apiserver/deploy/local/secure/kustomization.yaml
ray-operator/config/certmanager/kustomization.yaml
ray-operator/config/crd/kustomization.yaml
ray-operator/config/default/kustomization.yaml
ray-operator/config/default-with-webhooks/kustomization.yaml
ray-operator/config/manager/kustomization.yaml
ray-operator/config/rbac/kustomization.yaml
ray-operator/config/webhook/kustomization.yaml
@MortalHappiness thank you for the comment. I've run |
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.
LGTM
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.
Thanks!
Why are these changes needed?
This PR addresses the migration from Kustomize v4 to v5. Kuberay was generating warnings about deprecated parameters, which have now been updated to align with Kustomize v5 standards.
Related issue number
Checks