@@ -81,10 +81,10 @@ func (r RemoteReference) Validate() error {
8181
8282// Builder is capable of building a (specific) chart Reference.
8383type Builder interface {
84- // Build builds and packages a Helm chart with the given Reference
85- // and BuildOptions and writes it to p. It returns the Build result,
86- // or an error. It may return an error for unsupported Reference
87- // implementations.
84+ // Build pulls and (optionally) packages a Helm chart with the given
85+ // Reference and BuildOptions, and writes it to p.
86+ // It returns the Build result, or an error.
87+ // It may return an error for unsupported Reference implementations.
8888 Build (ctx context.Context , ref Reference , p string , opts BuildOptions ) (* Build , error )
8989}
9090
@@ -94,25 +94,25 @@ type BuildOptions struct {
9494 // the spec, and is included during packaging.
9595 // Ref: https://semver.org/#spec-item-10
9696 VersionMetadata string
97- // ValueFiles can be set to a list of relative paths, used to compose
97+ // ValuesFiles can be set to a list of relative paths, used to compose
9898 // and overwrite an alternative default "values.yaml" for the chart.
99- ValueFiles []string
99+ ValuesFiles []string
100100 // CachedChart can be set to the absolute path of a chart stored on
101101 // the local filesystem, and is used for simple validation by metadata
102102 // comparisons.
103103 CachedChart string
104104 // Force can be set to force the build of the chart, for example
105- // because the list of ValueFiles has changed.
105+ // because the list of ValuesFiles has changed.
106106 Force bool
107107}
108108
109- // GetValueFiles returns BuildOptions.ValueFiles , except if it equals
109+ // GetValuesFiles returns BuildOptions.ValuesFiles , except if it equals
110110// "values.yaml", which returns nil.
111- func (o BuildOptions ) GetValueFiles () []string {
112- if len (o .ValueFiles ) == 1 && filepath .Clean (o .ValueFiles [0 ]) == filepath .Clean (chartutil .ValuesfileName ) {
111+ func (o BuildOptions ) GetValuesFiles () []string {
112+ if len (o .ValuesFiles ) == 1 && filepath .Clean (o .ValuesFiles [0 ]) == filepath .Clean (chartutil .ValuesfileName ) {
113113 return nil
114114 }
115- return o .ValueFiles
115+ return o .ValuesFiles
116116}
117117
118118// Build contains the Builder.Build result, including specific
@@ -124,14 +124,14 @@ type Build struct {
124124 Name string
125125 // Version of the packaged chart.
126126 Version string
127- // ValueFiles is the list of files used to compose the chart's
127+ // ValuesFiles is the list of files used to compose the chart's
128128 // default "values.yaml".
129- ValueFiles []string
129+ ValuesFiles []string
130130 // ResolvedDependencies is the number of local and remote dependencies
131131 // collected by the DependencyManager before building the chart.
132132 ResolvedDependencies int
133133 // Packaged indicates if the Builder has packaged the chart.
134- // This can for example be false if ValueFiles is empty and the chart
134+ // This can for example be false if ValuesFiles is empty and the chart
135135 // source was already packaged.
136136 Packaged bool
137137}
@@ -150,8 +150,8 @@ func (b *Build) Summary() string {
150150 }
151151 s .WriteString (fmt .Sprintf ("%s '%s' chart with version '%s'" , action , b .Name , b .Version ))
152152
153- if b .Packaged && len (b .ValueFiles ) > 0 {
154- s .WriteString (fmt .Sprintf (", with merged value files %v" , b .ValueFiles ))
153+ if b .Packaged && len (b .ValuesFiles ) > 0 {
154+ s .WriteString (fmt .Sprintf (", with merged values files %v" , b .ValuesFiles ))
155155 }
156156
157157 if b .Packaged && b .ResolvedDependencies > 0 {
0 commit comments