@@ -14,25 +14,25 @@ static void create_a_pod(apiClient_t * apiClient)
14
14
podinfo -> metadata -> name = strdup ("test-pod-8" );
15
15
16
16
/* set containers for pod */
17
- list_t * containerlist = list_create ();
17
+ list_t * containerlist = list_createList ();
18
18
v1_container_t * con = calloc (1 , sizeof (v1_container_t ));
19
19
con -> name = strdup ("my-container" );
20
20
con -> image = strdup ("ubuntu:latest" );
21
21
con -> image_pull_policy = strdup ("IfNotPresent" );
22
22
23
23
/* set command for container */
24
- list_t * commandlist = list_create ();
24
+ list_t * commandlist = list_createList ();
25
25
char * cmd = strdup ("sleep" );
26
26
list_addElement (commandlist , cmd );
27
27
con -> command = commandlist ;
28
28
29
- list_t * arglist = list_create ();
29
+ list_t * arglist = list_createList ();
30
30
char * arg1 = strdup ("3600" );
31
31
list_addElement (arglist , arg1 );
32
32
con -> args = arglist ;
33
33
34
34
/* set volume mounts for container */
35
- list_t * volumemounts = list_create ();
35
+ list_t * volumemounts = list_createList ();
36
36
v1_volume_mount_t * volmou = calloc (1 , sizeof (v1_volume_mount_t ));
37
37
volmou -> mount_path = strdup ("/test" );
38
38
volmou -> name = strdup ("test" );
@@ -43,7 +43,7 @@ static void create_a_pod(apiClient_t * apiClient)
43
43
podinfo -> spec -> containers = containerlist ;
44
44
45
45
/* set volumes for pod */
46
- list_t * volumelist = list_create ();
46
+ list_t * volumelist = list_createList ();
47
47
v1_volume_t * volume = calloc (1 , sizeof (v1_volume_t ));
48
48
volume -> name = strdup ("test" );
49
49
0 commit comments