From 1f381401d533ebfd3663da35001fabaad84f555d Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Sat, 11 Mar 2023 12:00:55 +0000 Subject: [PATCH 1/2] :sparkles: make go/v4 default scaffold --- cmd/main.go | 2 +- hack/docs/internal/generate_component_config.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index b320ef6d4bc..da6af08b51d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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(), ) diff --git a/hack/docs/internal/generate_component_config.go b/hack/docs/internal/generate_component_config.go index e0b72c179b0..42c670f1c70 100644 --- a/hack/docs/internal/generate_component_config.go +++ b/hack/docs/internal/generate_component_config.go @@ -73,6 +73,7 @@ func (sp *Sample) GenerateSampleProject() { "--license", "apache2", "--owner", "The Kubernetes authors", "--component-config", + "--plugins=go/v3", ) CheckError("Initializing the project", err) From c58b3f1b90c39d964e3733a5dbfa8967436b1ae2 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Sat, 11 Mar 2023 12:13:18 +0000 Subject: [PATCH 2/2] :book: remove warning from quick start --- docs/book/src/quick-start.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/book/src/quick-start.md b/docs/book/src/quick-start.md index 0d49942ad97..010f4ecbabf 100644 --- a/docs/book/src/quick-start.md +++ b/docs/book/src/quick-start.md @@ -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. - - ```bash mkdir -p ~/projects/guestbook cd ~/projects/guestbook