Skip to content

Filtering informerFactory to only return relevant PodSpec information #413

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

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

halimsam
Copy link
Collaborator

Filtering informerFactory to only return relevant PodSpec information to improve GCSFUSE CSI driver memory usage for pods and deployments with larger Pod Specs.

@mborsz
Copy link

mborsz commented Dec 18, 2024

LGTM

Just to confirm, you are using 1.27+ informer library, right? Only in that version you can change the object in place, see https://github.com/kubernetes/client-go/blob/67da6d1a4174c5f881389516fd53f5e13d3eaf85/tools/cache/delta_fifo.go#L146-L147

@halimsam
Copy link
Collaborator Author

LGTM

Just to confirm, you are using 1.27+ informer library, right? Only in that version you can change the object in place, see https://github.com/kubernetes/client-go/blob/67da6d1a4174c5f881389516fd53f5e13d3eaf85/tools/cache/delta_fifo.go#L146-L147

Considering this is 1.27/v0.27.0, we are using v0.30.3. Thanks for the LGTM!

@saikat-royc
Copy link
Collaborator

/lgtm

@saikat-royc saikat-royc merged commit 7542c27 into GoogleCloudPlatform:main Dec 19, 2024
1 check passed
@hime hime added enhancement New feature or request Approved labels Dec 26, 2024
@msau42
Copy link
Collaborator

msau42 commented Dec 27, 2024

I think we need to grab status as well in order to handle the non-sidecar container Job handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants