Skip to content

Commit b0d39cc

Browse files
briantwatsonk8s-publishing-bot
authored andcommitted
Refactor annotate to remove factory dependency
Kubernetes-commit: 379322d65098caba106b5f820e7b9f38ab84f3fd
1 parent 7a73ded commit b0d39cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/genericclioptions/builder_flags.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ func NewResourceBuilderFlags() *ResourceBuilderFlags {
5656
// WithFile sets the FileNameFlags.
5757
// If recurse is set, it will process directory recursively. Useful when you want to manage related manifests
5858
// organized within the same directory.
59-
func (o *ResourceBuilderFlags) WithFile(recurse bool, files ...string) *ResourceBuilderFlags {
59+
func (o *ResourceBuilderFlags) WithFile(recurse bool, kustomize *string, files ...string) *ResourceBuilderFlags {
6060
o.FileNameFlags = &FileNameFlags{
6161
Usage: "identifying the resource.",
6262
Filenames: &files,
63+
Kustomize: kustomize,
6364
Recursive: ptr.To(recurse),
6465
}
6566

0 commit comments

Comments
 (0)