Skip to content

Commit 9dca019

Browse files
committed
Always send integer or boolean query parameters to the API server
1 parent 39a4dab commit 9dca019

25 files changed

+815
-815
lines changed

kubernetes/api/AdmissionregistrationV1API.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
454454
char *keyQuery_gracePeriodSeconds = NULL;
455455
char * valueQuery_gracePeriodSeconds = NULL;
456456
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
457-
if (gracePeriodSeconds)
457+
if (1) // Always send integer parameters to the API server
458458
{
459459
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
460460
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -479,7 +479,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
479479
char *keyQuery_limit = NULL;
480480
char * valueQuery_limit = NULL;
481481
keyValuePair_t *keyPairQuery_limit = 0;
482-
if (limit)
482+
if (1) // Always send integer parameters to the API server
483483
{
484484
keyQuery_limit = strdup("limit");
485485
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
@@ -492,7 +492,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
492492
char *keyQuery_orphanDependents = NULL;
493493
char * valueQuery_orphanDependents = NULL;
494494
keyValuePair_t *keyPairQuery_orphanDependents = 0;
495-
if (orphanDependents)
495+
if (1) // Always send boolean parameters to the API server
496496
{
497497
keyQuery_orphanDependents = strdup("orphanDependents");
498498
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
@@ -541,7 +541,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
541541
char *keyQuery_timeoutSeconds = NULL;
542542
char * valueQuery_timeoutSeconds = NULL;
543543
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
544-
if (timeoutSeconds)
544+
if (1) // Always send integer parameters to the API server
545545
{
546546
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
547547
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -827,7 +827,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
827827
char *keyQuery_gracePeriodSeconds = NULL;
828828
char * valueQuery_gracePeriodSeconds = NULL;
829829
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
830-
if (gracePeriodSeconds)
830+
if (1) // Always send integer parameters to the API server
831831
{
832832
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
833833
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -852,7 +852,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
852852
char *keyQuery_limit = NULL;
853853
char * valueQuery_limit = NULL;
854854
keyValuePair_t *keyPairQuery_limit = 0;
855-
if (limit)
855+
if (1) // Always send integer parameters to the API server
856856
{
857857
keyQuery_limit = strdup("limit");
858858
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
@@ -865,7 +865,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
865865
char *keyQuery_orphanDependents = NULL;
866866
char * valueQuery_orphanDependents = NULL;
867867
keyValuePair_t *keyPairQuery_orphanDependents = 0;
868-
if (orphanDependents)
868+
if (1) // Always send boolean parameters to the API server
869869
{
870870
keyQuery_orphanDependents = strdup("orphanDependents");
871871
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
@@ -914,7 +914,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
914914
char *keyQuery_timeoutSeconds = NULL;
915915
char * valueQuery_timeoutSeconds = NULL;
916916
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
917-
if (timeoutSeconds)
917+
if (1) // Always send integer parameters to the API server
918918
{
919919
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
920920
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -1186,7 +1186,7 @@ AdmissionregistrationV1API_deleteMutatingWebhookConfiguration(apiClient_t *apiCl
11861186
char *keyQuery_gracePeriodSeconds = NULL;
11871187
char * valueQuery_gracePeriodSeconds = NULL;
11881188
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
1189-
if (gracePeriodSeconds)
1189+
if (1) // Always send integer parameters to the API server
11901190
{
11911191
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
11921192
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -1199,7 +1199,7 @@ AdmissionregistrationV1API_deleteMutatingWebhookConfiguration(apiClient_t *apiCl
11991199
char *keyQuery_orphanDependents = NULL;
12001200
char * valueQuery_orphanDependents = NULL;
12011201
keyValuePair_t *keyPairQuery_orphanDependents = 0;
1202-
if (orphanDependents)
1202+
if (1) // Always send boolean parameters to the API server
12031203
{
12041204
keyQuery_orphanDependents = strdup("orphanDependents");
12051205
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
@@ -1404,7 +1404,7 @@ AdmissionregistrationV1API_deleteValidatingWebhookConfiguration(apiClient_t *api
14041404
char *keyQuery_gracePeriodSeconds = NULL;
14051405
char * valueQuery_gracePeriodSeconds = NULL;
14061406
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
1407-
if (gracePeriodSeconds)
1407+
if (1) // Always send integer parameters to the API server
14081408
{
14091409
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
14101410
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -1417,7 +1417,7 @@ AdmissionregistrationV1API_deleteValidatingWebhookConfiguration(apiClient_t *api
14171417
char *keyQuery_orphanDependents = NULL;
14181418
char * valueQuery_orphanDependents = NULL;
14191419
keyValuePair_t *keyPairQuery_orphanDependents = 0;
1420-
if (orphanDependents)
1420+
if (1) // Always send boolean parameters to the API server
14211421
{
14221422
keyQuery_orphanDependents = strdup("orphanDependents");
14231423
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
@@ -1667,7 +1667,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
16671667
char *keyQuery_allowWatchBookmarks = NULL;
16681668
char * valueQuery_allowWatchBookmarks = NULL;
16691669
keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0;
1670-
if (allowWatchBookmarks)
1670+
if (1) // Always send boolean parameters to the API server
16711671
{
16721672
keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks");
16731673
valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH);
@@ -1716,7 +1716,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
17161716
char *keyQuery_limit = NULL;
17171717
char * valueQuery_limit = NULL;
17181718
keyValuePair_t *keyPairQuery_limit = 0;
1719-
if (limit)
1719+
if (1) // Always send integer parameters to the API server
17201720
{
17211721
keyQuery_limit = strdup("limit");
17221722
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
@@ -1753,7 +1753,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
17531753
char *keyQuery_timeoutSeconds = NULL;
17541754
char * valueQuery_timeoutSeconds = NULL;
17551755
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
1756-
if (timeoutSeconds)
1756+
if (1) // Always send integer parameters to the API server
17571757
{
17581758
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
17591759
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -1766,7 +1766,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
17661766
char *keyQuery_watch = NULL;
17671767
char * valueQuery_watch = NULL;
17681768
keyValuePair_t *keyPairQuery_watch = 0;
1769-
if (watch)
1769+
if (1) // Always send boolean parameters to the API server
17701770
{
17711771
keyQuery_watch = strdup("watch");
17721772
valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH);
@@ -1980,7 +1980,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
19801980
char *keyQuery_allowWatchBookmarks = NULL;
19811981
char * valueQuery_allowWatchBookmarks = NULL;
19821982
keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0;
1983-
if (allowWatchBookmarks)
1983+
if (1) // Always send boolean parameters to the API server
19841984
{
19851985
keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks");
19861986
valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH);
@@ -2029,7 +2029,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
20292029
char *keyQuery_limit = NULL;
20302030
char * valueQuery_limit = NULL;
20312031
keyValuePair_t *keyPairQuery_limit = 0;
2032-
if (limit)
2032+
if (1) // Always send integer parameters to the API server
20332033
{
20342034
keyQuery_limit = strdup("limit");
20352035
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
@@ -2066,7 +2066,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
20662066
char *keyQuery_timeoutSeconds = NULL;
20672067
char * valueQuery_timeoutSeconds = NULL;
20682068
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
2069-
if (timeoutSeconds)
2069+
if (1) // Always send integer parameters to the API server
20702070
{
20712071
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
20722072
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -2079,7 +2079,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
20792079
char *keyQuery_watch = NULL;
20802080
char * valueQuery_watch = NULL;
20812081
keyValuePair_t *keyPairQuery_watch = 0;
2082-
if (watch)
2082+
if (1) // Always send boolean parameters to the API server
20832083
{
20842084
keyQuery_watch = strdup("watch");
20852085
valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH);
@@ -2339,7 +2339,7 @@ AdmissionregistrationV1API_patchMutatingWebhookConfiguration(apiClient_t *apiCli
23392339
char *keyQuery_force = NULL;
23402340
char * valueQuery_force = NULL;
23412341
keyValuePair_t *keyPairQuery_force = 0;
2342-
if (force)
2342+
if (1) // Always send boolean parameters to the API server
23432343
{
23442344
keyQuery_force = strdup("force");
23452345
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
@@ -2560,7 +2560,7 @@ AdmissionregistrationV1API_patchValidatingWebhookConfiguration(apiClient_t *apiC
25602560
char *keyQuery_force = NULL;
25612561
char * valueQuery_force = NULL;
25622562
keyValuePair_t *keyPairQuery_force = 0;
2563-
if (force)
2563+
if (1) // Always send boolean parameters to the API server
25642564
{
25652565
keyQuery_force = strdup("force");
25662566
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);

kubernetes/api/ApiextensionsV1API.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
269269
char *keyQuery_gracePeriodSeconds = NULL;
270270
char * valueQuery_gracePeriodSeconds = NULL;
271271
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
272-
if (gracePeriodSeconds)
272+
if (1) // Always send integer parameters to the API server
273273
{
274274
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
275275
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -294,7 +294,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
294294
char *keyQuery_limit = NULL;
295295
char * valueQuery_limit = NULL;
296296
keyValuePair_t *keyPairQuery_limit = 0;
297-
if (limit)
297+
if (1) // Always send integer parameters to the API server
298298
{
299299
keyQuery_limit = strdup("limit");
300300
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
@@ -307,7 +307,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
307307
char *keyQuery_orphanDependents = NULL;
308308
char * valueQuery_orphanDependents = NULL;
309309
keyValuePair_t *keyPairQuery_orphanDependents = 0;
310-
if (orphanDependents)
310+
if (1) // Always send boolean parameters to the API server
311311
{
312312
keyQuery_orphanDependents = strdup("orphanDependents");
313313
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
@@ -356,7 +356,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
356356
char *keyQuery_timeoutSeconds = NULL;
357357
char * valueQuery_timeoutSeconds = NULL;
358358
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
359-
if (timeoutSeconds)
359+
if (1) // Always send integer parameters to the API server
360360
{
361361
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
362362
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -628,7 +628,7 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char *
628628
char *keyQuery_gracePeriodSeconds = NULL;
629629
char * valueQuery_gracePeriodSeconds = NULL;
630630
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
631-
if (gracePeriodSeconds)
631+
if (1) // Always send integer parameters to the API server
632632
{
633633
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
634634
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -641,7 +641,7 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char *
641641
char *keyQuery_orphanDependents = NULL;
642642
char * valueQuery_orphanDependents = NULL;
643643
keyValuePair_t *keyPairQuery_orphanDependents = 0;
644-
if (orphanDependents)
644+
if (1) // Always send boolean parameters to the API server
645645
{
646646
keyQuery_orphanDependents = strdup("orphanDependents");
647647
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
@@ -891,7 +891,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
891891
char *keyQuery_allowWatchBookmarks = NULL;
892892
char * valueQuery_allowWatchBookmarks = NULL;
893893
keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0;
894-
if (allowWatchBookmarks)
894+
if (1) // Always send boolean parameters to the API server
895895
{
896896
keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks");
897897
valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH);
@@ -940,7 +940,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
940940
char *keyQuery_limit = NULL;
941941
char * valueQuery_limit = NULL;
942942
keyValuePair_t *keyPairQuery_limit = 0;
943-
if (limit)
943+
if (1) // Always send integer parameters to the API server
944944
{
945945
keyQuery_limit = strdup("limit");
946946
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
@@ -977,7 +977,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
977977
char *keyQuery_timeoutSeconds = NULL;
978978
char * valueQuery_timeoutSeconds = NULL;
979979
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
980-
if (timeoutSeconds)
980+
if (1) // Always send integer parameters to the API server
981981
{
982982
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
983983
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
@@ -990,7 +990,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
990990
char *keyQuery_watch = NULL;
991991
char * valueQuery_watch = NULL;
992992
keyValuePair_t *keyPairQuery_watch = 0;
993-
if (watch)
993+
if (1) // Always send boolean parameters to the API server
994994
{
995995
keyQuery_watch = strdup("watch");
996996
valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH);
@@ -1250,7 +1250,7 @@ ApiextensionsV1API_patchCustomResourceDefinition(apiClient_t *apiClient, char *
12501250
char *keyQuery_force = NULL;
12511251
char * valueQuery_force = NULL;
12521252
keyValuePair_t *keyPairQuery_force = 0;
1253-
if (force)
1253+
if (1) // Always send boolean parameters to the API server
12541254
{
12551255
keyQuery_force = strdup("force");
12561256
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
@@ -1471,7 +1471,7 @@ ApiextensionsV1API_patchCustomResourceDefinitionStatus(apiClient_t *apiClient, c
14711471
char *keyQuery_force = NULL;
14721472
char * valueQuery_force = NULL;
14731473
keyValuePair_t *keyPairQuery_force = 0;
1474-
if (force)
1474+
if (1) // Always send boolean parameters to the API server
14751475
{
14761476
keyQuery_force = strdup("force");
14771477
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);

0 commit comments

Comments
 (0)