Skip to content

Commit 1b43ec1

Browse files
committed
Compile fixes.
1 parent cf0538f commit 1b43ec1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/create_pod/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void create_a_pod(apiClient_t * apiClient)
2323
v1_container_t *con = calloc(1, sizeof(v1_container_t));
2424
con->name = strdup("my-container");
2525
con->image = strdup("ubuntu:latest");
26-
con->image_pull_policy = kubernetes_v1_container_IMAGEPULLPOLICY_IfNotPresent;
26+
con->image_pull_policy = strdup("IfNotPresent");
2727

2828
/* set command for container */
2929
list_t *commandlist = list_createList();

examples/multi_thread/create_pod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static void create_a_pod(apiClient_t * apiClient)
1818
v1_container_t *con = calloc(1, sizeof(v1_container_t));
1919
con->name = strdup("my-container");
2020
con->image = strdup("ubuntu:latest");
21-
con->image_pull_policy = kubernetes_v1_container_IMAGEPULLPOLICY_IfNotPresent;
21+
con->image_pull_policy = strdup("IfNotPresent");
2222

2323
/* set command for container */
2424
list_t *commandlist = list_createList();

0 commit comments

Comments
 (0)