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
278278
279279// renderCRDs iterate through options.Paths and extract all CRD files.
280280func renderCRDs (options * CRDInstallOptions ) ([]* apiextensionsv1.CustomResourceDefinition , error ) {
281- var (
282- err error
283- info os.FileInfo
284- files []string
285- )
286-
287281 type GVKN struct {
288282 GVK schema.GroupVersionKind
289283 Name string
@@ -292,7 +286,12 @@ func renderCRDs(options *CRDInstallOptions) ([]*apiextensionsv1.CustomResourceDe
292286 crds := map [GVKN ]* apiextensionsv1.CustomResourceDefinition {}
293287
294288 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+ )
296295
297296 // Return the error if ErrorIfPathMissing exists
298297 if info , err = os .Stat (path ); os .IsNotExist (err ) {
You can’t perform that action at this time.
0 commit comments