-
Notifications
You must be signed in to change notification settings - Fork 1
/
HelmProps.go
49 lines (46 loc) · 1.75 KB
/
HelmProps.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package cdk8s
// Options for `Helm`.
type HelmProps struct {
// The chart name to use. It can be a chart from a helm repository or a local directory.
//
// This name is passed to `helm template` and has all the relevant semantics.
//
// Example:
// "bitnami/redis"
//
Chart *string `field:"required" json:"chart" yaml:"chart"`
// The local helm executable to use in order to create the manifest the chart.
// Default: "helm".
//
HelmExecutable *string `field:"optional" json:"helmExecutable" yaml:"helmExecutable"`
// Additional flags to add to the `helm` execution.
// Default: [].
//
HelmFlags *[]*string `field:"optional" json:"helmFlags" yaml:"helmFlags"`
// Scope all resources in to a given namespace.
Namespace *string `field:"optional" json:"namespace" yaml:"namespace"`
// The release name.
// See: https://helm.sh/docs/intro/using_helm/#three-big-concepts
//
// Default: - if unspecified, a name will be allocated based on the construct path.
//
ReleaseName *string `field:"optional" json:"releaseName" yaml:"releaseName"`
// Chart repository url where to locate the requested chart.
Repo *string `field:"optional" json:"repo" yaml:"repo"`
// Values to pass to the chart.
// Default: - If no values are specified, chart will use the defaults.
//
Values *map[string]interface{} `field:"optional" json:"values" yaml:"values"`
// Version constraint for the chart version to use.
//
// This constraint can be a specific tag (e.g. 1.1.1)
// or it may reference a valid range (e.g. ^2.0.0).
// If this is not specified, the latest version is used
//
// This name is passed to `helm template --version` and has all the relevant semantics.
//
// Example:
// "^2.0.0"
//
Version *string `field:"optional" json:"version" yaml:"version"`
}