-
Notifications
You must be signed in to change notification settings - Fork 413
Replace kubectl usage with utility program to apply CRDs #1802
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
Conversation
a6b1915 to
dd530cd
Compare
cmd/apply-crds/main.go
Outdated
| &cli.StringSliceFlag{ | ||
| Name: "crds-path", | ||
| Usage: "Path to CRD manifest file or directory (can be specified multiple times, directories are searched recursively)", | ||
| Required: true, |
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.
Did we want an env here too?
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 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.
a82dbba to
05279b1
Compare
05279b1 to
19567dd
Compare
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]>
19567dd to
5b00c8f
Compare
cdesiniotis
left a comment
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. Thanks @rajathagasthya this is a great improvement!
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.