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

kustomize: add deprecation warning to docs #289

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

natasha41575
Copy link
Contributor

@natasha41575 natasha41575 commented Jul 29, 2022

Should be merged after release containing the deprecation warnings

/hold
/cc @KnVerey

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 29, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: natasha41575

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 29, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 27, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 26, 2022
@natasha41575
Copy link
Contributor Author

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Dec 7, 2022
@natasha41575
Copy link
Contributor Author

I need to update this PR to reflect all the deprecated fields, and change the version number.

@holdeneoneal
Copy link

@natasha41575 can you comment on when these features will be removed from kustomize? Is there an issue or milestone for their planned removal? Looking to understand what our runway is to remove these from our code base. Thank you!

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 27, 2023
@natasha41575
Copy link
Contributor Author

natasha41575 commented Jan 27, 2023

@holdeneoneal Thank you for the very valid question! In response to your question, I added the answer to the docs in this PR so that it is really clear what the timeline is, which applies to all deprecated fields:

Though this field will never be removed from the current Kustomization v1beta1 API, the field will not be included
in the API for Kustomization v1. When Kustomization v1 is available, we will announce the deprecation of Kustomization v1beta1. There will be at least two releases between deprecation and removal of Kustomization v1beta1.

There is no strict timeline for this, but realistically the removal of these fields will likely take at least a year or two. It is only when we have deprecated Kustomization v1beta1 entirely that we will be in a position to drop support for deprecated fields completely, so you should keep an eye out for that announcement.

@natasha41575 natasha41575 force-pushed the deprecationdocs branch 2 times, most recently from 76a0b53 to 38f16e7 Compare January 27, 2023 18:21
@natasha41575
Copy link
Contributor Author

@KnVerey This is ready for review!

@natasha41575
Copy link
Contributor Author

/cc @koba1t @annasong20

@natasha41575
Copy link
Contributor Author

/hold

So that this isn't merged until release

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 27, 2023
@holdeneoneal
Copy link

@holdeneoneal Thank you for the very valid question! In response to your question, I added the answer to the docs in this PR so that it is really clear what the timeline is, which applies to all deprecated fields:

Though this field will never be removed from the current Kustomization v1beta1 API, the field will not be included
in the API for Kustomization v1. When Kustomization v1 is available, we will announce the deprecation of Kustomization v1beta1. There will be at least two releases between deprecation and removal of Kustomization v1beta1.

There is no strict timeline for this, but realistically the removal of these fields will likely take at least a year or two. It is only when we have deprecated Kustomization v1beta1 entirely that we will be in a position to drop support for deprecated fields completely, so you should keep an eye out for that announcement.

Thank you, Natasha! I have a follow up question. When you say "at least two releases", are those minor version releases of kustomize or major version releases?

@natasha41575
Copy link
Contributor Author

natasha41575 commented Jan 30, 2023

Thank you, Natasha! I have a follow up question. When you say "at least two releases", are those minor version releases of kustomize or major version releases?

Any two releases, I think this includes patch/minor releases. Kustomize is also built into kubectl, so we generally have to follow their deprecation policy: https://kubernetes.io/docs/reference/using-api/deprecation-policy/#deprecating-a-flag-or-cli

@koba1t
Copy link
Member

koba1t commented Feb 1, 2023

Thanks, @natasha41575!
I think this announce is very useful!

So, I think the legacy patches syntax is removed next release.
Could you consider announcing this syntax change?

@KnVerey
Copy link
Contributor

KnVerey commented Feb 2, 2023

So, I think the kubernetes-sigs/kustomize#4911 syntax is removed next release.
Could you consider announcing this syntax change?

Great point! That syntax is super old and currently nowhere in the docs, but we added its removal to the release notes.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 2, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 7, 2023
@natasha41575 natasha41575 requested review from KnVerey and removed request for koba1t and annasong20 February 7, 2023 21:19
Copy link
Contributor

@KnVerey KnVerey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple copy-paste things to clean up. Should we mention kustomize edit fix for any of these?

@@ -7,6 +7,19 @@ description: >
Patch resources using the strategic merge patch standard.
---

{{% pageinfo color="warning" %}}
The `patchesStrategicMerge` field was deprecated in v5.0.0. The `bases` field was deprecated in v2.1.0. This field will never be removed from the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `patchesStrategicMerge` field was deprecated in v5.0.0. The `bases` field was deprecated in v2.1.0. This field will never be removed from the
The `patchesStrategicMerge` field was deprecated in v5.0.0. This field will never be removed from the

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♀️ Sorry about that, I should be proof reading my own PRs...

@natasha41575
Copy link
Contributor Author

A couple copy-paste things to clean up. Should we mention kustomize edit fix for any of these?

Done! And added a warning that the automatic vars->replacement conversion may fail.

@natasha41575
Copy link
Contributor Author

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 8, 2023
@KnVerey
Copy link
Contributor

KnVerey commented Feb 8, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 8, 2023
@k8s-ci-robot k8s-ci-robot merged commit 0c066f6 into kubernetes-sigs:master Feb 8, 2023
@natasha41575 natasha41575 deleted the deprecationdocs branch February 8, 2023 20:04
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants