Skip to content

Commit

Permalink
Use deepcopy gen fn for deepcopy-gen main
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Jan 19, 2024
1 parent 41d722d commit 5be3f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staging/src/k8s.io/code-generator/cmd/deepcopy-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ package main

import (
"flag"
"k8s.io/code-generator/cmd/defaulter-gen/embed"
"k8s.io/code-generator/cmd/deepcopy-gen/embed"
"os"

"github.com/spf13/pflag"
Expand All @@ -59,7 +59,7 @@ func main() {
flag.Set("logtostderr", "true")
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)

if err := embed.Defaulter(pflag.CommandLine, os.Args[1:]); err != nil {
if err := embed.DeepCopy(pflag.CommandLine, os.Args[1:]); err != nil {
klog.Fatalf("Error: %v", err)
}
klog.V(2).Info("Completed successfully.")
Expand Down

0 comments on commit 5be3f70

Please sign in to comment.