New 🌊 wave for @helm

Commit f5f131a2

f5f131a2a9a0Merged

Svyatoslav Dumchenko <[email protected]> · 4 years ago · 6 files · ~6 modified

Description

fix: fixes after multiple rebases and merges

Details

Commit
f5f131a2a9a0
Parent
a5b56be3d9ff

pkg/registry/config.gomodifiedView file

@@ -1,31 +1,8 @@
11 package registry
22
33 import (
4- "github.com/invopop/jsonschema"
54 log "github.com/sirupsen/logrus"
6- "gopkg.in/yaml.v3"
75 )
8-
9-// Configs type of array Config.
10-type Configs []Config
11-
12-// UnmarshalYAML parse Config.
13-func (r *Configs) UnmarshalYAML(node *yaml.Node) error {
14- var err error
15- *r, err = UnmarshalYAML(node)
16-
17- return err
18-}
19-
20-func (Configs) JSONSchema() *jsonschema.Schema {
21- r := &jsonschema.Reflector{
22- DoNotReference: true,
23- RequiredFromJSONSchemaTags: true,
24- }
25- var l []*config
26-
27- return r.Reflect(&l)
28-}
296
307 // config is main registry config.
318 //