Skip to content
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

chore(deps): bump reconciler.io/runtime from 0.22.0 to 0.23.0 #399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 20, 2025

Bumps reconciler.io/runtime from 0.22.0 to 0.23.0.

Release notes

Sourced from reconciler.io/runtime's releases.

v0.23.0

Highlights

Nested Reconciler validation

Reconcilers/SubReconcilers/AdmissionWebhookAdapters are now validated, with the validation extending into nested SubReconcilers for tests. This will provide meaningful fast failures for test cases that embed invalid reconcilers.

In order to participate custom types need to implement validation.Validator interface. Calling into the Validate() method on nested types should be guarded by checking validation.IsRecursive.

	if validation.IsRecursive(ctx) {
		if v, ok := r.Reconciler.(validation.Validator); ok {
			if err := v.Validate(ctx); err != nil {
				return fmt.Errorf("Advice %q must have a valid Reconciler: %w", r.Name, err)
			}
		}
	}

full source

ChildReconciler/ChildSetReconciler error handling

The ChildReconciler can now define the set of error conditions that will be passed to ChildReconciler#ReflectChildStatusOnParent at ChildReconciler#ReflectedChildErrorReasons. By default the set of passed errors are:

Custom diffing for types in tests

ExpectConfig and test cases that embed it are able to define a custom Differ that is used to compare the side effects of the test expected and actual values. By default this is implemented using go-cmp. Users who wish to use a different diff implementation, or provide custom cmp.Options may implement the Differ interface and assign it to the particular config or test case.

Breaking Changes and Deprecations

  • ResourceManager was deprecated in v0.22.0 and is removed in favor of ObjectManager for a generic type, or UpdatingObjectManager.

  • AggregateReconciler.{HarmonizeImmutableFields, MergeBeforeUpdate, Sanitize} were deprecated in v0.22.0 and are removed in favor of AggregateReconciler.AggregateObjectManager.

  • ChildReconciler.{Finalizer, HarmonizeImmutableFields, MergeBeforeUpdate, Sanitize, SetResourceManager} were deprecated in v0.22.0 and are removed in favor of ChildReconciler.ChildObjectManager.

  • ChildSetReconciler.{HarmonizeImmutableFields, MergeBeforeUpdate, Sanitize} were deprecated in v0.22.0 and are removed in favor of ChildSetReconciler.ChildObjectManager.

  • AdmissionWebhookAdapter#Build is newly deprecated in favor of AdmissionWebhookAdapter#BuildWithContext.

  • AdmissionWebhookTestSuite#Run, AdmissionWebhookTests#Run, and AdmissionWebhookTestCase#Run are newly deprecated in favor of #RunWithContext.

What's Changed

... (truncated)

Commits
  • d4697d5 Validate AdmissionWebhookAdapter (#597)
  • b2bb2eb Bump sigs.k8s.io/controller-runtime from 0.20.1 to 0.20.2 (#596)
  • e0b7d5d Bump the kubernetes group with 3 updates (#595)
  • 3cb9f76 Allow rtesting to use custom differ (#590)
  • d6fea01 Bump sigs.k8s.io/controller-tools from 0.17.1 to 0.17.2 in /hack (#594)
  • c822b31 Bump golang.org/x/net from 0.34.0 to 0.35.0 (#593)
  • 74c0f16 Validate nested reconcilers (#588)
  • eb7b755 Polish (#592)
  • df0175b Update link to AdmissionWebhookAdapter example source (#587)
  • d0e059e Add flag for allowing status updates even when resource is being deleted (#586)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [reconciler.io/runtime](https://github.com/reconcilerio/runtime) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/reconcilerio/runtime/releases)
- [Commits](reconcilerio/runtime@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: reconciler.io/runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants