mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-19 07:25:19 +00:00
Applyconfig-gen: Only the root type is an applyconfiguration
This commit is contained in:
@@ -115,7 +115,10 @@ func (g *applyConfigurationGenerator) GenerateType(c *generator.Context, t *type
|
||||
sw.Do(constructor, typeParams)
|
||||
}
|
||||
}
|
||||
g.generateIsApplyConfiguration(typeParams.ApplyConfig.ApplyConfiguration, sw)
|
||||
|
||||
if typeParams.Tags.GenerateClient || hasTypeMetaField(t) {
|
||||
g.generateIsApplyConfiguration(typeParams.ApplyConfig.ApplyConfiguration, sw)
|
||||
}
|
||||
g.generateWithFuncs(t, typeParams, sw, nil, &[]string{})
|
||||
g.generateGetters(t, typeParams, sw, nil)
|
||||
return sw.Error()
|
||||
|
||||
Reference in New Issue
Block a user