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
|
|
|
|
2023-08-17 15:22:32 +00:00
|
|
|
// Target is set by the mutator that selects the target.
|
|
|
|
Target string `json:"target,omitempty" bundle:"readonly"`
|
|
|
|
|
|
|
|
// DEPRECATED. Left for backward compatibility with Target
|
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
|
|
|
|
2023-08-17 15:22:32 +00:00
|
|
|
// Determines the mode of the target.
|
2023-07-12 06:51:54 +00:00
|
|
|
// For example, 'mode: development' can be used for deployments for
|
|
|
|
// development purposes.
|
2023-08-17 15:22:32 +00:00
|
|
|
// Annotated readonly as this should be set at the target level.
|
2023-07-12 06:51:54 +00:00
|
|
|
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
|
|
|
}
|