File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
commands/operator-sdk/cmd/add Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ func apiRun(cmd *cobra.Command, args []string) {
127
127
128
128
// scaffold pkg/apis/<group>/<version>/doc.go
129
129
filePath = filepath .Join (pkgApisDir , "doc.go" )
130
- codeGen = scaffold .NewDocCodegen (& scaffold.DocInput {ProjectPath : projectPath , Resource : r })
130
+ codeGen = scaffold .NewDocCodegen (& scaffold.DocInput {Resource : r })
131
131
buf = & bytes.Buffer {}
132
132
if err := codeGen .Render (buf ); err != nil {
133
133
log .Fatalf ("failed to render the template for (%v): %v" , filePath , err )
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ type doc struct {
25
25
26
26
// DocInput is the input needed to generate a pkg/apis/<group>/<version>/doc.go file
27
27
type DocInput struct {
28
- // ProjectPath is the project path rooted at GOPATH.
29
- ProjectPath string
30
28
// Resource defines the inputs for the new api
31
29
Resource * Resource
32
30
}
You can’t perform that action at this time.
0 commit comments