@@ -94,7 +94,7 @@ func InstallCRDs(config *rest.Config, options CRDInstallOptions) ([]*apiextensio
94
94
defaultCRDOptions (& options )
95
95
96
96
// Read the CRD yamls into options.CRDs
97
- if err := readCRDFiles (& options ); err != nil {
97
+ if err := ReadCRDFiles (& options ); err != nil {
98
98
return nil , fmt .Errorf ("unable to read CRD files: %w" , err )
99
99
}
100
100
@@ -115,8 +115,8 @@ func InstallCRDs(config *rest.Config, options CRDInstallOptions) ([]*apiextensio
115
115
return options .CRDs , nil
116
116
}
117
117
118
- // readCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs.
119
- func readCRDFiles (options * CRDInstallOptions ) error {
118
+ // ReadCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs.
119
+ func ReadCRDFiles (options * CRDInstallOptions ) error {
120
120
if len (options .Paths ) > 0 {
121
121
crdList , err := renderCRDs (options )
122
122
if err != nil {
@@ -217,7 +217,7 @@ func (p *poller) poll(ctx context.Context) (done bool, err error) {
217
217
// UninstallCRDs uninstalls a collection of CRDs by reading the crd yaml files from a directory.
218
218
func UninstallCRDs (config * rest.Config , options CRDInstallOptions ) error {
219
219
// Read the CRD yamls into options.CRDs
220
- if err := readCRDFiles (& options ); err != nil {
220
+ if err := ReadCRDFiles (& options ); err != nil {
221
221
return err
222
222
}
223
223
0 commit comments