Skip to content

Commit

Permalink
Merge pull request #3278 from camilamacedo86/ensure-default
Browse files Browse the repository at this point in the history
✨  : make go/v4 to be default Kubebuilder CLI scaffold
  • Loading branch information
k8s-ci-robot committed Mar 13, 2023
2 parents 3e8df57 + c58b3f1 commit 99e275d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func main() {
),
cli.WithPlugins(externalPlugins...),
cli.WithDefaultPlugins(cfgv2.Version, golangv2.Plugin{}),
cli.WithDefaultPlugins(cfgv3.Version, gov3Bundle),
cli.WithDefaultPlugins(cfgv3.Version, gov4Bundle),
cli.WithDefaultProjectVersion(cfgv3.Version),
cli.WithCompletion(),
)
Expand Down
13 changes: 0 additions & 13 deletions docs/book/src/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,6 @@ Kubebuilder provides autocompletion support for Bash and Zsh via the command `ku

Create a directory, and then run the init command inside of it to initialize a new project. Follows an example.

<aside class="note warning">
<h1> Apple Silicon (M1) </h1>

The current scaffold done by the CLI (`go/v3`) uses [kubernetes-sigs/kustomize][kustomize] v3 which does not provide
a valid binary for Apple Silicon (`darwin/arm64`). Therefore, you can use the `go/v4` plugin
instead which provides support for this platform:

```bash
kubebuilder init --domain my.domain --repo my.domain/guestbook --plugins=go/v4
```

</aside>

```bash
mkdir -p ~/projects/guestbook
cd ~/projects/guestbook
Expand Down
1 change: 1 addition & 0 deletions hack/docs/internal/generate_component_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (sp *Sample) GenerateSampleProject() {
"--license", "apache2",
"--owner", "The Kubernetes authors",
"--component-config",
"--plugins=go/v3",
)
CheckError("Initializing the project", err)

Expand Down

0 comments on commit 99e275d

Please sign in to comment.