From 407b9fefa752122e216da09adf927de23bf5fe19 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 17 Nov 2022 18:44:11 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(kustomize/v2-alpha):=20add=20kusto?= =?UTF-8?q?mize=20file=20to=20track=20crd=20sample=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manually_migration_guide_gov3_to_gov4.md | 1 + docs/book/src/migration/v3vsv4.md | 13 ++-- .../kustomize/v2-alpha/scaffolds/api.go | 19 +++++ .../templates/config/samples/kustomization.go | 70 +++++++++++++++++++ .../config/samples/kustomization.yaml | 5 ++ .../config/samples/kustomization.yaml | 5 ++ .../config/samples/kustomization.yaml | 13 ++++ .../config/samples/kustomization.yaml | 5 ++ 8 files changed, 126 insertions(+), 5 deletions(-) create mode 100644 pkg/plugins/common/kustomize/v2-alpha/scaffolds/internal/templates/config/samples/kustomization.go create mode 100644 testdata/project-v4-config/config/samples/kustomization.yaml create mode 100644 testdata/project-v4-declarative-v1/config/samples/kustomization.yaml create mode 100644 testdata/project-v4-multigroup/config/samples/kustomization.yaml create mode 100644 testdata/project-v4/config/samples/kustomization.yaml diff --git a/docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md b/docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md index 741ea3b82c..cae361c45c 100644 --- a/docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md +++ b/docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md @@ -43,6 +43,7 @@ layout: `go mod tidy` to ensure that you get the latest dependencies and your Golang code has no breaking changes. - Update the manifest under `config/` directory with all changes performed in the default scaffold done with `go/v4-alpha` plugin. (see for example `testdata/project-v4/config/`) to get all changes in the default scaffolds to be applied on your project +- Create `config/samples/kustomization.yaml` with all CR samples specified. (see for example `testdata/project-v4/config/samples/kustomization.yaml`) - Replace the import `admissionv1beta1 "k8s.io/api/admission/v1beta1"` with `admissionv1 "k8s.io/api/admission/v1"` in the webhook test files