Skip to content

Commit

Permalink
feat: add more endpoints to support the Cloud (#1077)
Browse files Browse the repository at this point in the history
## Description:
adding two endpoints to support the creation of api key and instance

## Is this change user facing?
No

## References (if applicable):
  • Loading branch information
adschwartz committed Aug 8, 2023
1 parent 1135543 commit 1d70382
Show file tree
Hide file tree
Showing 4 changed files with 469 additions and 85 deletions.
3 changes: 1 addition & 2 deletions cli/cli/commands/cloud/load/load.go
Expand Up @@ -22,7 +22,6 @@ import (
const (
instanceIdentifierArgKey = "instance-id"
instanceIdentifierArgIsGreedy = false
kurtosisCloudApiKeyEnvVarArg = "KURTOSIS_CLOUD_API_KEY"
)

var LoadCmd = &lowlevel.LowlevelKurtosisCommand{
Expand Down Expand Up @@ -50,7 +49,7 @@ func run(ctx context.Context, _ *flags.ParsedFlags, args *args.ParsedArgs) error
apiKey, err := cloudhelper.LoadApiKey()
if err != nil {
return stacktrace.Propagate(err, "Could not load an API Key. Check that it's defined using the "+
"%s env var and it's a valid (active) key", kurtosisCloudApiKeyEnvVarArg)
"%s env var and it's a valid (active) key", cloudhelper.KurtosisCloudApiKeyEnvVarArg)
}

cloudConfig, err := cloudhelper.GetCloudConfig()
Expand Down

0 comments on commit 1d70382

Please sign in to comment.