Skip to content

Commit c44627c

Browse files
fanminshiShawn Hurley
authored andcommitted
*: remove unused projectPath from DocInput
1 parent dae149d commit c44627c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

commands/operator-sdk/cmd/add/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func apiRun(cmd *cobra.Command, args []string) {
127127

128128
// scaffold pkg/apis/<group>/<version>/doc.go
129129
filePath = filepath.Join(pkgApisDir, "doc.go")
130-
codeGen = scaffold.NewDocCodegen(&scaffold.DocInput{ProjectPath: projectPath, Resource: r})
130+
codeGen = scaffold.NewDocCodegen(&scaffold.DocInput{Resource: r})
131131
buf = &bytes.Buffer{}
132132
if err := codeGen.Render(buf); err != nil {
133133
log.Fatalf("failed to render the template for (%v): %v", filePath, err)

pkg/scaffold/doc.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ type doc struct {
2525

2626
// DocInput is the input needed to generate a pkg/apis/<group>/<version>/doc.go file
2727
type DocInput struct {
28-
// ProjectPath is the project path rooted at GOPATH.
29-
ProjectPath string
3028
// Resource defines the inputs for the new api
3129
Resource *Resource
3230
}

0 commit comments

Comments
 (0)