Update create/free list function names due to changes in generated code

This commit is contained in:
Hui Yu
2022-03-09 14:09:10 +08:00
parent 4c6db23e55
commit 84ca277aa9
9 changed files with 19 additions and 19 deletions

View File

@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
free(update);
const char *patchBody = "[{\"op\": \"replace\", \"path\": \"/metadata/labels/foo\", \"value\": \"qux\" }]";
list_t *contentType = list_create();
list_t *contentType = list_createList();
// Kubernetes supports multiple content types:
list_addElement(contentType, "application/json-patch+json");
// list_addElement(contentType, "application/merge-patch+json");
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
// list_addElement(contentType, "application/apply-patch+yaml");
char *patch = Generic_patchResource(genericClient, "test", patchBody, NULL, NULL, NULL, NULL, contentType);
printf("%s\n", patch);
list_free(contentType);
list_freeList(contentType);
free(patch);
char *del = Generic_deleteResource(genericClient, "test");