@@ -125,7 +125,7 @@ type (
125
125
126
126
const (
127
127
// anything that can take values
128
- stepClassValueable stepClass = "valueable "
128
+ stepClassTakesValues stepClass = "takesValues "
129
129
// only helm template steps
130
130
stepClassHelm stepClass = "helm"
131
131
// only ytt template steps
@@ -150,13 +150,13 @@ func (p *templateStepsPatcher) classifySteps() {
150
150
classes := stepClasses {}
151
151
152
152
if step .HelmTemplate != nil {
153
- classes .Insert (stepClassHelm , stepClassValueable )
153
+ classes .Insert (stepClassHelm , stepClassTakesValues )
154
154
}
155
155
if step .Ytt != nil {
156
- classes .Insert (stepClassYtt , stepClassValueable )
156
+ classes .Insert (stepClassYtt , stepClassTakesValues )
157
157
}
158
158
if step .Cue != nil {
159
- classes .Insert (stepClassCue , stepClassValueable )
159
+ classes .Insert (stepClassCue , stepClassTakesValues )
160
160
}
161
161
162
162
p .classifiedSteps [i ] = classes
@@ -213,11 +213,11 @@ func (p *templateStepsPatcher) patch() error {
213
213
return nil
214
214
}
215
215
216
- // patchFromValues patches all 'valueable' template steps with values from the
217
- // packageInstall
216
+ // patchFromValues patches all template steps that take values with values from
217
+ // the packageInstall
218
218
func (p * templateStepsPatcher ) patchFromValues () error {
219
219
for _ , values := range p .values {
220
- stepIdxs , err := p .defaultStepIdxs (values .TemplateSteps , stepClassValueable )
220
+ stepIdxs , err := p .defaultStepIdxs (values .TemplateSteps , stepClassTakesValues )
221
221
if err != nil {
222
222
return err
223
223
}
@@ -226,7 +226,7 @@ func (p *templateStepsPatcher) patchFromValues() error {
226
226
if stepIdx < 0 || stepIdx >= len (p .templateSteps ) {
227
227
return fmt .Errorf ("template step %d out of range" , stepIdx )
228
228
}
229
- if ! p .stepHasClass (stepIdx , stepClassValueable ) {
229
+ if ! p .stepHasClass (stepIdx , stepClassTakesValues ) {
230
230
return fmt .Errorf ("template step %d does not support values" , stepIdx )
231
231
}
232
232
0 commit comments