File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -278,12 +278,6 @@ func CreateCRDs(config *rest.Config, crds []*apiextensionsv1.CustomResourceDefin
278
278
279
279
// renderCRDs iterate through options.Paths and extract all CRD files.
280
280
func renderCRDs (options * CRDInstallOptions ) ([]* apiextensionsv1.CustomResourceDefinition , error ) {
281
- var (
282
- err error
283
- info os.FileInfo
284
- files []string
285
- )
286
-
287
281
type GVKN struct {
288
282
GVK schema.GroupVersionKind
289
283
Name string
@@ -292,7 +286,12 @@ func renderCRDs(options *CRDInstallOptions) ([]*apiextensionsv1.CustomResourceDe
292
286
crds := map [GVKN ]* apiextensionsv1.CustomResourceDefinition {}
293
287
294
288
for _ , path := range options .Paths {
295
- var filePath = path
289
+ var (
290
+ err error
291
+ info os.FileInfo
292
+ files []string
293
+ filePath = path
294
+ )
296
295
297
296
// Return the error if ErrorIfPathMissing exists
298
297
if info , err = os .Stat (path ); os .IsNotExist (err ) {
You can’t perform that action at this time.
0 commit comments