-
Notifications
You must be signed in to change notification settings - Fork 40
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
A custom slimmed down version of VolumeSource #570
A custom slimmed down version of VolumeSource #570
Conversation
A preview of the effect on cinder-operator is here: dprince/cinder-operator@95e834d |
@olliewalsh This is similar to the StatefulSet idea you mentioned from Rabbit. |
I removed zz_generated.deepcopy.go as the Makefile here doesn't seem to regenerate it. (just stale). Did something get broken recently? |
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.
We might want to leave additional things to allow the most customer possibilities. But just floating the idea of removing a few more things if they aren't explicitly supported by OpenShift.
@bshephar the more we can agree to remove the better. |
Not sure, but [1] should solve your problem here. |
@dprince an additional change we need to consider across all the operators that implement We usually With the goal in mind of reducing the bundle size, I think we're going in the right direction, and I can follow up w/ a |
I'm not sure how the storage modules deepcopy was ever maintained. It is missing the needed kubebuilder annotations to do so |
adc4267
to
7eba2eb
Compare
I updated my cinder PR. Wanted to get general feedback on this before going too far but I think it should work out fine. |
e89d57e
to
e3abf73
Compare
Slim down VolumeSource by removing deprecated and "removed" fields from the struct. This will slim down our nested use of ExtraMounts Also, adds ConvertVolumeSource function to the storage module which converts from VolumeSource to a corev1.VolumeSource
Probably not likely we'll be using these: PhotonPersistentDisk Projected Ephemeral
e483e8a
to
061cc8a
Compare
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.
/lgtm
Slim down VolumeSource by removing deprecated and "removed" fields from the struct. This will slim down our nested use of ExtraMounts.
Using this version of the struct shaves 38k off the cinder-operator bundle size. Using this across the board would have a significant effect on reducing the OpenStackControlplane CRD size and little if any effect on utility of the nested ExtraMount struct.