Skip to content

Commit aca3214

Browse files
committed
applyconfiguration-gen: drop yamlUnmarshal
It's unused. Signed-off-by: Stephen Kitt <[email protected]>
1 parent a7fcc89 commit aca3214

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

staging/src/k8s.io/code-generator/cmd/applyconfiguration-gen/generators/internal.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,12 @@ func (g *internalGenerator) GenerateType(c *generator.Context, _ *types.Type, w
7171
return err
7272
}
7373
sw.Do(schemaBlock, map[string]interface{}{
74-
"schemaYAML": string(schemaYAML),
75-
"smdParser": smdParser,
76-
"smdNewParser": smdNewParser,
77-
"fmtSprintf": fmtSprintf,
78-
"syncOnce": syncOnce,
79-
"yamlObject": yamlObject,
80-
"yamlUnmarshal": yamlUnmarshal,
74+
"schemaYAML": string(schemaYAML),
75+
"smdParser": smdParser,
76+
"smdNewParser": smdNewParser,
77+
"fmtSprintf": fmtSprintf,
78+
"syncOnce": syncOnce,
79+
"yamlObject": yamlObject,
8180
})
8281

8382
return sw.Error()

staging/src/k8s.io/code-generator/cmd/applyconfiguration-gen/generators/types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ var (
3333
smdParser = types.Ref("sigs.k8s.io/structured-merge-diff/v4/typed", "Parser")
3434
testingTypeConverter = types.Ref("k8s.io/client-go/testing", "TypeConverter")
3535
yamlObject = types.Ref("sigs.k8s.io/structured-merge-diff/v4/typed", "YAMLObject")
36-
yamlUnmarshal = types.Ref("gopkg.in/yaml.v2", "Unmarshal")
3736
)

0 commit comments

Comments
 (0)