File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,21 @@ func (o *projectOptions) RunInit() {
63
63
log .Fatal (err )
64
64
}
65
65
66
+ // default controller manager image name
67
+ imgName := "controller:latest"
68
+
66
69
s = & scaffold.Scaffold {}
67
70
err = s .Execute (input.Options {ProjectPath : p .Path , BoilerplatePath : b .Path },
68
71
o .gopkg ,
69
72
o .mgr ,
70
- & project.Makefile {},
73
+ & project.Makefile {Image : imgName },
71
74
o .dkr ,
72
75
& manager.APIs {},
73
76
& manager.Controller {},
74
- & manager.Config {},
75
- & project.GitIgnore {})
77
+ & manager.Config {Image : imgName },
78
+ & project.GitIgnore {},
79
+ & project.Kustomize {},
80
+ & project.KustomizeImagePatch {})
76
81
if err != nil {
77
82
log .Fatal (err )
78
83
}
@@ -119,6 +124,8 @@ Writes the following files:
119
124
- a PROJECT file with the domain and repo
120
125
- a Makefile to build the project
121
126
- a Gopkg.toml with project dependencies
127
+ - a Kustomization.yaml for customizating manifests
128
+ - a Patch file for customizing image for manager manifests
122
129
- a cmd/manager/main.go to run
123
130
124
131
project will prompt the user to run 'dep ensure' after writing the project files.
Original file line number Diff line number Diff line change @@ -72,9 +72,7 @@ func (o *apiOptions) RunAddAPI() {
72
72
& resource.Doc {Resource : r },
73
73
& resource.Group {Resource : r },
74
74
& resource.AddToScheme {Resource : r },
75
- & resource.CRD {Resource : r },
76
- & resource.Role {Resource : r },
77
- & resource.RoleBinding {Resource : r },
75
+ & resource.CRDSample {Resource : r },
78
76
)
79
77
if err != nil {
80
78
log .Fatal (err )
You can’t perform that action at this time.
0 commit comments