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

🌱 [0.14] Deprecate component configuration package #2165

Conversation

vincepri
Copy link
Member

@vincepri vincepri commented Feb 1, 2023

This provides an early warning for users on 0.14 that the pkg/config types are going to be removed in a future release and they should migrate off.

Signed-off-by: Vince Prignano vincepri@redhat.com

/assign @sbueringer

This provides an early warning for users on 0.14 that the pkg/config
types are going to be removed in a future release and they should
migrate off.

Signed-off-by: Vince Prignano <vincepri@redhat.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 1, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 1, 2023
@sbueringer
Copy link
Member

/lgtm

nit: I wonder if we should go with the standard cherry-pick bot PR titles: [release-0.14] 🌱 Deprecate component configuration package

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 1, 2023
@k8s-ci-robot k8s-ci-robot merged commit 5055a52 into kubernetes-sigs:release-0.14 Feb 1, 2023
renovate bot added a commit to open-feature/flagd that referenced this pull request Feb 5, 2023
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[sigs.k8s.io/controller-runtime](https://togithub.com/kubernetes-sigs/controller-runtime)
| require | patch | `v0.14.2` -> `v0.14.3` |

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the
Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>kubernetes-sigs/controller-runtime</summary>

###
[`v0.14.3`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.3)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.2...v0.14.3)

#### What's Changed

- ✨ Add additional SubResource\* functions for FieldOwner by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2153
- 🐛 Update golanci-lint script by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2152
- 🌱 Bump kubebuilder-release-tools to v0.3.0 by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2154
- 🌱 \[0.14] Deprecate component configuration package by
[@&#8203;vincepri](https://togithub.com/vincepri) in
[kubernetes-sigs/controller-runtime#2165

**Full Changelog**:
kubernetes-sigs/controller-runtime@v0.14.2...v0.14.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEyNC4xIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@qbarrand
Copy link

qbarrand commented Feb 6, 2023

Hello! I am looking for more context or documentation about this change. Both examples in this repo are still using the deprecated methods.
What should we migrate to?

@tyxeron
Copy link

tyxeron commented Feb 8, 2023

Hello! I am looking for more context or documentation about this change. Both examples in this repo are still using the deprecated methods. What should we migrate to?

I am also wondering what the migration path looks like, since our static checker does not really like the deprecation warnings.

@qbarrand
Copy link

qbarrand commented Feb 8, 2023

@vincepri @sbueringer could you please help us here?

@errordeveloper
Copy link

Per commit message in 63e5fef:

This provides an early warning for users on 0.14 that the pkg/config
types are going to be removed in a future release and they should
migrate off.

What is missing is any info as to what package users should be looking to migrate to?

@vincepri
Copy link
Member Author

vincepri commented Feb 8, 2023

👋

The codebase around configuration package is missing maintainers and the general integration between the configuration types and the manager options or controllers can be very confusing to use.

There is currently no alternative implementation, folks could use their own json/yaml unmarshalling and configure manager options that way.

Happy to revisit if we have folks stepping up to review, cleanup, support, and maintain the codebase.

vihangm pushed a commit to newrelic/newrelic-k8s-operator that referenced this pull request May 15, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[sigs.k8s.io/controller-runtime](https://togithub.com/kubernetes-sigs/controller-runtime)
| require | patch | `v0.14.1` -> `v0.14.6` |

---

### Release Notes

<details>
<summary>kubernetes-sigs/controller-runtime</summary>

###
[`v0.14.6`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.6)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.5...v0.14.6)

#### What's Changed

- 🐛 Preserve unstructured object GVKs when using \*ByObject cache
options by [@&#8203;joelanford](https://togithub.com/joelanford) in
[kubernetes-sigs/controller-runtime#2249

**Full Changelog**:
kubernetes-sigs/controller-runtime@v0.14.5...v0.14.6

###
[`v0.14.5`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.5)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.4...v0.14.5)

#### What's Changed

- 🐛 Allow to set GracefulShutdownTimeout to -1, disabling timeouts in
[kubernetes-sigs/controller-runtime#2198
- 🌱 GVKForObject should handle multiple GVKs in Scheme gracefully in
[kubernetes-sigs/controller-runtime#2202
- ✨ Add rest client request duration and size metrics in
[kubernetes-sigs/controller-runtime#2218
- 🐛 Allow lazy restmapper to work with CRDs created at runtime in
[kubernetes-sigs/controller-runtime#2219

**Full Changelog**:
kubernetes-sigs/controller-runtime@v0.14.4...v0.14.5

###
[`v0.14.4`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.4)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.3...v0.14.4)

#### What's Changed

- ✨ Provide a truly lazy restmapper by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2179

**Full Changelog**:
kubernetes-sigs/controller-runtime@v0.14.3...v0.14.4

###
[`v0.14.3`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.3)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.2...v0.14.3)

#### What's Changed

- ✨ Add additional SubResource\* functions for FieldOwner by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2153
- 🐛 Update golanci-lint script by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2152
- 🌱 Bump kubebuilder-release-tools to v0.3.0 by
[@&#8203;k8s-infra-cherrypick-robot](https://togithub.com/k8s-infra-cherrypick-robot)
in
[kubernetes-sigs/controller-runtime#2154
- 🌱 \[0.14] Deprecate component configuration package by
[@&#8203;vincepri](https://togithub.com/vincepri) in
[kubernetes-sigs/controller-runtime#2165

**Full Changelog**:
kubernetes-sigs/controller-runtime@v0.14.2...v0.14.3

###
[`v0.14.2`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.14.2)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.1...v0.14.2)

#### What's Changed

- \[release-0.14] 🌱 Bump k8s.io/\* to v0.26.1 by
[@&#8203;sbueringer](https://togithub.com/sbueringer) in
[kubernetes-sigs/controller-runtime#2146

**Full Changelog**:
kubernetes-sigs/controller-runtime@v0.14.1...v0.14.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/newrelic/newrelic-k8s-operator).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43OS4xIiwidXBkYXRlZEluVmVyIjoiMzUuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants