8000 fix: fake clientset ApplyScale subresource from 'status' to 'scale' · kubernetes/code-generator@100ab85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 100ab85

Browse files
a7ik8s-publishing-bot
authored andcommitted
fix: fake clientset ApplyScale subresource from 'status' to 'scale'
Signed-off-by: Amir Alavi <amiralavi7@gmail.com> Kubernetes-commit: 872c3442501ca479f399d2f9060b72d228234b30
1 parent e788e07 commit 100ab85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/client-gen/generators/fake/generator_fake_for_type.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ func (c *Fake$.type|publicPlural$) Apply(ctx context.Context, $.type|private$Nam
575575
}
576576
emptyResult := &$.resultType|raw${}
577577
obj, err := c.Fake.
578-
$if .namespaced$Invokes($.NewPatchSubresourceActionWithOptions|raw$($.type|allLowercasePlural$Resource, c.ns, $.type|private$Name, $.ApplyPatchType|raw$, data, opts.ToPatchOptions(), "status"), emptyResult)
579-
$else$Invokes($.NewRootPatchSubresourceActionWithOptions|raw$($.type|allLowercasePlural$Resource, $.type|private$Name, $.ApplyPatchType|raw$, data, opts.ToPatchOptions(), "status"), emptyResult)$end$
578+
$if .namespaced$Invokes($.NewPatchSubresourceActionWithOptions|raw$($.type|allLowercasePlural$Resource, c.ns, $.type|private$Name, $.ApplyPatchType|raw$, data, opts.ToPatchOptions(), "$.inputType|private$"), emptyResult)
579+
$else$Invokes($.NewRootPatchSubresourceActionWithOptions|raw$($.type|allLowercasePlural$Resource, $.type|private$Name, $.ApplyPatchType|raw$, data, opts.ToPatchOptions(), "$.inputType|private$"), emptyResult)$end$
580580
if obj == nil {
581581
return emptyResult, err
582582
}

0 commit comments

Comments
 (0)
0