controller-runtime icon indicating copy to clipboard operation
controller-runtime copied to clipboard

⚠️ Remove manager options deprecation

Open troy0820 opened this issue 1 year ago • 5 comments

options.AndFrom and options.AndFromOrDie have been deprecated over several releases. This PR will remove them where consumers will have to migrate to their own config solution.

  • [x] Remove function options.AndFrom
  • [x] Remove function options.AndFromOrDie

/kind cleanup

troy0820 avatar Jan 10 '24 23:01 troy0820

:+1: I think we can only remove these functions when we remove sigs.k8s.io/controller-runtime/pkg/config too.

inteon avatar Jan 11 '24 10:01 inteon

This code ensures that the options work So, IMO it should only be removed when the options be removed and are no longer supported.

The options.AndFrom was loading a config that @inteon agreed that we can only deprecate this if we deprecate the config package.

Do you mean that the options that get merged with the config options shouldn't be removed? This doesn't remove any options.

https://github.com/kubernetes-sigs/controller-runtime/issues/895

👍 I think we can only remove these functions when we remove sigs.k8s.io/controller-runtime/pkg/config too.

Very true, I can delete those as well.

troy0820 avatar Jan 11 '24 14:01 troy0820

/test pull-controller-runtime-test

sbueringer avatar Apr 09 '24 06:04 sbueringer

/lgtm PR LGTM, we now just need an approver to agree that we want to remove this deprecated feature already.

inteon avatar Apr 11 '24 08:04 inteon

LGTM label has been added.

Git tree hash: f74641a1791084522a47aa6e419a8770e74f2480

k8s-ci-robot avatar Apr 11 '24 08:04 k8s-ci-robot

/lgtm PR LGTM, we now just need an approver to agree that we want to remove this deprecated feature already.

Thank you for the review, I know that this has to be coordinated and maybe targeted for v0.18.0.

troy0820 avatar Apr 11 '24 14:04 troy0820

Thank you very much!

/lgtm

/assign @alvaroaleman @vincepri

sbueringer avatar Apr 15 '24 15:04 sbueringer

LGTM label has been added.

Git tree hash: 1ae653961538db33bc11b6c147a59f99db23211f

k8s-ci-robot avatar Apr 15 '24 15:04 k8s-ci-robot

/retitle ⚠️ Remove deprecated manager options

The current title sounds to me like we were un-deprecating something, WDYT? /lgtm /approve /hold

In case @vincepri wants to have a look

alvaroaleman avatar Apr 16 '24 07:04 alvaroaleman

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, troy0820

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 avatar Apr 16 '24 07:04 k8s-ci-robot

/hold cancel

/test pull-controller-runtime-test

sbueringer avatar Apr 18 '24 07:04 sbueringer

@troy0820 Thank you very much!

sbueringer avatar Apr 18 '24 07:04 sbueringer

@troy0820: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-controller-runtime-apidiff 66154d374a85819a8c834adea2d805f50d16c950 link false /test pull-controller-runtime-apidiff

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot avatar Apr 18 '24 07:04 k8s-ci-robot