cli-experimental icon indicating copy to clipboard operation
cli-experimental copied to clipboard

kustomize: add deprecation warning to docs

Open natasha41575 opened this issue 2 years ago • 2 comments

Should be merged after release containing the deprecation warnings

/hold /cc @KnVerey

natasha41575 avatar Jul 29 '22 16:07 natasha41575

[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 avatar Jul 29 '22 16:07 k8s-ci-robot

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-triage-robot avatar Oct 27 '22 22:10 k8s-triage-robot

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-triage-robot avatar Nov 26 '22 22:11 k8s-triage-robot

/remove-lifecycle rotten

natasha41575 avatar Dec 07 '22 17:12 natasha41575

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

natasha41575 avatar Dec 07 '22 17:12 natasha41575

@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!

holdeneoneal avatar Jan 25 '23 14:01 holdeneoneal

@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 avatar Jan 27 '23 18:01 natasha41575

@KnVerey This is ready for review!

natasha41575 avatar Jan 27 '23 18:01 natasha41575

/cc @koba1t @annasong20

natasha41575 avatar Jan 27 '23 19:01 natasha41575

/hold

So that this isn't merged until release

natasha41575 avatar Jan 27 '23 19:01 natasha41575

@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?

holdeneoneal avatar Jan 30 '23 21:01 holdeneoneal

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

natasha41575 avatar Jan 30 '23 22:01 natasha41575

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?

koba1t avatar Feb 01 '23 03:02 koba1t

So, I think the https://github.com/kubernetes-sigs/kustomize/pull/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.

KnVerey avatar Feb 02 '23 17:02 KnVerey

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 avatar Feb 08 '23 19:02 natasha41575

/unhold

natasha41575 avatar Feb 08 '23 19:02 natasha41575

/lgtm

KnVerey avatar Feb 08 '23 19:02 KnVerey