-
Notifications
You must be signed in to change notification settings - Fork 77
/
intent.go
25 lines (21 loc) · 882 Bytes
/
intent.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package v1
type Type string
const (
Kubernetes Type = "Kubernetes"
Terraform Type = "Terraform"
)
const (
// ResourceExtensionGVK is the key for resource extension, which is used to
// store the GVK of the resource.
ResourceExtensionGVK = "GVK"
// ResourceExtensionKubeConfig is the key for resource extension, which is used
// to indicate the path of kubeConfig for Kubernetes type resource.
ResourceExtensionKubeConfig = "kubeConfig"
)
// Intent describes the desired state how the infrastructure should look like: which workload to run,
// the load-balancer setup, the location of the database schema, and so on. Based on that information,
// the Kusion engine takes care of updating the production state to match the Intent.
type Intent struct {
// Resources is the list of Resource this Intent contains.
Resources Resources `json:"resources" yaml:"resources"`
}