/
values.go
21 lines (17 loc) · 1.13 KB
/
values.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package kubernetes
import "github.com/klothoplatform/klotho/pkg/core"
// Values specifies the values that exist in the generated helm chart, which are necessary to provide during installation to run on the provider
type Value struct {
ExecUnitName string // ExecUnitName signifies the exec unit that this value is for
Kind string // Kind is the kind of the kubernetes object this value is applied to
Type string // Type is the type of value expected
Key string // Key is the key to be used in helms values.yaml file or cli
EnvironmentVariable core.EnvironmentVariable //EnvironmentVariable provides information around what environment variable is needed for substitution
}
type ProviderValueTypes string
const (
TargetGroupTransformation ProviderValueTypes = "target_group"
ImageTransformation ProviderValueTypes = "image"
EnvironmentVariableTransformation ProviderValueTypes = "env_var"
ServiceAccountAnnotationTransformation ProviderValueTypes = "service_account_annotation"
)