Skip to content

Commit

Permalink
chore: document knative.Builder.WithVersion (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo authored May 8, 2023
1 parent 3b8ce68 commit b652d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/clusters/addons/knative/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func NewBuilder() *Builder {
return &Builder{version: DefaultVersion}
}

// WithVersion sets the addon version
// WithVersion sets the Knative version to deploy. The version must be a valid Knative git tag (e.g. `knative-v1.10.0`).
func (b *Builder) WithVersion(version string) (*Builder, error) {
if len(version) == 0 {
return nil, errors.New("no version provided")
Expand Down

0 comments on commit b652d6d

Please sign in to comment.