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

Updating Rook to v0.0.0-20240327231646-b6b89a012a95 #1348

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

vh05
Copy link
Contributor

@vh05 vh05 commented Apr 18, 2024

To accommodate the above change we are moving k8s.io/api to 0.29.3 from 0.28.4 which is effectively bringing VolumeResourceRequirements in place of ResourceRequirements

PersistentVolumeClaimSpec had ResourceRequirements in 0.28.4 and here is the github link for the same https://github.com/kubernetes/api/blob/d2d5db7d05d8a0c0dfc5e76035904476a065987c/core/v1/types.go#L489C12-L489C32

and the ResourceRequirements has been replaced by VolumeResourceRequirements in 0.29.3 and the github link is below https://github.com/kubernetes/api/blob/a819b1d9bd169a0584c6d17430450ec1976c17de/core/v1/types.go#L502C12-L502C38

Since the change has happened inside PersistentVolumeClaimSpec in k8s.io/api, we can safely assume that updating to 0.29.3 from 0.28.4 wont break our code.

Few more details:

ResourceRequirements definition in 0.28.4
https://github.com/kubernetes/api/blob/d2d5db7d05d8a0c0dfc5e76035904476a065987c/core/v1/types.go#L2394

VolumeResourceRequirements definition in updated v0.29.3 https://github.com/kubernetes/api/blob/a819b1d9bd169a0584c6d17430450ec1976c17de/core/v1/types.go#L2608

Because of the above explained changes, we are forced to do some code level changes in the above mentioned context

@vh05 vh05 requested a review from liranmauda April 18, 2024 09:33
@vh05 vh05 force-pushed the update_rook branch 2 times, most recently from 3a353b0 to 6d9f15f Compare April 18, 2024 09:39
To accommodate the above change we are moving k8s.io/api
to 0.29.3 which is effectively bringing VolumeResourceRequirements
in place of ResourceRequirements

PersistentVolumeClaimSpec has ResourceRequirements in 0.28.4 and here is the github link for the same
https://github.com/kubernetes/api/blob/d2d5db7d05d8a0c0dfc5e76035904476a065987c/core/v1/types.go#L489C12-L489C32

and the ResourceRequirements has been replaced by VolumeResourceRequirements in 0.29.3 and the github link is below
https://github.com/kubernetes/api/blob/a819b1d9bd169a0584c6d17430450ec1976c17de/core/v1/types.go#L502C12-L502C38

Since the change has happened inside PersistentVolumeClaimSpec in k8s.io/api, we can safely assume that updating to
0.29.3 from 0.28.4 wont break our code.

Few more details:

ResourceRequirements definition in 0.28.4
https://github.com/kubernetes/api/blob/d2d5db7d05d8a0c0dfc5e76035904476a065987c/core/v1/types.go#L2394

VolumeResourceRequirements definition in updated v0.29.3
https://github.com/kubernetes/api/blob/a819b1d9bd169a0584c6d17430450ec1976c17de/core/v1/types.go#L2608

Signed-off-by: Vinayakswami Hariharmath <[email protected]>
Copy link
Contributor

@liranmauda liranmauda left a comment

Choose a reason for hiding this comment

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

LGTM

@vh05 vh05 merged commit 039c60d into noobaa:master Apr 18, 2024
14 checks passed
@vh05 vh05 deleted the update_rook branch April 18, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants