Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ : make go/v4 to be default Kubebuilder CLI scaffold #3278

Merged
merged 2 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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