forked from kurtosis-tech/kurtosis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow kurtosis cli to be used behind proxy (kurtosis-tech#1434)
- Loading branch information
1 parent
57da901
commit 9eadf60
Showing
6 changed files
with
145 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
cli/cli/kurtosis_config/overrides_objects/v3/kubernetes_cluster_config_v3.go
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 @@ | ||
package v3 | ||
|
||
/* | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
DO NOT CHANGE THIS FILE! | ||
If you change this file, it will break config for users who have instantiated an | ||
overrides file with this version of config overrides! | ||
Instead, to make changes, you will need to add a new version of the config | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
*/ | ||
|
||
type KubernetesClusterConfigV3 struct { | ||
KubernetesClusterName *string `yaml:"kubernetes-cluster-name,omitempty"` | ||
StorageClass *string `yaml:"storage-class,omitempty"` | ||
EnclaveSizeInMegabytes *uint `yaml:"enclave-size-in-megabytes,omitempty"` | ||
} |
16 changes: 16 additions & 0 deletions
16
cli/cli/kurtosis_config/overrides_objects/v3/kurtosis_cloud_config_v3.go
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 @@ | ||
package v3 | ||
|
||
/* | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
DO NOT CHANGE THIS FILE! | ||
If you change this file, it will break config for users who have instantiated an | ||
overrides file with this version of config overrides! | ||
Instead, to make changes, you will need to add a new version of the config | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
*/ | ||
|
||
type KurtosisCloudConfigV3 struct { | ||
ApiUrl *string `yaml:"api-url,omitempty"` | ||
Port *uint `yaml:"port,omitempty"` | ||
CertificateChain *string `yaml:"certificate-chain,omitempty"` | ||
} |
16 changes: 16 additions & 0 deletions
16
cli/cli/kurtosis_config/overrides_objects/v3/kurtosis_cluster_config_v3.go
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 @@ | ||
package v3 | ||
|
||
/* | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
DO NOT CHANGE THIS FILE! | ||
If you change this file, it will break config for users who have instantiated an | ||
overrides file with this version of config overrides! | ||
Instead, to make changes, you will need to add a new version of the config | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
*/ | ||
|
||
type KurtosisClusterConfigV3 struct { | ||
Type *string `yaml:"type,omitempty"` | ||
// If we ever get another type of cluster that has configuration, this will need to be polymorphically deserialized | ||
Config *KubernetesClusterConfigV3 `yaml:"config,omitempty"` | ||
} |
26 changes: 26 additions & 0 deletions
26
cli/cli/kurtosis_config/overrides_objects/v3/kurtosis_config_v3.go
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,26 @@ | ||
package v3 | ||
|
||
import "github.com/kurtosis-tech/kurtosis/cli/cli/kurtosis_config/config_version" | ||
|
||
/* | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
DO NOT CHANGE THIS FILE! | ||
If you change this file, it will break config for users who have instantiated an | ||
overrides file with this version of config overrides! | ||
Instead, to make changes, you will need to add a new version of the config | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
*/ | ||
|
||
// NOTE: All new YAML property names here should be kebab-case because | ||
// 1. it's easier to read | ||
// 2. it's easier to write | ||
// 3. it's consistent with previous properties and changing the format of an already-written config file is very difficult | ||
type KurtosisConfigV3 struct { | ||
// vvvvvvvvv Every new Kurtosis config version must have this key vvvvvvvv | ||
ConfigVersion config_version.ConfigVersion `yaml:"config-version"` | ||
// ^^^^^^^^^ Every new Kurtosis config version must have this key ^^^^^^^^ | ||
|
||
ShouldSendMetrics *bool `yaml:"should-send-metrics,omitempty"` | ||
KurtosisClusters map[string]*KurtosisClusterConfigV3 `yaml:"kurtosis-clusters,omitempty"` | ||
CloudConfig *KurtosisCloudConfigV3 `yaml:"cloud-config,omitempty"` | ||
} |
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.