Skip to content

api: add attention to HeaderValueOption.append to avoid removing this field#23518

Merged
mattklein123 merged 7 commits intoenvoyproxy:mainfrom
wbpcode:dev-add-comments-to-dreprecated-append
Oct 18, 2022
Merged

api: add attention to HeaderValueOption.append to avoid removing this field#23518
mattklein123 merged 7 commits intoenvoyproxy:mainfrom
wbpcode:dev-add-comments-to-dreprecated-append

Conversation

@wbpcode
Copy link
Copy Markdown
Member

@wbpcode wbpcode commented Oct 17, 2022

Signed-off-by: wbpcode wangbaiping@corp.netease.com

Commit Message: api: add attention to HeaderValueOption.append to avoid removing this field
Additional Description:

See #22845.

Risk Level: n/a.
Testing: n/a.
Docs Changes: added.
Release Notes: n/a.
Platform Specific Features: n/a.

… field

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #23518 was opened by wbpcode.

see: more, trace.

@wbpcode wbpcode assigned mattklein123 and unassigned lizan Oct 17, 2022
Comment thread api/envoy/config/core/v3/base.proto Outdated
// is always APPEND_IF_EXISTS_OR_ADD.
// It means if we remove this field, the default behavior in these filter will be changed and may break our
// users.
// So we should keep this field and couldn't remove it until the above issue is resolved one day.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Emm...The last two sentences seems like a note for the developer, it shouldn't be part of the API document.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's attention to tell developers never remove this field in the future even its marked as deprecated.

I couldn't find a better position for this attention.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As I mentioned in Slack, at this point the APIs are forever. We are never removing anything, so I think we can remove this. Can we rewrite this as end user documentation? Thank you.

/wait

Copy link
Copy Markdown
Member Author

@wbpcode wbpcode Oct 18, 2022

Choose a reason for hiding this comment

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

It's easy to do some comments update. But I think there still is some info gap. 🤣 I re-read the API version policy. There are some conclusions by my understanding. Feel free to point it out if I am wrong.

  1. When we say the APIs are forever, it means that this field is forever in the core.v3.HeaderValueOption.
  2. One day the v4 APIs is enabled, then this field will be removed from the core.v4.HeaderValueOption. But the break changes are acceptable for major API versions update.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 Oct 18, 2022

Choose a reason for hiding this comment

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

I haven't gotten around to doing an official policy update, but at this point realistically a) we are never doing v4 and b) we are never actually deleting any fields/code from Envoy. It's too disruptive. cc @envoyproxy/api-shepherds

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

got it.

Copy link
Copy Markdown
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

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

couple of format nits inline...

Comment thread api/envoy/config/core/v3/base.proto Outdated
Comment thread api/envoy/config/core/v3/base.proto Outdated
code and others added 2 commits October 17, 2022 20:45
Co-authored-by: phlax <phlax@users.noreply.github.com>
Signed-off-by: code <wangbaiping@corp.netease.com>
Co-authored-by: phlax <phlax@users.noreply.github.com>
Signed-off-by: code <wangbaiping@corp.netease.com>
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

/wait

Comment thread api/envoy/config/core/v3/base.proto Outdated
Comment on lines +369 to +370
// It means that the default behavior of ``HeaderValueOption`` in these two services will be changed after
// this field is removed in the future version of API.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Per other comments, it's not going to get removed, so let's remove this. It's still not clear to me what we are telling the end user. Are we just telling them that the default is false when used in these 2 services? If so can we just say that clearly?

Comment thread api/envoy/config/core/v3/base.proto Outdated
Co-authored-by: Matt Klein <mattklein123@gmail.com>
Signed-off-by: code <wangbaiping@corp.netease.com>
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants