/
DeploymentStrategy.go
52 lines (40 loc) · 1.11 KB
/
DeploymentStrategy.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
package cdk8splus26
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdk8s-team/cdk8s-plus-go/cdk8splus26/v2/jsii"
)
// Deployment strategies.
type DeploymentStrategy interface {
}
// The jsii proxy struct for DeploymentStrategy
type jsiiProxy_DeploymentStrategy struct {
_ byte // padding
}
// All existing Pods are killed before new ones are created.
// See: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#recreate-deployment
//
func DeploymentStrategy_Recreate() DeploymentStrategy {
_init_.Initialize()
var returns DeploymentStrategy
_jsii_.StaticInvoke(
"cdk8s-plus-26.DeploymentStrategy",
"recreate",
nil, // no parameters
&returns,
)
return returns
}
func DeploymentStrategy_RollingUpdate(options *DeploymentStrategyRollingUpdateOptions) DeploymentStrategy {
_init_.Initialize()
if err := validateDeploymentStrategy_RollingUpdateParameters(options); err != nil {
panic(err)
}
var returns DeploymentStrategy
_jsii_.StaticInvoke(
"cdk8s-plus-26.DeploymentStrategy",
"rollingUpdate",
[]interface{}{options},
&returns,
)
return returns
}