2022-11-18 09:57:31 +00:00
|
|
|
package config
|
|
|
|
|
2022-12-15 16:30:33 +00:00
|
|
|
type Terraform struct {
|
|
|
|
ExecPath string `json:"exec_path"`
|
|
|
|
}
|
|
|
|
|
2022-11-18 09:57:31 +00:00
|
|
|
type Bundle struct {
|
2023-02-17 01:49:39 +00:00
|
|
|
Name string `json:"name"`
|
2022-11-18 09:57:31 +00:00
|
|
|
|
|
|
|
// TODO
|
|
|
|
// Default cluster to run commands on (Python, Scala).
|
|
|
|
// DefaultCluster string `json:"default_cluster,omitempty"`
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
// Default warehouse to run SQL on.
|
|
|
|
// DefaultWarehouse string `json:"default_warehouse,omitempty"`
|
2022-11-28 09:10:13 +00:00
|
|
|
|
|
|
|
// Environment is set by the mutator that selects the environment.
|
2023-04-04 10:16:07 +00:00
|
|
|
Environment string `json:"environment,omitempty" bundle:"readonly"`
|
2022-12-15 16:30:33 +00:00
|
|
|
|
|
|
|
// Terraform holds configuration related to Terraform.
|
|
|
|
// For example, where to find the binary, which version to use, etc.
|
2023-04-04 10:16:07 +00:00
|
|
|
Terraform *Terraform `json:"terraform,omitempty" bundle:"readonly"`
|
2023-03-22 15:37:26 +00:00
|
|
|
|
|
|
|
// Lock configures locking behavior on deployment.
|
2023-04-04 10:16:07 +00:00
|
|
|
Lock Lock `json:"lock" bundle:"readonly"`
|
2023-04-26 14:54:36 +00:00
|
|
|
|
2023-07-30 12:44:33 +00:00
|
|
|
// Force-override Git branch validation.
|
|
|
|
Force bool `json:"force" bundle:"readonly"`
|
|
|
|
|
2023-04-26 14:54:36 +00:00
|
|
|
// Contains Git information like current commit, current branch and
|
|
|
|
// origin url. Automatically loaded by reading .git directory if not specified
|
2023-05-01 12:34:12 +00:00
|
|
|
Git Git `json:"git,omitempty"`
|
2023-07-12 06:51:54 +00:00
|
|
|
|
|
|
|
// Determines the mode of the environment.
|
|
|
|
// For example, 'mode: development' can be used for deployments for
|
|
|
|
// development purposes.
|
|
|
|
// Annotated readonly as this should be set at the environment level.
|
|
|
|
Mode Mode `json:"mode,omitempty" bundle:"readonly"`
|
|
|
|
|
|
|
|
// Overrides the compute used for jobs and other supported assets.
|
|
|
|
ComputeID string `json:"compute_id,omitempty"`
|
2022-11-18 09:57:31 +00:00
|
|
|
}
|