Compile fixes.

This commit is contained in:
Brendan Burns
2022-06-07 16:51:43 +00:00
parent cf0538fd4d
commit 1b43ec1100
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ void create_a_pod(apiClient_t * apiClient)
v1_container_t *con = calloc(1, sizeof(v1_container_t));
con->name = strdup("my-container");
con->image = strdup("ubuntu:latest");
con->image_pull_policy = kubernetes_v1_container_IMAGEPULLPOLICY_IfNotPresent;
con->image_pull_policy = strdup("IfNotPresent");
/* set command for container */
list_t *commandlist = list_createList();

View File

@@ -18,7 +18,7 @@ static void create_a_pod(apiClient_t * apiClient)
v1_container_t *con = calloc(1, sizeof(v1_container_t));
con->name = strdup("my-container");
con->image = strdup("ubuntu:latest");
con->image_pull_policy = kubernetes_v1_container_IMAGEPULLPOLICY_IfNotPresent;
con->image_pull_policy = strdup("IfNotPresent");
/* set command for container */
list_t *commandlist = list_createList();