Skip to content

Conversation

@MicaiahReid
Copy link
Contributor

No description provided.

@MicaiahReid MicaiahReid changed the base branch from main to feat/logging June 20, 2023 18:55
@MicaiahReid MicaiahReid merged commit 117bcdf into feat/logging Jun 20, 2023
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants