Use code-generator to generate clientset/informer/lister (#1492)

To reduce maintenance effort and avoid writing duplicate informer code,
use code-generator to generate clientset/informer/lister code.
This commit is contained in:
Ta-Ching Chen
2020-01-16 15:18:38 +08:00
committed by GitHub
parent b96ca0735d
commit 574fb55fcf
169 changed files with 6325 additions and 2349 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ func (opts *CreateSubCommand) complete(input cli.Input) error {
// finally create canaryCfg in the same namespace as the functions referenced
opts.canary = &fv1.CanaryConfig{
Metadata: metav1.ObjectMeta{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: fnNs,
},
@@ -127,6 +127,6 @@ func (opts *CreateSubCommand) run(input cli.Input) error {
return errors.Wrap(err, "error creating canary config")
}
fmt.Printf("canary config '%v' created\n", opts.canary.Metadata.Name)
fmt.Printf("canary config '%v' created\n", opts.canary.ObjectMeta.Name)
return nil
}