-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR reworks the URL/port handling across all modules to simplify & standardize our Starlark practices. It accomplishes this by: - extracting common port IDs to `constants` - implementing `util` methods like `make_service_http_url`, `make_execution_rpc_url`, `make_execution_engine_url`, etc - standardizing `Service` construction to minimize toil & surface area for human error
- Loading branch information
Showing
35 changed files
with
855 additions
and
244 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
install-ns-authz: | ||
helm install ns-authz util/ns-authz --namespace kube-system | ||
|
||
uninstall-ns-authz: | ||
helm uninstall ns-authz --namespace kube-system | ||
|
||
get-service-url enclaveName serviceName portId: | ||
kurtosis service inspect {{enclaveName}} {{serviceName}} | tail -n +2 | yq e - -o=json |\ | ||
jq -r --arg portId {{portId}} '.Ports[$portId]' | sed 's/.*-> //' | ||
|
||
open-service enclaveName serviceName: | ||
open "$(just get-service-url {{enclaveName}} {{serviceName}} http)" | ||
|
||
open-grafana enclaveName: | ||
just open-service {{enclaveName}} grafana | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.