Skip to content

Conversation

@rajathagasthya
Copy link
Contributor

kubectl is heavyweight and often has CVEs, so we are forced to bump its version even if the final gpu-operator image does not contain kubectl bits. This change lets us remove that dependency and use client-go functions to manage CRDs.

@coveralls
Copy link

coveralls commented Oct 20, 2025

Coverage Status

coverage: 22.266% (-0.09%) from 22.354%
when pulling 5b00c8f on remove-kubectl
into 109f67e on main.

&cli.StringSliceFlag{
Name: "crds-path",
Usage: "Path to CRD manifest file or directory (can be specified multiple times, directories are searched recursively)",
Required: true,
Copy link
Member

Choose a reason for hiding this comment

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

Did we want an env here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's necessary. I could it see DEBUG env above being useful, but I don't anticipate users wanting to set an env with these paths.

@rajathagasthya rajathagasthya force-pushed the remove-kubectl branch 2 times, most recently from a82dbba to 05279b1 Compare October 27, 2025 18:16
@rajathagasthya rajathagasthya marked this pull request as ready for review October 27, 2025 18:19
kubectl is heavyweight and often has CVEs, so we are forced to bump its
version even if the final gpu-operator image does not contain kubectl
bits. This change lets us remove that dependency and use client-go
functions to manage CRDs.

Signed-off-by: Rajath Agasthya <[email protected]>
Copy link
Contributor

@cdesiniotis cdesiniotis left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @rajathagasthya this is a great improvement!

@cdesiniotis cdesiniotis merged commit ee39b45 into main Oct 28, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants