-
Notifications
You must be signed in to change notification settings - Fork 1
/
StatefulSetUpdateStrategy.go
58 lines (46 loc) · 1.55 KB
/
StatefulSetUpdateStrategy.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
package cdk8splus29
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdk8s-team/cdk8s-plus-go/cdk8splus29/v2/jsii"
)
// StatefulSet update strategies.
type StatefulSetUpdateStrategy interface {
}
// The jsii proxy struct for StatefulSetUpdateStrategy
type jsiiProxy_StatefulSetUpdateStrategy struct {
_ byte // padding
}
// The controller will not automatically update the Pods in a StatefulSet.
//
// Users must manually delete Pods to cause the controller to create new Pods
// that reflect modifications.
func StatefulSetUpdateStrategy_OnDelete() StatefulSetUpdateStrategy {
_init_.Initialize()
var returns StatefulSetUpdateStrategy
_jsii_.StaticInvoke(
"cdk8s-plus-29.StatefulSetUpdateStrategy",
"onDelete",
nil, // no parameters
&returns,
)
return returns
}
// The controller will delete and recreate each Pod in the StatefulSet.
//
// It will proceed in the same order as Pod termination (from the largest ordinal to the smallest),
// updating each Pod one at a time. The Kubernetes control plane waits until an updated
// Pod is Running and Ready prior to updating its predecessor.
func StatefulSetUpdateStrategy_RollingUpdate(options *StatefulSetUpdateStrategyRollingUpdateOptions) StatefulSetUpdateStrategy {
_init_.Initialize()
if err := validateStatefulSetUpdateStrategy_RollingUpdateParameters(options); err != nil {
panic(err)
}
var returns StatefulSetUpdateStrategy
_jsii_.StaticInvoke(
"cdk8s-plus-29.StatefulSetUpdateStrategy",
"rollingUpdate",
[]interface{}{options},
&returns,
)
return returns
}