-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add route to get network info #21
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MicaiahReid
added a commit
that referenced
this pull request
Jul 3, 2023
* working deployment of pods * use internal ports * cleanup, use config struct, create server * add templates for pods/configmaps/services * use template yaml rather than json for deployments * add missed template yaml * add route to delete deployment * make services nodeport type * rename var * fix error handling on deletion * deploy configmaps for chain coordinator * yaml for cluster config * add user/password to devnet config * remove mounts from kind.yaml * helpful scripts * gitignore * rename file * provide example json * initial pass at readme * add some metatdata to cargo.toml * add license * update readme * add todo * rename package import * Apply suggestions from code review Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com> * add module to parse template files * use new template file parser * set context on automated kubectl command * Switch to ApacheV2 license * convert consts to i32 * add error handling for resource creation/deletion * add context to kubectl commands * set up proxy server * bind server to 0.0.0.0 * create k8s manager struct * add proxy routing to downstream pods * add tests * deps updatee * remove NodePort type from services * create template to deploy devnet-api-server to k8s * docker file for devnet api * update port for stacks-devnet-api service * use deployed pods! * use Always imagePullPolicy for newer images * build docker image in release mode * remove sleep! * add back sleep :( * started logging implementation * add more logging * fix port number * fix types for deleteing resources * remove delete_namespace func * feat: add route to get network info (#21) * add modules to manage k8s resources * update delete devnet to use utils * add strum deps * add struct for devnet info response * add struct for stacksv2info response * helper function to fetch status from a pod * helper function to get stacks v2 info route * function to query/assemble devnet info * remove get_proxy_data * add route to get devnet info * rename struct * add pvc module * update delete devnet to use pvc mod * rename utils -> resources * add ports to service * use service ports enum * revert server port number * refactor template parser to use new resource enums * fix service url * improve logging * add content type to response * add to ClusterRole resource list * fix event/db ports for stacks api config * fix service url * fix url to get v2 info * add helper to get user facing port * get user facing port for proxy requests * fix test * fix proxy url --------- Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>
MicaiahReid
added a commit
that referenced
this pull request
Jul 24, 2023
* working deployment of pods * use internal ports * cleanup, use config struct, create server * add templates for pods/configmaps/services * use template yaml rather than json for deployments * add missed template yaml * add route to delete deployment * make services nodeport type * rename var * fix error handling on deletion * deploy configmaps for chain coordinator * yaml for cluster config * add user/password to devnet config * remove mounts from kind.yaml * helpful scripts * gitignore * rename file * provide example json * initial pass at readme * add some metatdata to cargo.toml * add license * update readme * add todo * rename package import * Apply suggestions from code review Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com> * add module to parse template files * use new template file parser * set context on automated kubectl command * Switch to ApacheV2 license * convert consts to i32 * add error handling for resource creation/deletion * add context to kubectl commands * set up proxy server * bind server to 0.0.0.0 * create k8s manager struct * add proxy routing to downstream pods * add tests * deps updatee * remove NodePort type from services * create template to deploy devnet-api-server to k8s * docker file for devnet api * update port for stacks-devnet-api service * use deployed pods! * use Always imagePullPolicy for newer images * build docker image in release mode * remove sleep! * add back sleep :( * started logging implementation * add more logging * fix port number * fix types for deleteing resources * remove delete_namespace func * feat: add route to get network info (#21) * add modules to manage k8s resources * update delete devnet to use utils * add strum deps * add struct for devnet info response * add struct for stacksv2info response * helper function to fetch status from a pod * helper function to get stacks v2 info route * function to query/assemble devnet info * remove get_proxy_data * add route to get devnet info * rename struct * add pvc module * update delete devnet to use pvc mod * rename utils -> resources * add ports to service * use service ports enum * revert server port number * refactor template parser to use new resource enums * fix service url * improve logging * add content type to response * add to ClusterRole resource list * fix event/db ports for stacks api config * fix service url * fix url to get v2 info * add helper to get user facing port * get user facing port for proxy requests * fix test * fix proxy url * add config.rs * add deps * use new config.rs * compute address from mnemonic * better error handling * add control port * change configmap typing * update config * add deps * make pox_2_activation optional * deps * add back deps * add todo for unavailable import * add note to todo for explorer disable flags * make explorer disables optional * remove print statements * remove unused field * add back unused field * add examples for new network config * remove comment * remove todo's * add struct for validated user data * base64 encode contract * fix broken config * update json example * remove blank space * remove deployment_fee_rate --------- Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>
MicaiahReid
added a commit
that referenced
this pull request
Jul 24, 2023
* working deployment of pods * use internal ports * cleanup, use config struct, create server * add templates for pods/configmaps/services * use template yaml rather than json for deployments * add missed template yaml * add route to delete deployment * make services nodeport type * rename var * fix error handling on deletion * deploy configmaps for chain coordinator * yaml for cluster config * add user/password to devnet config * remove mounts from kind.yaml * helpful scripts * gitignore * rename file * provide example json * initial pass at readme * add some metatdata to cargo.toml * add license * update readme * add todo * rename package import * Apply suggestions from code review Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com> * add module to parse template files * use new template file parser * set context on automated kubectl command * Switch to ApacheV2 license * convert consts to i32 * add error handling for resource creation/deletion * add context to kubectl commands * set up proxy server * bind server to 0.0.0.0 * create k8s manager struct * add proxy routing to downstream pods * add tests * deps updatee * remove NodePort type from services * create template to deploy devnet-api-server to k8s * docker file for devnet api * update port for stacks-devnet-api service * use deployed pods! * use Always imagePullPolicy for newer images * build docker image in release mode * remove sleep! * add back sleep :( * started logging implementation * add more logging * fix port number * fix types for deleteing resources * remove delete_namespace func * feat: add route to get network info (#21) * add modules to manage k8s resources * update delete devnet to use utils * add strum deps * add struct for devnet info response * add struct for stacksv2info response * helper function to fetch status from a pod * helper function to get stacks v2 info route * function to query/assemble devnet info * remove get_proxy_data * add route to get devnet info * rename struct * add pvc module * update delete devnet to use pvc mod * rename utils -> resources * add ports to service * use service ports enum * revert server port number * refactor template parser to use new resource enums * fix service url * improve logging * add content type to response * add to ClusterRole resource list * fix event/db ports for stacks api config * fix service url * fix url to get v2 info * add helper to get user facing port * get user facing port for proxy requests * fix test * fix proxy url * add config.rs * add deps * use new config.rs * compute address from mnemonic * better error handling * add control port * change configmap typing * update config * add deps * make pox_2_activation optional * deps * add back deps * add todo for unavailable import * add note to todo for explorer disable flags * make explorer disables optional * remove print statements * remove unused field * move routes into separate module * add back unused field * add examples for new network config * add open api file * remove comment * remove todo's * add struct for validated user data * base64 encode contract * fix broken config * update json example * remove blank space * fix openapi spec a bit * delete openapi file --------- Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>
MicaiahReid
added a commit
that referenced
this pull request
Jul 30, 2023
* working deployment of pods * use internal ports * cleanup, use config struct, create server * add templates for pods/configmaps/services * use template yaml rather than json for deployments * add missed template yaml * add route to delete deployment * make services nodeport type * rename var * fix error handling on deletion * deploy configmaps for chain coordinator * yaml for cluster config * add user/password to devnet config * remove mounts from kind.yaml * helpful scripts * gitignore * rename file * provide example json * initial pass at readme * add some metatdata to cargo.toml * add license * update readme * add todo * rename package import * Apply suggestions from code review Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com> * add module to parse template files * use new template file parser * set context on automated kubectl command * Switch to ApacheV2 license * convert consts to i32 * add error handling for resource creation/deletion * add context to kubectl commands * set up proxy server * bind server to 0.0.0.0 * create k8s manager struct * add proxy routing to downstream pods * add tests * deps updatee * remove NodePort type from services * create template to deploy devnet-api-server to k8s * docker file for devnet api * update port for stacks-devnet-api service * use deployed pods! * use Always imagePullPolicy for newer images * build docker image in release mode * remove sleep! * add back sleep :( * started logging implementation * add more logging * fix port number * fix types for deleteing resources * remove delete_namespace func * feat: add route to get network info (#21) * add modules to manage k8s resources * update delete devnet to use utils * add strum deps * add struct for devnet info response * add struct for stacksv2info response * helper function to fetch status from a pod * helper function to get stacks v2 info route * function to query/assemble devnet info * remove get_proxy_data * add route to get devnet info * rename struct * add pvc module * update delete devnet to use pvc mod * rename utils -> resources * add ports to service * use service ports enum * revert server port number * refactor template parser to use new resource enums * fix service url * improve logging * add content type to response * add to ClusterRole resource list * fix event/db ports for stacks api config * fix service url * fix url to get v2 info * add helper to get user facing port * get user facing port for proxy requests * fix test * fix proxy url * add config.rs * add deps * use new config.rs * compute address from mnemonic * better error handling * add control port * change configmap typing * update config * add deps * make pox_2_activation optional * deps * add back deps * add todo for unavailable import * add note to todo for explorer disable flags * make explorer disables optional * remove print statements * remove unused field * move routes into separate module * add back unused field * add examples for new network config * add open api file * remove comment * remove todo's * add struct for validated user data * base64 encode contract * fix broken config * update json example * remove blank space * fix openapi spec a bit * delete openapi file * create Responder module * import responder module * use responder to respond to all requests * read config file to set headers * enable OPTIONS method * set path to find Config * add configmap to volume for stacks-devnet-api * set default config * scripts to deploy/redeploy api * only read config on startup * update readme * newline * newlines --------- Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>
github-actions bot
pushed a commit
that referenced
this pull request
Nov 16, 2023
## 1.0.0 (2023-11-16)
### Features
* add `HEAD /api/v1/network/{network}` route ([#41](#41)) ([1bf329f](1bf329f))
* add logging and network info route ([#20](#20)) ([2af0bab](2af0bab)), closes [#21](#21)
* proxy http requests to downstream pods ([#11](#11)) ([6ecdf0f](6ecdf0f))
* release develop ([#84](#84)) ([89a1a1b](89a1a1b))
### Bug Fixes
* add access_control_allow_credentials header ([a482a93](a482a93))
* add cors settings; refactor http responses ([#42](#42)) ([c46db4c](c46db4c)), closes [#21](#21)
* assert more general error msg ([#48](#48)) ([926e3a0](926e3a0))
* create namespace in deploy api script ([f5ff5e0](f5ff5e0))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.