-
Notifications
You must be signed in to change notification settings - Fork 1
/
Helm.go
143 lines (121 loc) · 3.11 KB
/
Helm.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package cdk8s
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdk8s-team/cdk8s-core-go/cdk8s/jsii"
"github.com/aws/constructs-go/constructs/v3"
)
// Represents a Helm deployment.
//
// Use this construct to import an existing Helm chart and incorporate it into your constructs.
type Helm interface {
Include
// Returns all the included API objects.
ApiObjects() *[]ApiObject
// The helm release name.
ReleaseName() *string
// Perform final modifications before synthesis.
//
// This method can be implemented by derived constructs in order to perform
// final changes before synthesis. prepare() will be called after child
// constructs have been prepared.
//
// This is an advanced framework feature. Only use this if you
// understand the implications.
OnPrepare()
// Allows this construct to emit artifacts into the cloud assembly during synthesis.
//
// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
// as they participate in synthesizing the cloud assembly.
OnSynthesize(session constructs.ISynthesisSession)
// Validate the current construct.
//
// This method can be implemented by derived constructs in order to perform
// validation logic. It is called on all constructs before synthesis.
//
// Returns: An array of validation error messages, or an empty array if there the construct is valid.
// Deprecated: use `Node.addValidation()` to subscribe validation functions on this construct
// instead of overriding this method.
OnValidate() *[]*string
// Returns a string representation of this construct.
ToString() *string
}
// The jsii proxy struct for Helm
type jsiiProxy_Helm struct {
jsiiProxy_Include
}
func (j *jsiiProxy_Helm) ApiObjects() *[]ApiObject {
var returns *[]ApiObject
_jsii_.Get(
j,
"apiObjects",
&returns,
)
return returns
}
func (j *jsiiProxy_Helm) ReleaseName() *string {
var returns *string
_jsii_.Get(
j,
"releaseName",
&returns,
)
return returns
}
func NewHelm(scope constructs.Construct, id *string, props *HelmProps) Helm {
_init_.Initialize()
if err := validateNewHelmParameters(scope, id, props); err != nil {
panic(err)
}
j := jsiiProxy_Helm{}
_jsii_.Create(
"cdk8s.Helm",
[]interface{}{scope, id, props},
&j,
)
return &j
}
func NewHelm_Override(h Helm, scope constructs.Construct, id *string, props *HelmProps) {
_init_.Initialize()
_jsii_.Create(
"cdk8s.Helm",
[]interface{}{scope, id, props},
h,
)
}
func (h *jsiiProxy_Helm) OnPrepare() {
_jsii_.InvokeVoid(
h,
"onPrepare",
nil, // no parameters
)
}
func (h *jsiiProxy_Helm) OnSynthesize(session constructs.ISynthesisSession) {
if err := h.validateOnSynthesizeParameters(session); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
h,
"onSynthesize",
[]interface{}{session},
)
}
func (h *jsiiProxy_Helm) OnValidate() *[]*string {
var returns *[]*string
_jsii_.Invoke(
h,
"onValidate",
nil, // no parameters
&returns,
)
return returns
}
func (h *jsiiProxy_Helm) ToString() *string {
var returns *string
_jsii_.Invoke(
h,
"toString",
nil, // no parameters
&returns,
)
return returns
}