File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 21
21
"touch kube-test.txt"
22
22
]
23
23
24
- )#closing for V1ExecAction
24
+ )
25
25
26
- )#closing for V1Handler
26
+ )
27
27
28
- )#closing for V1Lifecycle
28
+ )
29
29
)
30
30
31
31
# Template
39
39
replicas = 1 ,
40
40
template = template )
41
41
42
- #Deployment
42
+
43
+ # Deployment
43
44
deployment = client .ExtensionsV1beta1Deployment (
44
45
api_version = "extensions/v1beta1" ,
45
46
kind = "Deployment" ,
46
47
metadata = client .V1ObjectMeta (name = "hooktest-deployment" ),
47
48
spec = spec )
48
49
49
- # Creation of the Deployment in specified namespace
50
- extension .create_namespaced_deployment (namespace = "kube-client" , body = deployment )
51
-
52
50
51
+ # Creation of the Deployment in specified namespace
52
+ extension .create_namespaced_deployment (
53
+ namespace = "kube-client" ,
54
+ body = deployment )
Original file line number Diff line number Diff line change 24
24
"touch kube-test.txt"
25
25
]
26
26
27
- )#closing for V1ExecAction
27
+ )
28
28
29
- )#closing for V1Handler
29
+ )
30
30
31
- )#closing for V1Lifecycle
31
+ )
32
32
)
33
33
34
34
# Template
42
42
replicas = 1 ,
43
43
template = template )
44
44
45
- #Deployment
45
+ # Deployment
46
46
deployment = client .ExtensionsV1beta1Deployment (
47
47
api_version = "extensions/v1beta1" ,
48
48
kind = "Deployment" ,
49
49
metadata = client .V1ObjectMeta (name = "nginx-deployment" ),
50
50
spec = spec )
51
51
52
52
# Creation of the Deployment in specified namespace
53
- extension .create_namespaced_deployment (namespace = "kube-client" , body = deployment )
54
-
55
-
53
+ extension .create_namespaced_deployment (
54
+ namespace = "kube-client" ,
55
+ body = deployment )
You can’t perform that action at this time.
0 commit comments