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

Deprecated message for ignore-errors flag #102677

Merged

Conversation

yuzhiquan
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Refs #100052

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Deprecated warning message for igonre-errors flag.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


/cc @dougsland @coderanger @eddiezane
/priority backlog
/triage accepted
/sig cli

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on. sig/cli Categorizes an issue or PR as relevant to SIG CLI. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/kubectl labels Jun 8, 2021
@cndoit18
Copy link
Member

cndoit18 commented Jun 8, 2021

/test pull-kubernetes-e2e-gce-ubuntu-containerd

@yuzhiquan
Copy link
Member Author

/assign @apelisse

@yuzhiquan
Copy link
Member Author

/assign @eddiezane
/cc @seans3

@@ -310,6 +310,9 @@ func (o *DrainCmdOptions) RunDrain() error {
fmt.Fprintf(o.ErrOut, "error: unable to drain node %q due to error:%s, continuing command...\n", info.Name, err)
continue
}
fmt.Fprintf(o.ErrOut, "DEPRECATED WARNING: Aborting the drain command in a list of nodes will be deprecated.\n"+
Copy link
Member

Choose a reason for hiding this comment

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

Do we know what version?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do we know what version?

?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry should have been more clear.

Is there a targeted Kubernetes version for this change that we can include in the deprecation warning?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry should have been more clear.

Is there a targeted Kubernetes version for this change that we can include in the deprecation warning?

Add deprecated message in v1.22
Set ignore errors default to true, and remove --ignore-errors flag in v1.23

Add version plan in message?

Copy link
Member

Choose a reason for hiding this comment

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

Yes please. If we know the plan it's a good way to communicate that to users.

Copy link
Member

Choose a reason for hiding this comment

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

DEPRECATED WARNING: Aborting the drain command in a list of nodes is deprecated in v1.22 and will be removed in v1.23

Copy link
Member Author

Choose a reason for hiding this comment

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

In v1.22 just add an DEPRECATED WARNING message, it will be deprecated and removed in v1.23, so may be just

DEPRECATED WARNING: Aborting the drain command in a list of nodes will be deprecated in v1.23.

@eddiezane
Copy link
Member

/retitle Deprecated message for ignore-errors flag

@k8s-ci-robot k8s-ci-robot changed the title Deprecated message for igonre-errors flag Deprecated message for ignore-errors flag Jun 25, 2021
@dougsland
Copy link
Member

In general the patch LGTM. I hope we have time to add it to v1.22 after adding the changes eddie asked.

@yuzhiquan yuzhiquan force-pushed the deprecated-warning-for-drain branch from e84232e to 0a38b28 Compare July 2, 2021 03:01
@eddiezane
Copy link
Member

Ty

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cndoit18, eddiezane, yuzhiquan

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 2, 2021
@yuzhiquan
Copy link
Member Author

Ty

/approve

Thanks, and a lgtm is required @dougsland @eddiezane

@yuzhiquan
Copy link
Member Author

Ping @dougsland @eddiezane for lgtm label.

Copy link
Member

@dougsland dougsland left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 7, 2021
@k8s-ci-robot k8s-ci-robot merged commit 99f7772 into kubernetes:master Jul 7, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone Jul 7, 2021
@yuzhiquan yuzhiquan deleted the deprecated-warning-for-drain branch July 7, 2021 05:32
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. area/kubectl cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cli Categorizes an issue or PR as relevant to SIG CLI. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants