Skip to content

Commit 99e275d

Browse files
authored
Merge pull request #3278 from camilamacedo86/ensure-default
✨ : make go/v4 to be default Kubebuilder CLI scaffold
2 parents 3e8df57 + c58b3f1 commit 99e275d

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func main() {
7575
),
7676
cli.WithPlugins(externalPlugins...),
7777
cli.WithDefaultPlugins(cfgv2.Version, golangv2.Plugin{}),
78-
cli.WithDefaultPlugins(cfgv3.Version, gov3Bundle),
78+
cli.WithDefaultPlugins(cfgv3.Version, gov4Bundle),
7979
cli.WithDefaultProjectVersion(cfgv3.Version),
8080
cli.WithCompletion(),
8181
)

docs/book/src/quick-start.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@ Kubebuilder provides autocompletion support for Bash and Zsh via the command `ku
5353

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

56-
<aside class="note warning">
57-
<h1> Apple Silicon (M1) </h1>
58-
59-
The current scaffold done by the CLI (`go/v3`) uses [kubernetes-sigs/kustomize][kustomize] v3 which does not provide
60-
a valid binary for Apple Silicon (`darwin/arm64`). Therefore, you can use the `go/v4` plugin
61-
instead which provides support for this platform:
62-
63-
```bash
64-
kubebuilder init --domain my.domain --repo my.domain/guestbook --plugins=go/v4
65-
```
66-
67-
</aside>
68-
6956
```bash
7057
mkdir -p ~/projects/guestbook
7158
cd ~/projects/guestbook

hack/docs/internal/generate_component_config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func (sp *Sample) GenerateSampleProject() {
7373
"--license", "apache2",
7474
"--owner", "The Kubernetes authors",
7575
"--component-config",
76+
"--plugins=go/v3",
7677
)
7778
CheckError("Initializing the project", err)
7879

0 commit comments

Comments
 (0)