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

feat(pdk): kong.node.is_data_plane|control_plane|traditional|etc. helpers #11798

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bungle
Copy link
Member

@bungle bungle commented Oct 20, 2023

Summary

Adds following PDK functions:

  • kong.node.is_data_plane()
  • kong.node.is_control_plane()
  • kong.node.is_traditional()
  • kong.node.is_dbless() (includes data planes)
  • kong.node.is_hybrid()
  • kong.node.is_serving_http_traffic()
  • kong.node.is_serving_stream_traffic()
  • kong.node.is_serving_proxy_traffic()
  • kong.node.is_serving_admin_apis() (includes non-data plane dbless nodes if they listen admin, which they do by default)
  • kong.node.is_serving_admin_gui()
  • kong.node.is_serving_status_apis()
  • kong.node.is_not_data_plane()
  • kong.node.is_not_control_plane()
  • kong.node.is_not_traditional()
  • kong.node.is_not_hybrid()
  • kong.node.is_not_serving_http_traffic()
  • kong.node.is_not_serving_stream_traffic()
  • kong.node.is_not_serving_proxy_traffic()
  • kong.node.is_not_serving_admin_apis()
  • kong.node.is_not_serving_admin_gui()
  • kong.node.is_not_serving_status_apis()

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

@bungle bungle changed the title feat(pdk): kong.node.is[_not]_data_plnae|control_plane|traditional|etc. helpers feat(pdk): kong.node.is[_not]_data_plane|control_plane|traditional|etc. helpers Oct 20, 2023
@bungle bungle force-pushed the pdk/node-utils branch 2 times, most recently from 2f2d231 to b265dd5 Compare October 20, 2023 10:33
@bungle bungle force-pushed the pdk/node-utils branch 6 times, most recently from 5617cee to 58abec5 Compare October 20, 2023 19:16
…c. helpers

### Summary

Adds following PDK functions:

- `kong.node.is_data_plane()`
- `kong.node.is_control_plane()`
- `kong.node.is_traditional()`
- `kong.node.is_dbless()`
- `kong.node.is_hybrid()`
- `kong.node.is_serving_http_traffic()`
- `kong.node.is_serving_stream_traffic()`
- `kong.node.is_serving_proxy_traffic()`
- `kong.node.is_serving_admin_apis()`
- `kong.node.is_serving_admin_gui()`
- `kong.node.is_serving_status_apis()`
- `kong.node.is_not_data_plane()`
- `kong.node.is_not_control_plane()`
- `kong.node.is_not_traditional()`
- `kong.node.is_not_hybrid()`
- `kong.node.is_not_serving_http_traffic()`
- `kong.node.is_not_serving_stream_traffic()`
- `kong.node.is_not_serving_proxy_traffic()`
- `kong.node.is_not_serving_admin_apis()`
- `kong.node.is_not_serving_admin_gui()`
- `kong.node.is_not_serving_status_apis()`

Signed-off-by: Aapo Talvensaari <[email protected]>
@bungle bungle changed the title feat(pdk): kong.node.is[_not]_data_plane|control_plane|traditional|etc. helpers feat(pdk): kong.node.is_data_plane|control_plane|traditional|etc. helpers Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant