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

fix(policies): use GatewayAPI style header modifier in all policies #5757

Merged
merged 5 commits into from
Jan 20, 2023

Conversation

lahabana
Copy link
Contributor

@lahabana lahabana commented Jan 19, 2023

MeshHealthCheck and MeshRateLimit didn't adopt the same style of headers.

Update MeshRetry to ensure Pascal case for Type value and add Present and Absent as types.

This is important for api coherency.

Fix #5712

Signed-off-by: Charly Molter charly.molter@konghq.com

Checklist prior to review

  • Link to docs PR or issue --
  • Link to UI issue or PR --
  • Is the issue worked on linked? --
  • The PR does not hardcode values that might break projects that depend on kuma (e.g. "kumahq" as a image registry) --
  • The PR will work for both Linux and Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS --
  • Unit Tests --
  • E2E Tests --
  • Manual Universal Tests --
  • Manual Kubernetes Tests --
  • Do you need to update UPGRADE.md? --
  • Does it need to be backported according to the backporting policy? --
  • Do you need to explicitly set a > Changelog: entry here or add a ci/ label to run fewer/more tests?

Changelog: fix(policy): use GatewayAPI style header modifier in all policies

@lahabana lahabana requested review from a team, slonka and jakubdyszkiewicz and removed request for a team January 19, 2023 08:17
@lahabana lahabana force-pushed the fix5712 branch 2 times, most recently from ca2b3b9 to e1383a6 Compare January 19, 2023 10:36
@lahabana lahabana enabled auto-merge (squash) January 19, 2023 11:10
@lahabana lahabana disabled auto-merge January 19, 2023 11:29
@lahabana lahabana enabled auto-merge (squash) January 19, 2023 11:30
@lahabana lahabana disabled auto-merge January 19, 2023 11:30
@lahabana lahabana enabled auto-merge (squash) January 19, 2023 11:30
@lahabana
Copy link
Contributor Author

/format /golden_files

MeshHealthCheck and MeshRateLimit didn't adopt the same style of
headers.
This is important for api coherency

Fix kumahq#5712

Signed-off-by: Charly Molter <charly.molter@konghq.com>
- Ensure Pascal case for Type value
- Add Present and Absent as types

Signed-off-by: Charly Molter <charly.molter@konghq.com>
Signed-off-by: Charly Molter <charly.molter@konghq.com>
Signed-off-by: Charly Molter <charly.molter@konghq.com>
@lahabana
Copy link
Contributor Author

@jakubdyszkiewicz updated with lower case headers

Signed-off-by: Charly Molter <charly.molter@konghq.com>
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz left a comment

Choose a reason for hiding this comment

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

looks good, 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.

MeshHealthCheck and MeshRateLimit headers to add/set should have the same format as GatewayAPI
3 participants