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

server: Make --v2-deprecation=write-only the default and remove not-y… #13612

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

serathius
Copy link
Member

@serathius serathius commented Jan 17, 2022

…et option

Part of #12913

@serathius serathius marked this pull request as draft January 19, 2022 13:52
@serathius serathius force-pushed the write-only branch 3 times, most recently from d39d697 to 5794c68 Compare January 24, 2022 13:32
@serathius serathius requested a review from ptabor January 24, 2022 13:45
@serathius
Copy link
Member Author

cc @ptabor @ahrtr @spzala

@serathius serathius marked this pull request as ready for review January 24, 2022 14:05
@@ -17,7 +17,7 @@ package config
type V2DeprecationEnum string

const (
// Default in v3.5. Issues a warning if v2store have meaningful content.
// No longer supported in v3.6
V2_DEPR_0_NOT_YET = V2DeprecationEnum("not-yet")
Copy link
Member

Choose a reason for hiding this comment

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

If it is not supported in 3.6, can we just remove it and remove the switch case at line 40?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm also usually for removing the dead code, however in this case I think it's worth to leave for historical context. Of course when V2 is fully removed this whole file should be deleted, however I think it's worth to keep this so that someone reading this file understands all previous enum stages.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, it isn't a big deal. Feel free to keep it unchanged.

It's OK because this file will eventually be removed.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

@serathius
Copy link
Member Author

@ptabor is OOO
@spzala Could you take a look?

@serathius serathius merged commit 310de9b into etcd-io:main Feb 14, 2022
@serathius serathius deleted the write-only branch June 15, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants