-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🌱 Export envtest.ReadCRDFiles #3129
base: main
Are you sure you want to change the base?
🌱 Export envtest.ReadCRDFiles #3129
Conversation
Signed-off-by: Stefan Büringer buringerst@vmware.com
// readCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs. | ||
func readCRDFiles(options *CRDInstallOptions) error { | ||
// ReadCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs. | ||
func ReadCRDFiles(options *CRDInstallOptions) error { |
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.
Not sure if I should change the input paramter to only take / return exactly what is needed.
The current input parameter is a bit awkward. On the other side we have the same in WaitForCRDs
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.
No strong opinion either way
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.
Yeah same :)
/assign @vincepri @alvaroaleman |
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.
/hold
In case Vince wants to have a look
// readCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs. | ||
func readCRDFiles(options *CRDInstallOptions) error { | ||
// ReadCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs. | ||
func ReadCRDFiles(options *CRDInstallOptions) error { |
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.
No strong opinion either way
LGTM label has been added. Git tree hash: c1d2ae023c1542c6f661e94b55d030d8302e45c9
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Stefan Büringer buringerst@vmware.com
I would like to export ReadCRDFiles so I can use the functionality without being forced to use the entire InstallCRDs func.
CreateCRDs and WaitForCRDs are already exported