Upgrading sigs.k8s.io/controller-runtime 0.9 to 0.10
Breakingv0.9.7 → v0.10.3Breaking3New8Changed10Fixed12Other6
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Disable the rest_client_request_latency_seconds metric by default.
- Fakeclient: Reject Delete with mismatched ResourceVersion.
- Client: Ensure no stale data remains in target object.
Must act 3 items need code or config changes
What you must change
Breaking3
Disable the rest_client_request_latency_seconds metric by default.
Fakeclient: Reject Delete with mismatched ResourceVersion.
Client: Ensure no stale data remains in target object.
API changes
Generated by DepDelta from published Go source. Not mixed with prose notes.
- added:
method WebhookBuilder.WithDefaulter(admission.CustomDefaulter) *WebhookBuilder - added:
method WebhookBuilder.WithValidator(admission.CustomValidator) *WebhookBuilder
- added:
field ObjectAll.Object: embedded client.Object - added:
field Options.UnsafeDisableDeepCopyByObject: DisableDeepCopyByObject - added:
type DisableDeepCopyByObject: map[client.Object]bool - added:
type ObjectAll: struct
- added:
method ClientBuilder.WithRESTMapper(meta.RESTMapper) *ClientBuilder
- added:
field Options.RecoverPanic: bool
- changed:
field CRDInstallOptions.CRDs: []client.Object → field CRDInstallOptions.CRDs: []apiextensionsv1.CustomResourceDefinition - changed:
field Environment.CRDs: []client.Object → field Environment.CRDs: []apiextensionsv1.CustomResourceDefinition - changed:
field WebhookInstallOptions.MutatingWebhooks: []client.Object → field WebhookInstallOptions.MutatingWebhooks: []admissionv1.MutatingWebhookConfiguration - changed:
field WebhookInstallOptions.ValidatingWebhooks: []client.Object → field WebhookInstallOptions.ValidatingWebhooks: []admissionv1.ValidatingWebhookConfiguration - changed:
func CreateCRDs(*rest.Config, []client.Object) error → func CreateCRDs(*rest.Config, []apiextensionsv1.CustomResourceDefinition) error - changed:
func InstallCRDs(*rest.Config, CRDInstallOptions) ([]client.Object, error) → func InstallCRDs(*rest.Config, CRDInstallOptions) ([]apiextensionsv1.CustomResourceDefinition, error) - changed:
func WaitForCRDs(*rest.Config, []client.Object, CRDInstallOptions) error → func WaitForCRDs(*rest.Config, []apiextensionsv1.CustomResourceDefinition, CRDInstallOptions) error - changed:
func WaitForWebhooks(*rest.Config, []client.Object, []client.Object, WebhookInstallOptions) error → func WaitForWebhooks(*rest.Config, []admissionv1.MutatingWebhookConfiguration, []admissionv1.ValidatingWebhookConfiguration, WebhookInstallOptions) error
- added:
method LatencyAdapter.Observe(context.Context, string, url.URL, time.Duration) - added:
type LatencyAdapter: struct - added:
var RequestLatency
- added:
type CustomDefaulter = admission.CustomDefaulter - added:
type CustomValidator = admission.CustomValidator
- added:
func WithCustomDefaulter(runtime.Object, CustomDefaulter) *Webhook - added:
func WithCustomValidator(runtime.Object, CustomValidator) *Webhook - added:
method CustomDefaulter.Default(context.Context, runtime.Object) error - added:
method CustomValidator.ValidateCreate(context.Context, runtime.Object) error - added:
method CustomValidator.ValidateDelete(context.Context, runtime.Object) error - added:
method CustomValidator.ValidateUpdate(context.Context, runtime.Object, runtime.Object) error - added:
type CustomDefaulter: interface - added:
type CustomValidator: interface