-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
✨Change NewBundle
method to build bundles through working with options
#3312
✨Change NewBundle
method to build bundles through working with options
#3312
Conversation
opts(&bundleOpts) | ||
} | ||
|
||
supportedProjectVersions := CommonSupportedProjectVersions(bundleOpts.plugins...) |
There was a problem hiding this comment.
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
}
There was a problem hiding this comment.
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.
cmd/main.go
Outdated
golangv4.Plugin{}, | ||
gov4Bundle, _ := plugin.NewBundle(plugin.WithName(golang.DefaultNameQualifier), | ||
plugin.WithVersion(plugin.Version{Number: 4}), | ||
plugin.WithDeprecationMessage(""), |
There was a problem hiding this comment.
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
301f6f7
to
1dae315
Compare
5aa154b
to
1dae315
Compare
81340f6
to
c048da7
Compare
There was a problem hiding this 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?
c048da7
to
8c44714
Compare
There was a problem hiding this 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?
pkg/plugin/bundle_test.go
Outdated
@@ -67,7 +67,7 @@ var _ = Describe("Bundle", func() { | |||
{p1, p2, p3}, | |||
{p1, p3, p4}, | |||
} { | |||
b, err := NewBundle(name, version, "", plugins...) |
There was a problem hiding this comment.
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?
pkg/plugin/bundle.go
Outdated
// NewBundle creates a new Bundle with the provided name and version, and that wraps the provided plugins. | ||
// 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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
8c44714
to
5c68ac6
Compare
0d83d67
to
ced43b8
Compare
@@ -31,6 +31,33 @@ type bundle struct { | |||
deprecateWarning string | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
… func Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
ced43b8
to
adcdcdd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approved
[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 |
…ons (kubernetes-sigs#3312) * change NewBundle method to build bundles through working with options Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com> * make changes in docs for the changed pattern for NewBundleWithOptions func Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com> --------- Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
* 🌱 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * change kustomize install templating to avoid tripping security alerts Signed-off-by: jberkhahn <jaberkha@us.ibm.com> * 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 <syash@vmware.com> * feat: automatically update componentconfig tutorial Co-authored-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * ✨ (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] <support@github.com> 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] <support@github.com> * 🌱 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] <support@github.com> *⚠️ (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 <everettraven@gmail.com> * Update docs/book/src/plugins/kustomize-v1.md Co-authored-by: Bryce Palmer <everettraven@gmail.com> * Update docs/book/src/plugins/to-be-extended.md * Update docs/book/src/plugins/to-be-extended.md Co-authored-by: Varsha <varshaprasad96@gmail.com> * Update pkg/plugins/common/kustomize/v1/plugin.go Co-authored-by: Bryce Palmer <everettraven@gmail.com> * Update docs/book/src/plugins/to-be-extended.md Co-authored-by: Varsha <varshaprasad96@gmail.com> --------- Co-authored-by: Bryce Palmer <everettraven@gmail.com> Co-authored-by: Varsha <varshaprasad96@gmail.com> * 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] <support@github.com> 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] <support@github.com> 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] <support@github.com> * 🌱 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] <support@github.com> 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 <everettraven@gmail.com> --------- Co-authored-by: Bryce Palmer <everettraven@gmail.com> *⚠️ (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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * 🌱 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] <support@github.com> 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 <varshaprasad96@gmail.com> * 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] <support@github.com> * doc: add fish and powershell of autocompletion command Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com> * 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] <support@github.com> * 🌱 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * 📖: 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] <support@github.com> * 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] <support@github.com> * remove multi arch node affinity patch from auth proxy Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com> * 📖 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 <nikhilsharma230303@gmail.com> * make changes in docs for the changed pattern for NewBundleWithOptions func Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com> --------- Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com> *⚠️ (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 <redhatrises@gmail.com> * ✨ (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] <support@github.com> * feat: update cronjob-tutorial automatically --------- Signed-off-by: dependabot[bot] <support@github.com> 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * ✨ (go/v4): Allows kubectl to be configured in Makefile - This allows multiple different kubectl installs to be used. Signed-off-by: Gabe Alford <redhatrises@gmail.com> * Fixed manager_webhook_patch not uncommented * doc: Fix multigroup migration guide for v4 Co-authored-by: Varsha <varshaprasad96@gmail.com> Co-authored-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com> * test: add e2e tests for sample external plugin Co-authored-by: Bryce Palmer <everettraven@gmail.com> * ci: add a script to install sample external plugin * move joelanford to emeritus Signed-off-by: Joe Lanford <joe.lanford@gmail.com> * 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] <support@github.com> * 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] <support@github.com> * fix function name in comments Signed-off-by: cui fliter <imcusg@gmail.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * Changes done * ✨ bump controller-runtime and K8s 1.27 (#3444) * feat: make external plugin path configurable Co-authored-by: Bryce Palmer <everettraven@gmail.com> * 🌱 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * (kustomize/v2) - deprecate component-config flag * Adding checks to e2e tests to verify make manifest and generate command --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: jberkhahn <jaberkha@us.ibm.com> Signed-off-by: Yash Singh <syash@vmware.com> Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com> Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com> Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com> Signed-off-by: Gabe Alford <redhatrises@gmail.com> Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com> Signed-off-by: Joe Lanford <joe.lanford@gmail.com> Signed-off-by: cui fliter <imcusg@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com> Co-authored-by: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Co-authored-by: Pal K. Klucsik <klucsik.krisztian@gmail.com> Co-authored-by: Swastik_Gour <Sswastik959@gmail.com> Co-authored-by: Eileen <48944635+Eileen-Yu@users.noreply.github.com> Co-authored-by: jberkhahn <jaberkha@us.ibm.com> Co-authored-by: Yash Singh <syash@vmware.com> Co-authored-by: Eileen <eileenylj@gmail.com> Co-authored-by: Varsha <varshaprasad96@gmail.com> Co-authored-by: Tony (TianYi) <kavinjsir@gmail.com> Co-authored-by: El Mehdi Rami <mehdi@httphub.io> Co-authored-by: r3drun3 <simone.ragonesi@kiratech.it> Co-authored-by: Tharun K <53267275+tharun634@users.noreply.github.com> Co-authored-by: Bryce Palmer <everettraven@gmail.com> Co-authored-by: Shubham Rajvanshi <shubhamrajvanshi9@gmail.com> Co-authored-by: 晓杰 <87080562+xiao-jay@users.noreply.github.com> Co-authored-by: JenTing Hsiao <hsiaoairplane@gmail.com> Co-authored-by: atoato88 <akihito-inou@nec.com> Co-authored-by: Jongwoo Han <jongwooo.han@gmail.com> Co-authored-by: Steve Sklar <sklarsa@gmail.com> Co-authored-by: Nikhil Sharma <nikhilsharma230303@gmail.com> Co-authored-by: Pratik Mota <pratik@pratikmota.com> Co-authored-by: Steve Sklar <steven@questdb.io> Co-authored-by: zjx20 <zhoujianxiong2@gmail.com> Co-authored-by: Yash Khare <yash2010118@akgec.ac.in> Co-authored-by: yyy1000 <992364620@qq.com> Co-authored-by: Ashutosh Jha <ashutoshj887@gmail.com> Co-authored-by: Gabe Alford <redhatrises@gmail.com> Co-authored-by: Kun Zhang <scuzk373x@gmail.com> Co-authored-by: Chok Yip Lau <lauchokyip@gmail.com> Co-authored-by: David Xia <david@davidxia.com> Co-authored-by: James Turley <jamesturley1905@googlemail.com> Co-authored-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com> Co-authored-by: Joe Lanford <joe.lanford@gmail.com> Co-authored-by: cui fliter <imcusg@gmail.com> Co-authored-by: Shabir Mohamed Abdul Samadh <7249208+Shabirmean@users.noreply.github.com>
Description
This PR changes the NewBundle method to work with options. The pattern will like:
and new bundles will be created like:
Motivation
Fixes: #3307