Rename variable, constants and struct fields following stylecheck linter recommendation

This commit is contained in:
Arthur Mello
2019-12-05 22:39:29 -03:00
parent f2c7066088
commit e811da14d8
14 changed files with 25 additions and 25 deletions

View File

@@ -35,8 +35,8 @@ type ByteWriter struct {
// ByteWriter will wrap the Resources in a List .items field.
WrappingKind string
// WrappingApiVersion is the apiVersion for WrappingKind
WrappingApiVersion string
// WrappingAPIVersion is the apiVersion for WrappingKind
WrappingAPIVersion string
// Sort if set, will cause ByteWriter to sort the the nodes before writing them.
Sort bool
@@ -102,7 +102,7 @@ func (w ByteWriter) Write(nodes []*yaml.RNode) error {
Style: w.Style,
Content: []*yaml.Node{
{Kind: yaml.ScalarNode, Value: "apiVersion"},
{Kind: yaml.ScalarNode, Value: w.WrappingApiVersion},
{Kind: yaml.ScalarNode, Value: w.WrappingAPIVersion},
{Kind: yaml.ScalarNode, Value: "kind"},
{Kind: yaml.ScalarNode, Value: w.WrappingKind},
{Kind: yaml.ScalarNode, Value: "items"}, items,