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

Admin endpoint: return more resources #9766

Merged
merged 17 commits into from
Jul 17, 2024
Merged

Conversation

jenshu
Copy link
Contributor

@jenshu jenshu commented Jul 16, 2024

Description

Part 2 of updates to admin server input snapshot endpoint:

  • Add Settings (passed from bootstrap opts)
  • Add GatewayParameters, ListenerOptions, HttpListenerOptions when kubeGateway is enabled
  • When kubeGateway is enabled, return all RouteOptions, VirtualHostOptions, AuthConfigs, RateLimitConfigs from the cluster rather than only the ones from the edge input snapshot (since the kube gateway controller watches all resources on the cluster)

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@jenshu jenshu added the work in progress signals bulldozer to keep pr open (don't auto-merge) label Jul 16, 2024
@github-actions github-actions bot added the keep pr updated signals bulldozer to keep pr up to date with base branch label Jul 16, 2024
@jenshu jenshu changed the title return more resources Admin endpoint: return more resources Jul 16, 2024
Base automatically changed from admin-endpoint-flatten to main July 16, 2024 13:25
Copy link

github-actions bot commented Jul 16, 2024

Visit the preview URL for this PR (updated for commit 702820a):

https://gloo-edge--pr9766-admin-endpoint-more-21b1wfym.web.app

(expires Wed, 24 Jul 2024 01:33:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 77c2b86e287749579b7ff9cadb81e099042ef677

@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/6391

@jenshu jenshu removed the work in progress signals bulldozer to keep pr open (don't auto-merge) label Jul 17, 2024
Copy link
Contributor

@jbohanon jbohanon left a comment

Choose a reason for hiding this comment

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

This is awesome! 🚀

I think there is some opportunity for serving a specific resource type on /snapshots/input/{kind} or /snapshots/input/{groupkind} but even just with jq magic, this is so useful e.g.

curl -s localhost:9091/snapshots/input | jq '.[] | select(.kind=="GatewayParameters" or .kind=="RouteOption" or .kind=="Settings") | .kind, .spec, .status'

@jenshu jenshu merged commit 94e6e35 into main Jul 17, 2024
20 checks passed
@jenshu jenshu deleted the admin-endpoint-more-resources branch July 17, 2024 11:20
jenshu added a commit that referenced this pull request Jul 19, 2024
* add convert code

* make getRedactedApiSnapshot private

* flatten kube resources

* rename client

* fix tests

* changelog

* add comments and test

* return more resources

* refactor gvks check

* refactor numfields check

* changelog

* add more tests

---------

Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com>
soloio-bulldozer bot added a commit that referenced this pull request Jul 19, 2024
* Flatten resources returned by Admin endpoint (#9760)

* add convert code

* make getRedactedApiSnapshot private

* flatten kube resources

* rename client

* fix tests

* changelog

* add comments and test

* refactor gvks check

* refactor numfields check

---------

Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com>

* Admin endpoint: return more resources (#9766)

* add convert code

* make getRedactedApiSnapshot private

* flatten kube resources

* rename client

* fix tests

* changelog

* add comments and test

* return more resources

* refactor gvks check

* refactor numfields check

* changelog

* add more tests

---------

Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com>

* Admin endpoint: allow overriding kube gateway gvks (#9716)

* extensions startfuncs

* add convert code

* make getRedactedApiSnapshot private

* flatten kube resources

* rename client

* fix tests

* changelog

* add comments and test

* return more resources

* refactor gvks check

* refactor numfields check

* updates

* set gvks

* pass history as param

* sort proxies too

* remove the startfuncs stuff

* changelog

* add more tests

* update api

* changelog

* add tests

* refactor sort

* Adding changelog file to new location

* Deleting changelog file from old location

* refactor

* fix tests

* fix compile

* empty

* add SnapshotHistoryFactory to validation

---------

Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: changelog-bot <changelog-bot>

* consolidate changelogs

---------

Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep pr updated signals bulldozer to keep pr up to date with base branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants