Skip to content

Commit ce1a6bc

Browse files
camilamacedo86sj14k8s-ci-roboteverettravenKavinjsir
authored
📖 Update docs for release 3.8.0 (#3109)
* Fix nil pointer in Finalizer example * 📖 fix link for platform support * update kubebuilder core dependencies for k8s 1.25 Signed-off-by: Bryce Palmer <[email protected]> * docs: notify deps install to build book * Update controller-tools version (v0.9.2->v0.10.0) * 🐛 remove duplicate words and fix spelling mistakes * ✨ update kubebuilder kubernetes version * Update the export path of webhook * 📖 fix broken links * fixing the kubebuilder install locally curl request * add dependency bot updates * 🌱 Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * 🌱 Bump actions/setup-go from 2 to 3 Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](actions/setup-go@v2...v3) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * 🌱 Bump goreleaser/goreleaser-action from 2 to 3 Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2 to 3. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](goreleaser/goreleaser-action@v2...v3) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/spf13/afero from 1.6.0 to 1.9.2 Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.6.0 to 1.9.2. - [Release notes](https://github.com/spf13/afero/releases) - [Commits](spf13/afero@v1.6.0...v1.9.2) --- updated-dependencies: - dependency-name: github.com/spf13/afero dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/onsi/gomega from 1.19.0 to 1.20.2 Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.19.0 to 1.20.2. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.19.0...v1.20.2) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0 Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.1 to 1.9.0. - [Release notes](https://github.com/sirupsen/logrus/releases) - [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md) - [Commits](sirupsen/logrus@v1.8.1...v1.9.0) --- updated-dependencies: - dependency-name: github.com/sirupsen/logrus dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump k8s.io/apimachinery from 0.25.0 to 0.25.2 Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.25.0 to 0.25.2. - [Release notes](https://github.com/kubernetes/apimachinery/releases) - [Commits](kubernetes/apimachinery@v0.25.0...v0.25.2) --- updated-dependencies: - dependency-name: k8s.io/apimachinery dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/gobuffalo/flect from 0.2.5 to 0.3.0 Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect) from 0.2.5 to 0.3.0. - [Release notes](https://github.com/gobuffalo/flect/releases) - [Commits](gobuffalo/flect@v0.2.5...v0.3.0) --- updated-dependencies: - dependency-name: github.com/gobuffalo/flect dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * docs: describe e2e test towards plugin Co-authored-by: Camila Macedo <[email protected]> * 🌱 remove WORKSPACE file commited by mistake * remove unused value * Bump github.com/spf13/cobra from 1.4.0 to 1.5.0 Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](spf13/cobra@v1.4.0...v1.5.0) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/onsi/ginkgo/v2 from 2.1.6 to 2.2.0 Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.1.6 to 2.2.0. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.1.6...v2.2.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/cloudflare/cfssl from 1.5.0 to 1.6.3 Bumps [github.com/cloudflare/cfssl](https://github.com/cloudflare/cfssl) from 1.5.0 to 1.6.3. - [Release notes](https://github.com/cloudflare/cfssl/releases) - [Changelog](https://github.com/cloudflare/cfssl/blob/master/CHANGELOG) - [Commits](cloudflare/cfssl@v1.5.0...v1.6.3) --- updated-dependencies: - dependency-name: github.com/cloudflare/cfssl dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * update simple-external-plugin-tutorial * update mdbook * ⚠️ remove config-gen alpha option * 📖 clarifies plugins available and its usage * 📖 update doc samples * ✨ (go/v4-alpha) : update kustomize version from 4.5.5 to 4.5.7 * ✨ (grafana/v1-alpha) : add custom units for custom grafana dashboards (#2965) :sparkles: add custom units for custom grafana dashboards Signed-off-by: Jirka Kremser <[email protected]> Signed-off-by: Jirka Kremser <[email protected]> * cleanup: cert-manager and prometheus installs into e2e tests * Apply suggestions from code review * fixed bug for component-config flag updated testdata * Make jmrodri and varsha admins Signed-off-by: jesus m. rodriguez <[email protected]> * Bump github.com/onsi/gomega from 1.20.2 to 1.21.1 Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.20.2 to 1.21.1. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.20.2...v1.21.1) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * 📖 Updating doc with Installation steps of cert-manager and prometheus (#2982) * Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks Adding installing steps for testing webhooks * Adding installing steps for testing webhooks * Adding installing steps for testing webhooks * Adding installing steps for testing webhooks * 🐛 : leader-elect arg scaffolded should be scaffolded when component config option is not used (#3013) * updated templates for component config * updates * update * update revert main.go * update revert main.go * revert changes and go thru docs once * Update make build cmd with manifests * Bump github.com/spf13/cobra from 1.5.0 to 1.6.0 Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.5.0 to 1.6.0. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](spf13/cobra@v1.5.0...v1.6.0) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump golang.org/x/text from 0.3.7 to 0.4.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.4.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.3.7...v0.4.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * :seeding: update CLI deps * golangci-lint: add recommended revive checks to linter-settings but disable checks with to many findings. Fix findings * Improve rendering of the documentation This fixes various rendering issues: * Wrong or uninterpreted formatting * Some missing links * Incorrect markup * Missing documentation pages This doesn't fix all the links but at least the initial ones. * update cronjob to use batchv1 api * Fix grammar in comment Change `these is` to `these are` * Enable revive unused-parameter check and fix findings * Bump github.com/onsi/ginkgo/v2 from 2.3.1 to 2.4.0 Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.3.1 to 2.4.0. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.3.1...v2.4.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/spf13/cobra from 1.6.0 to 1.6.1 Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.0 to 1.6.1. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](spf13/cobra@v1.6.0...v1.6.1) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update github workflow to use same golangci-lint minor version as Makefile * fix docker buildx args Signed-off-by: Mikhail Sidorov <[email protected]> * 🐛 (kustomize/v2-alpha): Fix typo issue in the labels added to the manifests (#3047) * Fix typo in kubernets (missing 'e') * make generate * Add KB project git-repo and edit icons * Add doc FAQ section * docs: supplement plugin creation * Update joelanford/go-apidiff (v0.4.0 -> v0.5.0) * Bump github.com/onsi/gomega from 1.22.1 to 1.23.0 Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.22.1 to 1.23.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.22.1...v1.23.0) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/onsi/gomega from 1.23.0 to 1.24.0 Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.23.0 to 1.24.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.23.0...v1.24.0) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/onsi/ginkgo/v2 from 2.4.0 to 2.5.0 Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.4.0 to 2.5.0. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.4.0...v2.5.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/spf13/afero from 1.9.2 to 1.9.3 Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.9.2 to 1.9.3. - [Release notes](https://github.com/spf13/afero/releases) - [Commits](spf13/afero@v1.9.2...v1.9.3) --- updated-dependencies: - dependency-name: github.com/spf13/afero dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump golang.org/x/tools from 0.2.0 to 0.3.0 Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.2.0 to 0.3.0. - [Release notes](https://github.com/golang/tools/releases) - [Commits](golang/tools@v0.2.0...v0.3.0) --- updated-dependencies: - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/onsi/gomega from 1.24.0 to 1.24.1 Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.24.0 to 1.24.1. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.24.0...v1.24.1) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix typo in Makefile * ✨ add version check for makefile template tools (#3077) * add version check for makefile template tools Prevent running controller-gen and kustomize commands with a version that does not match the one specified in the corresponding CONTROLLER_TOOLS_VERSION or KUSTOMIZE_VERSION vars Addresses #3068 * Update makefile target descriptions * Updated descriptions for `kustomize` and `controller-gen` targets. * Reformatted `controller-gen` recipe to reduce line length Signed-off-by: Eduardo Coria <[email protected]> * update makefile samples Signed-off-by: Eduardo Coria <[email protected]> Signed-off-by: Eduardo Coria <[email protected]> * fix unexpected end of file error in makefiles Signed-off-by: Eduardo Coria <[email protected]> * ✨ Add go/v4 base and migration guide Co-authored-by: Varsha <[email protected]> * Update docs/book/src/plugins/go-v4-plugin.md Co-authored-by: Varsha <[email protected]> * Update docs/book/src/migration/legacy.md Co-authored-by: Varsha <[email protected]> * Update docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md Co-authored-by: Varsha <[email protected]> * Update docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md Co-authored-by: Varsha <[email protected]> * Update docs/book/src/migration/manually_migration_guide_gov3_to_gov4.md Co-authored-by: Varsha <[email protected]> * (go/v3,go/v4-alpha): Upgrade controller-runtime version from 1.13.0 to 1.13.1 * 📖 : suggest specify plugin for pr * Bump github.com/onsi/ginkgo/v2 from 2.5.0 to 2.5.1 Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.5.0 to 2.5.1. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.5.0...v2.5.1) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * docs: fix typo in the component config tutorial Signed-off-by: Andreas Gerstmayr <[email protected]> * 🌱: refact testdata * ✨ (kustomize/v2-alpha): add kustomize file to track crd sample info * add action to lint yaml and fix existing yamllint failures Signed-off-by: Bryce Palmer <[email protected]> * update yamllint to now be run via Makefile Signed-off-by: Bryce Palmer <[email protected]> * run yamllint target as part of lint target Signed-off-by: Bryce Palmer <[email protected]> * add yamllint job back as the lint job only runs golangci-lint Signed-off-by: Bryce Palmer <[email protected]> * bump proxy image * fix: Remove trailing space making yamllint fail on new project * (kustomize/v2-alpha): change kustomization file to track samples to use marker instead of overwritting * (deployimage/v1-alpha): fix error to scaffold go/v4-alpha projects * Replace restricted-access ComponentConfig design doc link with the public one Signed-off-by: Michail Resvanis <[email protected]> Signed-off-by: Bryce Palmer <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Jirka Kremser <[email protected]> Signed-off-by: jesus m. rodriguez <[email protected]> Signed-off-by: Mikhail Sidorov <[email protected]> Signed-off-by: Eduardo Coria <[email protected]> Signed-off-by: Andreas Gerstmayr <[email protected]> Signed-off-by: Michail Resvanis <[email protected]> Co-authored-by: Simon Jürgensmeyer <[email protected]> Co-authored-by: Kubernetes Prow Robot <[email protected]> Co-authored-by: Camila Macedo <[email protected]> Co-authored-by: Bryce Palmer <[email protected]> Co-authored-by: Tony <[email protected]> Co-authored-by: Oscar Utbult <[email protected]> Co-authored-by: Yash Singh <[email protected]> Co-authored-by: Abhishek koserwal <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jirka Kremser <[email protected]> Co-authored-by: laxmikantbpandhare <[email protected]> Co-authored-by: jesus m. rodriguez <[email protected]> Co-authored-by: Phillip Wittrock <[email protected]> Co-authored-by: Yash Singh <[email protected]> Co-authored-by: Laxmikant Bhaskar Pandhare <[email protected]> Co-authored-by: astraw99 <[email protected]> Co-authored-by: Jonathan Ballet <[email protected]> Co-authored-by: Krishna Indani <[email protected]> Co-authored-by: Nicholas Seemiller <[email protected]> Co-authored-by: Mikhail Sidorov <[email protected]> Co-authored-by: Marc Villacorta <[email protected]> Co-authored-by: Shunsuke Ise <[email protected]> Co-authored-by: Eduardo M Coria <[email protected]> Co-authored-by: Eduardo Coria <[email protected]> Co-authored-by: Varsha <[email protected]> Co-authored-by: Andreas Gerstmayr <[email protected]> Co-authored-by: Erik Godding Boye <[email protected]> Co-authored-by: Michail Resvanis <[email protected]>
1 parent 5b33042 commit ce1a6bc

File tree

659 files changed

+10736
-8107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

659 files changed

+10736
-8107
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ body:
3636
<summary>Code & details examples</summary>
3737
3838
`````markdown
39-
Some code code written in Go:
39+
Some code written in Go:
4040
4141
```go
4242
type Manager struct {

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ body:
3636
<summary>Code & details examples</summary>
3737
3838
`````markdown
39-
Some code code written in Go:
39+
Some code written in Go:
4040
4141
```go
4242
type Manager struct {
@@ -75,7 +75,7 @@ body:
7575
7676
Does it require a particular Kubernetes version?
7777
78-
Is there currently another isssue associated with this (use github syntax
78+
Is there currently another issue associated with this (use github syntax
7979
like `#xyz` to link to it)?
8080
validations: {required: true}
8181

.github/dependabot.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
9+
# Maintain dependencies for GitHub Actions
10+
- package-ecosystem: "github-actions"
11+
# Workflow files stored in the
12+
# default location of `.github/workflows`
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+
commit-message:
17+
prefix: ":seedling:"
18+
labels:
19+
- "ok-to-test"
20+
21+
# Maintain dependencies for go
22+
- package-ecosystem: "gomod"
23+
directory: "/"
24+
schedule:
25+
interval: "weekly"
26+
labels:
27+
- "ok-to-test"
28+
29+
# Maintain dependencies for dockerfile in the branches
30+
- package-ecosystem: docker
31+
directory: "/build/thirdparty/darwin"
32+
target-branch: "tools-releases"
33+
schedule:
34+
interval: daily
35+
- package-ecosystem: docker
36+
directory: "/build/thirdparty/linux"
37+
target-branch: "tools-releases"
38+
schedule:
39+
interval: "weekly"
40+
41+
# Maintain dependencies for dockerfile scaffold in the projects
42+
- package-ecosystem: docker
43+
directory: "testdata/project-v3"
44+
schedule:
45+
interval: daily
46+
- package-ecosystem: docker
47+
directory: "testdata/project-v4"
48+
schedule:
49+
interval: "weekly"

.github/workflows/apidiff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
go-version: "1.19"
4141
- name: Execute go-apidiff
42-
uses: joelanford/go-apidiff@v0.4.0
42+
uses: joelanford/go-apidiff@v0.5.0
4343
with:
4444
compare-imports: true
4545
print-compatible: true

.github/workflows/lint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Run linter
4040
uses: golangci/golangci-lint-action@v3
4141
with:
42-
version: v1.49 # Always uses the latest patch version.
42+
version: v1.50
4343
only-new-issues: true # Show only new issues if it's a pull request
4444
- name: Report failure
4545
uses: nashmaniac/[email protected]
@@ -50,3 +50,10 @@ jobs:
5050
token: ${{ secrets.GITHUB_TOKEN }}
5151
labels: kind/bug
5252
body: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
53+
54+
yamllint:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v3
58+
- name: Run yamllint make target
59+
run: make yamllint

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
1515
- name: Fetch all tags
1616
run: git fetch --force --tags
1717
- name: Set up Go
18-
uses: actions/setup-go@v2
18+
uses: actions/setup-go@v3
1919
with:
2020
go-version: '~1.19'
2121
- name: Run GoReleaser
22-
uses: goreleaser/goreleaser-action@v2
22+
uses: goreleaser/goreleaser-action@v3
2323
with:
2424
version: v1.11.2
2525
args: release -f ./build/.goreleaser.yml --rm-dist

.github/workflows/unit-tests-legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Therefore, we probably will deprecate go/v2 soon since we cannot upgrade it
3333
# to use the versions of controller-runtime > v0.9
3434
# and controller-tools > v0.6 as k8s > 1.21 then it might not be valid we spend effort on this fix
35-
go-version: "1.17"
35+
go-version: "1.19"
3636
# This step is needed as the following one tries to remove
3737
# kustomize for each test but has no permission to do so
3838
- name: Remove pre-installed kustomize

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
.idea/
22
.vscode/
3-
3+
WORKSPACE
44
# don't check in the build output of the book
55
docs/book/book/
66

7+
# ignore auto-generated dir by `mdbook serve`
8+
docs/book/src/docs
9+
710
# Editor temp files
811
*~
912
\#*#
@@ -22,3 +25,4 @@ docs/book/book/
2225
# skip testdata go.sum, since it may have
2326
# different result depending on go version
2427
/testdata/**/go.sum
28+
/docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1/bin

.golangci.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
run:
2+
deadline: 5m
3+
allow-parallel-runners: true
4+
15
issues:
26
# don't skip warning about doc comments
37
# don't exclude the default set of lint
@@ -13,8 +17,41 @@ linters-settings:
1317
enable=fieldalignment: true
1418
revive:
1519
rules:
16-
- name: if-return
17-
disabled: true
20+
# The following rules are recommended https://github.com/mgechev/revive#recommended-configuration
21+
- name: blank-imports
22+
- name: context-as-argument
23+
- name: context-keys-type
24+
- name: dot-imports
25+
- name: error-return
26+
- name: error-strings
27+
- name: error-naming
28+
- name: exported
29+
disabled: true # TODO: Investigate if it should be enabled. Disabled for now due to many findings.
30+
- name: if-return
31+
disabled: true # TODO: Investigate if it should be enabled. Disabled for now due to many findings.
32+
- name: increment-decrement
33+
- name: var-naming
34+
disabled: true # TODO: Investigate if it should be enabled. Disabled for now due to many findings.
35+
- name: var-declaration
36+
- name: package-comments
37+
disabled: true # TODO: Investigate if it should be enabled. Disabled for now due to many findings.
38+
- name: range
39+
- name: receiver-naming
40+
- name: time-naming
41+
- name: unexported-return
42+
- name: indent-error-flow
43+
- name: errorf
44+
- name: empty-block
45+
disabled: true # TODO: Investigate if it should be enabled. Disabled for now due to many findings.
46+
- name: superfluous-else
47+
- name: unused-parameter
48+
- name: unreachable-code
49+
- name: redefines-builtin-id
50+
#
51+
# Rules in addition to the recommended configuration above.
52+
#
53+
- name: bool-literal-in-expr
54+
- name: constant-logical-expr
1855

1956
linters:
2057
disable-all: true
@@ -40,6 +77,3 @@ linters:
4077
- unconvert
4178
- unparam
4279
- unused
43-
44-
run:
45-
deadline: 5m

CONTRIBUTING.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,63 @@ Following the targets that can be used to test your changes locally.
6262

6363
**NOTE** To use the `make lint` is required to install `golangci-lint` locally. More info: https://github.com/golangci/golangci-lint#install
6464

65+
### Test Plugin
66+
67+
If your intended PR creates a new plugin, make sure the PR also provides test cases. Testing should include:
68+
69+
1. `e2e tests` to validate the behavior of the proposed plugin.
70+
2. `sample projects` to verify the scaffolded output from the plugin.
71+
72+
#### 1. Plugin E2E Tests
73+
74+
All the plugins provided by Kubebuilder should be validated through `e2e-tests` across multiple platforms.
75+
76+
Current Kubebuilder provides the testing framework that includes testing code based on [ginkgo](https://github.com/onsi/ginkgo), [Github Actions](https://github.com/Kavinjsir/kubebuilder/blob/docs%2Ftest-plugin/.github/workflows/testdata.yml) for unit tests, and multiple env tests driven by [test-infra](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/kubebuilder/kubebuilder-presubmits.yaml).
77+
78+
To fully test the proposed plugin:
79+
80+
1. Create a new package(folder) under `test/e2e/<your-plugin>`.
81+
2. Create [e2e_suite_test.go](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/v4/e2e_suite_test.go), which imports the necessary testing framework.
82+
3. Create `generate_test.go` ([ref](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/v4/generate_test.go)). That should:
83+
- Introduce/Receive a `TextContext` instance
84+
- Trigger the plugin's bound subcommands. See [Init](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L213), [CreateAPI](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.6.0/test/e2e/utils/test_context.go#L222)
85+
- Use [PluginUtil](https://pkg.go.dev/sigs.k8s.io/kubebuilder/v3/pkg/plugin/util) to verify the scaffolded outputs. See [InsertCode](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/pkg/plugin/util/util.go#L67), [ReplaceInFile](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.6.0/pkg/plugin/util/util.go#L196), [UncommendCode](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.6.0/pkg/plugin/util/util.go#L86)
86+
4. Create `plugin_cluster_test.go` ([ref](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/v4/plugin_cluster_test.go)). That should:
87+
88+
- 4.1. Setup testing environment, e.g:
89+
90+
- Cleanup environment, create temp dir. See [Prepare](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L97)
91+
- If your test will cover the provided features then, ensure that you install prerequisites CRDs: See [InstallCertManager](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L138), [InstallPrometheusManager](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.6.0/test/e2e/utils/test_context.go#L171)
92+
93+
- 4.2. Run the function from `generate_test.go`.
94+
95+
- 4.3. Further make sure the scaffolded output works, e.g:
96+
97+
- Execute commands in your `Makefile`. See [Make](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L240)
98+
- Temporary load image of the testing controller. See [LoadImageToKindCluster](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L283)
99+
- Call Kubectl to validate running resources. See [utils.Kubectl](https://pkg.go.dev/sigs.k8s.io/kubebuilder/v3/test/e2e/utils#Kubectl)
100+
101+
- 4.4. Delete temporary resources after testing exited, e.g:
102+
- Uninstall prerequisites CRDs: See [UninstallPrometheusOperManager](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L183)
103+
- Delete temp dir. See [Destroy](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/utils/test_context.go#L255)
104+
105+
5. Add the command in [test/e2e/plugin](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/e2e/setup.sh#L65) to run your testing code:
106+
107+
```shell
108+
go test $(dirname "$0")/<your-plugin-test-folder> $flags -timeout 30m
109+
```
110+
111+
#### 2. Sample Projects from the Plugin
112+
113+
It is also necessary to test consistency of the proposed plugin across different env and the integration with other plugins.
114+
115+
This is performed by generating sample projects based on the plugins. The CI workflow defined in Github Action would validate the availability and the consistency.
116+
117+
See:
118+
119+
- [test/testdata/generated.sh](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/test/testdata/generate.sh#L144)
120+
- [make generate](https://github.com/kubernetes-sigs/kubebuilder/blob/v3.7.0/Makefile#L70)
121+
65122
## PR Process
66123

67124
See [VERSIONING.md](VERSIONING.md) for a full description. TL;DR:
@@ -82,6 +139,13 @@ changes, which don't deserve a release note. Please don't abuse it.
82139
You can also use the equivalent emoji directly, since GitHub doesn't
83140
render the `:xyz:` aliases in PR titles.
84141

142+
If the PR is "plugin" scoped, you may also append the responding plugin names in the prefix.
143+
[For instance](https://github.com/kubernetes-sigs/kubebuilder/commit/0b36d0c4021bbf52f29d5a990157466761ec180c):
144+
145+
```
146+
🐛 (kustomize/v2-alpha): Fix typo issue in the labels added to the manifests
147+
```
148+
85149
Individual commits should not be tagged separately, but will generally be
86150
assumed to match the PR. For instance, if you have a bugfix in with
87151
a breaking change, it's generally encouraged to submit the bugfix

0 commit comments

Comments
 (0)