Skip to content

Conversation

NikhilSharmaWe
Copy link
Contributor

Description

This PR changes the NewBundle method to work with options. The pattern will like:

func NewBundle(opts ...BundleOptions) (Bundle, error)

and new bundles will be created like:

bundle, err := NewBundle(
  WithName("name"),
  WithVersion(plugin.Version{Number: 4}),
  WithPlugins(plugins ...Plugin),
  WithDeprecationMessage("Deprecated!"),
)

Motivation

Fixes: #3307

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 23, 2023
@NikhilSharmaWe NikhilSharmaWe marked this pull request as draft March 23, 2023 12:33
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 23, 2023
opts(&bundleOpts)
}

supportedProjectVersions := CommonSupportedProjectVersions(bundleOpts.plugins...)
Copy link
Contributor

@em-r em-r Mar 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth moving all the logic related to supportedProjectVersions as well as allPlugins down below to the WithPlugins function, it will keep the bundle setup handled completely by the BundleOption funcs, and this way, NewBundle will only need to loop through opts and pass a ref of bundle to them.
Example:

func NewBundle(opts ...BundleOption) (Bundle, error) {
   var b bundle

   for _, opt := range opts {
        if err := opt(&b); err != nil {
             return nil, err
        }
   }

  return b, nil
}

Copy link
Contributor Author

@NikhilSharmaWe NikhilSharmaWe Mar 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is nice for simplicity. But in NewBundle func we also need to return an error when len(supportedProjectVersions) == 0. But we also do not handle the error returned when we use NewBundle, like here. So I think we can ignore returning an error in the func, if we want to implement this since we are not handling the error anyway. Not sure.

Let's see what others think about this.

@NikhilSharmaWe NikhilSharmaWe marked this pull request as ready for review March 23, 2023 13:41
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 23, 2023
cmd/main.go Outdated
golangv4.Plugin{},
gov4Bundle, _ := plugin.NewBundle(plugin.WithName(golang.DefaultNameQualifier),
plugin.WithVersion(plugin.Version{Number: 4}),
plugin.WithDeprecationMessage(""),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be skipped since no deprecation message needs to show up when using go/v4

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 24, 2023
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 24, 2023
@NikhilSharmaWe NikhilSharmaWe force-pushed the upgradeBundle branch 2 times, most recently from 81340f6 to c048da7 Compare March 24, 2023 11:26
Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@everettraven could you please give a hand on the review of this one?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 21, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 22, 2023
Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NikhilSharmaWe,

I loved the implementation. However, it is a breaking change in the API could we keep the current func implemented and deprecated it and then just add the new one using the Options? So that we do not affect those that are consuming Kubebuilder as a LIB?

{p1, p2, p3},
{p1, p3, p4},
} {
b, err := NewBundle(name, version, "", plugins...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we live it as it is and add a new test for a new function using the Options?

// The list of supported project versions is computed from the provided plugins.
func NewBundle(name string, version Version, deprecateWarning string, plugins ...Plugin) (Bundle, error) {
supportedProjectVersions := CommonSupportedProjectVersions(plugins...)
func NewBundle(opts ...BundleOption) (Bundle, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we keep here the old func as it is and add a new func using the Options so that we do not introduce a breaking change? See that the PR is fafling in the API diff check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should revert the changes in the docs too, right?

@NikhilSharmaWe NikhilSharmaWe force-pushed the upgradeBundle branch 2 times, most recently from 0d83d67 to ced43b8 Compare April 22, 2023 09:56
supportedProjectVersions []config.Version
deprecateWarning string
}

Copy link
Member

@camilamacedo86 camilamacedo86 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NikhilSharmaWe ,\

The changes in Kubebuilder CLI can still.
I mean, we can use the method here.
We need to have the old one available for those that import and use Kubebuilder as a LIB.

Also, please ensure that you rebase with master branch and it is passing in the tests for we get the PR merged.

@camilamacedo86 camilamacedo86 added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Apr 22, 2023
Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approved

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 22, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, NikhilSharmaWe

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 22, 2023
@k8s-ci-robot k8s-ci-robot merged commit 9ba9d57 into kubernetes-sigs:master Apr 22, 2023
Sajiyah-Salat pushed a commit to Sajiyah-Salat/kubebuilder that referenced this pull request Jun 11, 2023
…ons (kubernetes-sigs#3312)

* change NewBundle method to build bundles through working with options

Signed-off-by: Nikhil Sharma <[email protected]>

* make changes in docs for the changed pattern for NewBundleWithOptions func

Signed-off-by: Nikhil Sharma <[email protected]>

---------

Signed-off-by: Nikhil Sharma <[email protected]>
camilamacedo86 added a commit that referenced this pull request Jun 21, 2023
* 🌱 Bump kubernetes-sigs/kubebuilder-release-tools

Bumps [kubernetes-sigs/kubebuilder-release-tools](https://github.com/kubernetes-sigs/kubebuilder-release-tools) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/kubernetes-sigs/kubebuilder-release-tools/releases)
- [Changelog](https://github.com/kubernetes-sigs/kubebuilder-release-tools/blob/master/RELEASE.md)
- [Commits](kubernetes-sigs/kubebuilder-release-tools@v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: kubernetes-sigs/kubebuilder-release-tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update cronjob_types.go

* 📖 fix untile typo in readmes (#3135)

fix untile typo in readmes

* corrected layout

* co_doc

* 📖 : update ComponentConfig tutorial (#3181)

docs: update ComponentConfig

* Bump github.com/onsi/gomega from 1.24.2 to 1.26.0

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.24.2 to 1.26.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.24.2...v1.26.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.7.0 to 2.8.0

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.7.0...v2.8.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]>

* change kustomize install templating to avoid tripping security alerts

Signed-off-by: jberkhahn <[email protected]>

* Upgrade the k8s version from 1.26.0 to 1.26.1 and controller-runtime from 0.14.1 to 0.14.2

Signed-off-by: Yash Singh <[email protected]>

* feat: automatically update componentconfig tutorial

Co-authored-by: Camila Macedo <[email protected]>

chore: refactor

* ⚠️ (kustomize/v2-alpha, go/v4-alpha): Upgrade kustomize from 4.5.7 to 5.0.0 (#3199)

⚠️ (kustomize/v2-alpha, go/v4-alpha): Upgrade kustomize from 4.5.7 to 5.0.0 (#3199)

* [Fix] Generate docs

* 📖 fix: sync docs tutorial with latest kb (#3209)

* 📖  Update cronjob-tutorial (#3213)

* 📖 update the status of the proposals in the repo

* Bump golang.org/x/text from 0.6.0 to 0.7.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.6.0...v0.7.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]>

* Bump golang.org/x/tools from 0.5.0 to 0.6.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.5.0...v0.6.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/ginkgo/v2 from 2.8.0 to 2.8.1

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.8.0...v2.8.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]>

* ✨ (go/v3,go/v4-alpha) :Update controller-runtime and controller-tools dependencies (#3218)

:sparkles: (go/v3,go/v4-alpha) :Update controller-runtime and controller-tools dependecies

* :book: update the template for proposals (#3219)

* 📖 update the template for proposals

* Apply suggestions from code review

* 🐛 (Kubebuilder External Plugins API): fix populate PluginRequest.Universe which is empty (#3223)

* fix: populate PluginRequest.Universe

* test: add unit test for getUniverseMap

* refactor: fix linting errors

* docs(README): add latest release badge

* 🌱 Bump golang.org/x/net from 0.6.0 to 0.7.0 (#3232)

Bump golang.org/x/net from 0.6.0 to 0.7.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](golang/net@v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 📖 design doc with proposal to re-scaffold projects from scratch (#3221)

* Bump github.com/onsi/gomega from 1.26.0 to 1.27.1

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.26.0 to 1.27.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.26.0...v1.27.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]>

* 🌱 Update golangci-lint to latest version

* Bump github.com/onsi/ginkgo/v2 from 2.8.1 to 2.8.3

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.8.1 to 2.8.3.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.8.1...v2.8.3)

---
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]>

* ⚠️ (kustomize/v1) deprecated v1 version in favor of v2 (#3235)

* ⚠️ deprecated kustomize/v1 plugin

* Update docs/book/src/plugins/kustomize-v1.md

Co-authored-by: Bryce Palmer <[email protected]>

* Update docs/book/src/plugins/kustomize-v1.md

Co-authored-by: Bryce Palmer <[email protected]>

* Update docs/book/src/plugins/to-be-extended.md

* Update docs/book/src/plugins/to-be-extended.md

Co-authored-by: Varsha <[email protected]>

* Update pkg/plugins/common/kustomize/v1/plugin.go

Co-authored-by: Bryce Palmer <[email protected]>

* Update docs/book/src/plugins/to-be-extended.md

Co-authored-by: Varsha <[email protected]>

---------

Co-authored-by: Bryce Palmer <[email protected]>
Co-authored-by: Varsha <[email protected]>

* fix: XDG_CONFIG_HOME external plugin discovery

* 👻 : add tony as reviewer

* test: increase coverage

* Update helper_to_upgrade_projects_by_rescaffolding.md

* Update api-changes.md

Fix a typo in the docs

* 🌱 Bump github.com/spf13/afero from 1.9.3 to 1.9.4 (#3254)

Bump github.com/spf13/afero from 1.9.3 to 1.9.4

Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](spf13/afero@v1.9.3...v1.9.4)

---
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]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 🌱 Bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.8.4 (#3253)

Bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.8.4

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.8.3 to 2.8.4.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.8.3...v2.8.4)

---
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]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.8.4 to 2.9.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.8.4...v2.9.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/gobuffalo/flect from 1.0.0 to 1.0.2 (#3252)

Bump github.com/gobuffalo/flect from 1.0.0 to 1.0.2

Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect) from 1.0.0 to 1.0.2.
- [Release notes](https://github.com/gobuffalo/flect/releases)
- [Commits](gobuffalo/flect@v1.0.0...v1.0.2)

---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ⚠️ (go/v3) deprecate go/v3 in favor of go/v4 (#3238)

* ⚠️ deprecate go/v3

* Apply suggestions from code review

* Update pkg/plugins/golang/v4/plugin.go

Co-authored-by: Bryce Palmer <[email protected]>

---------

Co-authored-by: Bryce Palmer <[email protected]>

* ⚠️ (kustomize/v2) Stabilize plugin. kustomize/v2-alpha was replaced with kustomize/v2 (#3234)

* Bump golang.org/x/text from 0.7.0 to 0.8.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.7.0...v0.8.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]>

* Bump github.com/spf13/afero from 1.9.4 to 1.9.5

Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](spf13/afero@v1.9.4...v1.9.5)

---
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 github.com/onsi/gomega from 1.27.1 to 1.27.2

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.1 to 1.27.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.27.1...v1.27.2)

---
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]>

* 🌱 Bump joelanford/go-apidiff from 0.5.0 to 0.6.0 (#3265)

Bumps [joelanford/go-apidiff](https://github.com/joelanford/go-apidiff) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/joelanford/go-apidiff/releases)
- [Commits](joelanford/go-apidiff@v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: joelanford/go-apidiff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 📖 : delete cronjob tutorial Incorrect kustomization.yaml (#3256)

* ⚠️ (go/v4-alpha) stabilize go/v4 plugin. Plugin go/v4-alpha replaced with go/v4 (#3237)

* [fix: go/v3, go/v4] Remove stale imports

This PR removes the stale import: "pkg/envtest/printer" that is not needed
after migrating to ginko/v2.

Controller-runtime v0.14.0+ has migrated to use ginko/v2 and thereby removed
"printer" package. The imports were still being scaffolded though not used in the
codebase.

Signed-off-by: Varsha Prasad Narsing <[email protected]>

* fix nit lint issue

* :seedleing: stop to generate all samples for go/v3

* 🐛  fix: deprecate message should be in go/v3 (#3277)

fix: deprecate message should be in go/v3

* 🌱 : fix sample project-v4-grafana (#3279)

:bug: fix sample project-v4-grafana

* :sparkles: make go/v4 default scaffold

* :book: remove warning from quick start

* :book: make component-config tuturial sample be based on go/v4 plugin

* :book: updating the component config tutorial to use go/v4

* :book: update cronjob tutorial sample to use go/v4

* :sparkles: deprecate kustomize/v1 and go/v3 packages

* :book: update multiversion tutorial to use go/v4 (#3282)

* Bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.9.0...v2.9.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]>

* doc: add fish and powershell of autocompletion command

Signed-off-by: JenTing Hsiao <[email protected]>

* fix testdata / merge conflict

* 📖 Replace "Help" field in EP doc with "Metadata" field (#3296)

* Bump github.com/onsi/gomega from 1.27.2 to 1.27.4

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.2 to 1.27.4.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.27.2...v1.27.4)

---
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]>

* 🌱 Replace deprecated command with environment file (#3298)

* ⚠️ 🐛 (API) fix deprecate interface to allow bundle plugin has deprecation message (#3276)

* 🌱 Bump actions/setup-go from 3 to 4

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* adds small version cmd test

* 🌱  [ci] : fix the issue with [CI] doc check being cancelled instead of being skipped (#3319)

* ci: remove check docs only since it is blocking the ci

* 📖: fix spelling mistakes in document (#3331)

fix spelling mistakes in doc

* 📖: Add version dropdown for doc release (#3332)

add version dropdown for doc

* Bump github.com/spf13/cobra from 1.6.1 to 1.7.0

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](spf13/cobra@v1.6.1...v1.7.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.8.0 to 0.9.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.8.0...v0.9.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]>

* Bump github.com/onsi/ginkgo/v2 from 2.9.1 to 2.9.2

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.9.1 to 2.9.2.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.9.1...v2.9.2)

---
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]>

* 📖: Update multiversion-tutorial/deployment.md to enable CA injection when deploying webhook (#3328)

* Bump golang.org/x/tools from 0.7.0 to 0.8.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.7.0...v0.8.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.27.4 to 1.27.6

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.4 to 1.27.6.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.27.4...v1.27.6)

---
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]>

* remove multi arch node affinity patch from auth proxy

Signed-off-by: Nikhil Sharma <[email protected]>

* 📖 apply changes done in the pr 3287

* 📖 fix migration guide after go/v4 stabilization and links

* 📖 fix/update go/v4 plugin page doc after the stabilization

* 📖 fix kustomize-v2 index link and udated info accordingly

* 🌱 cleanup tests after go/v3 deprecation

* ✨ (API and go/v4): Upgrade go version to 1.20

* ✨ Upgrade image gcr.io/kubebuilder/kube-rbac-proxy

* 🐛 fix scaffold remove bintest dir from gitignore and dockerfile since this directory is not scaffolded

* ✨Change `NewBundle` method to build bundles through working with options (#3312)

* change NewBundle method to build bundles through working with options

Signed-off-by: Nikhil Sharma <[email protected]>

* make changes in docs for the changed pattern for NewBundleWithOptions func

Signed-off-by: Nikhil Sharma <[email protected]>

---------

Signed-off-by: Nikhil Sharma <[email protected]>

* ⚠️ (API) deprecate old func to create new BunlePlugin in favor of the new one which uses as arg BundleOptinos

* 🐛 fix name controllers test

* 🌱 added test for exec.go (#3352)

added test for exec.go

pass test cases

updated tests

updated tests

Revert "updated tests"

This reverts commit 7a465c0.

updated tests

Revert "added test for exec.go"

This reverts commit da172c4.

added exec tests

rerun suits stop

added test files

removed Test Plugin File

solved bugs

minor code changes

added license header

removed exec_test

added exec_tests finally

rebase commits

* fix: scaffold when no boilerplate file

* fix: only continue when fileNotFound

* ✨ (kustomize/v2,go/v4): Upgrade kustomize version from 5.0.0 to 5.0.1 (#3366)

* rm: header.hbs

* rm: header usage

* rm: header specific styles

* feat: update k8s version to 1.27.1

* fix: only update k8s version in go-v4

* ✨ allow container tool to be configured in Makefile

- This allows building with other container tools like podman. Keeps docker as the default.

Signed-off-by: Gabe Alford <[email protected]>

* ✨ (go/v4): Upgrade controller-tools from 0.11.3 to v0.12.0 (#3388)

* 🌱   Update cronjob-tutorial automatically (#3231)

* Bump github.com/onsi/ginkgo/v2 from 2.8.0 to 2.8.1

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.8.0...v2.8.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]>

* feat: update cronjob-tutorial automatically

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 📖 update doc samples within the latest changes (#3392)

* doc: update go version to v1.20

* 🐛 (deployImage) fix controller tests implemented by removing unecessary code implementation

* feat: scaffold when lincense type none

feat: change the binaryPath when update tutorial

fix: revert const name

fix: current behavior

* Bump github.com/onsi/ginkgo/v2 from 2.9.2 to 2.9.4

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.9.2 to 2.9.4.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.9.2...v2.9.4)

---
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]>

* patchesStrategicMerge to Patches

* Update the Owner Allias accordinly

* Updated Makefile to support go install kustomize

* Update completion.md with fish shell instructions

* 📖 fix formatting in quick start

* Added link for cronjob tutorial

* chore: update go version for external plugin sample

* Bump github.com/onsi/ginkgo/v2 from 2.9.4 to 2.9.5

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.9.4 to 2.9.5.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.9.4...v2.9.5)

---
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]>

* Added user prompt for doc

* Bump sigs.k8s.io/kubebuilder/v3

Bumps [sigs.k8s.io/kubebuilder/v3](https://github.com/kubernetes-sigs/kubebuilder) from 3.7.0 to 3.10.0.
- [Release notes](https://github.com/kubernetes-sigs/kubebuilder/releases)
- [Changelog](https://github.com/kubernetes-sigs/kubebuilder/blob/master/RELEASE.md)
- [Commits](v3.7.0...v3.10.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/kubebuilder/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Added the test coverage for completion.go and version.go

* Quote download URL in quickstart docs

Copying and pasting the `curl` line in the installation docs conflicts with zsh (or perhaps oh-my-zsh), which incorrectly escapes parentheses. 

```sh
curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)
```

becomes:

```sh
curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/$\(go env GOOS)/$(go env GOARCH)
```

Which of course doesn't have the desired result and errors out.

Double-quoting the URL should ensure the interpolated shell commands have the desired outcome. Tested on zsh and bash.

* Bump github.com/onsi/gomega from 1.27.6 to 1.27.7

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.6 to 1.27.7.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.27.6...v1.27.7)

---
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]>

* Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2

Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.0 to 1.9.2.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](sirupsen/logrus@v1.9.0...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* ✨ (go/v4): Allows kubectl to be configured in Makefile

- This allows multiple different kubectl installs to be used.

Signed-off-by: Gabe Alford <[email protected]>

* Fixed manager_webhook_patch not uncommented

* doc: Fix multigroup migration guide for v4

Co-authored-by: Varsha <[email protected]>
Co-authored-by: Camila Macedo <[email protected]>
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>

* test: add e2e tests for sample external plugin

Co-authored-by: Bryce Palmer <[email protected]>

* ci: add a script to install sample external plugin

* move joelanford to emeritus

Signed-off-by: Joe Lanford <[email protected]>

* Bump golang.org/x/tools from 0.9.1 to 0.9.3

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.9.1...v0.9.3)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.9.7

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.9.5 to 2.9.7.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.9.5...v2.9.7)

---
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]>

* fix function name in comments

Signed-off-by: cui fliter <[email protected]>

* Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3

Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](sirupsen/logrus@v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* doc: fix path error

* ✨re-scaffold the project with a new command  (#3431)

* ⚠️ deprecate component config and no longer able to ensure that it is functioning as intended

* Bump golang.org/x/text from 0.9.0 to 0.10.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.9.0...v0.10.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]>

* Bump github.com/onsi/gomega from 1.27.7 to 1.27.8

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.7 to 1.27.8.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.27.7...v1.27.8)

---
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]>

* Raising event doc page created

* Bump github.com/onsi/ginkgo/v2 from 2.9.7 to 2.10.0

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.9.7 to 2.10.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.9.7...v2.10.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]>

* Changes done

* ✨ bump controller-runtime and K8s 1.27 (#3444)

* feat: make external plugin path configurable

Co-authored-by: Bryce Palmer <[email protected]>

* 🌱 fix ci testdata gets outdated because go version and remove job to open PR

* 🌱 Bump nashmaniac/create-issue-action from 1.1 to 1.2

Bumps [nashmaniac/create-issue-action](https://github.com/nashmaniac/create-issue-action) from 1.1 to 1.2.
- [Release notes](https://github.com/nashmaniac/create-issue-action/releases)
- [Commits](nashmaniac/create-issue-action@v1.1...v1.2)

---
updated-dependencies:
- dependency-name: nashmaniac/create-issue-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* build(deps): bump golang.org/x/tools from 0.9.3 to 0.10.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.9.3 to 0.10.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.9.3...v0.10.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]>

* build(deps): bump github.com/onsi/ginkgo/v2 from 2.10.0 to 2.11.0

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.10.0...v2.11.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]>

* (kustomize/v2) - deprecate component-config flag

* Adding checks to e2e tests to verify make manifest and generate command

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: jberkhahn <[email protected]>
Signed-off-by: Yash Singh <[email protected]>
Signed-off-by: Varsha Prasad Narsing <[email protected]>
Signed-off-by: JenTing Hsiao <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Gabe Alford <[email protected]>
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
Signed-off-by: Joe Lanford <[email protected]>
Signed-off-by: cui fliter <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kubernetes Prow Robot <[email protected]>
Co-authored-by: Sajiyah Salat <[email protected]>
Co-authored-by: Pal K. Klucsik <[email protected]>
Co-authored-by: Swastik_Gour <[email protected]>
Co-authored-by: Eileen <[email protected]>
Co-authored-by: jberkhahn <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Eileen <[email protected]>
Co-authored-by: Varsha <[email protected]>
Co-authored-by: Tony (TianYi) <[email protected]>
Co-authored-by: El Mehdi Rami <[email protected]>
Co-authored-by: r3drun3 <[email protected]>
Co-authored-by: Tharun K <[email protected]>
Co-authored-by: Bryce Palmer <[email protected]>
Co-authored-by: Shubham Rajvanshi <[email protected]>
Co-authored-by: 晓杰 <[email protected]>
Co-authored-by: JenTing Hsiao <[email protected]>
Co-authored-by: atoato88 <[email protected]>
Co-authored-by: Jongwoo Han <[email protected]>
Co-authored-by: Steve Sklar <[email protected]>
Co-authored-by: Nikhil Sharma <[email protected]>
Co-authored-by: Pratik Mota <[email protected]>
Co-authored-by: Steve Sklar <[email protected]>
Co-authored-by: zjx20 <[email protected]>
Co-authored-by: Yash Khare <[email protected]>
Co-authored-by: yyy1000 <[email protected]>
Co-authored-by: Ashutosh Jha <[email protected]>
Co-authored-by: Gabe Alford <[email protected]>
Co-authored-by: Kun Zhang <[email protected]>
Co-authored-by: Chok Yip Lau <[email protected]>
Co-authored-by: David Xia <[email protected]>
Co-authored-by: James Turley <[email protected]>
Co-authored-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
Co-authored-by: Joe Lanford <[email protected]>
Co-authored-by: cui fliter <[email protected]>
Co-authored-by: Shabir Mohamed Abdul Samadh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate the current method API to build bundles and create new version to work with Options

4 participants