Commit Graph

16 Commits

Author SHA1 Message Date
Dr. Stefan Schimanski
7e52d34852
code-generator/client-gen: add example with core group
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-06-27 15:16:39 +02:00
Tim Hockin
dd80194d96
Re-run codegen with new kube-openapi 2023-11-27 12:06:20 -08:00
Tim Hockin
44060fb1f3
Fix "list_type_missing" API violations in meta/v1
This assumes that any such field is atomic, except:
  * OwnerReferences: because it has a `+patchStrategy=merge`, but it
    probably needs a `+listMapKey=...` ?
  * Finalizers: because it hs a `+patchStrategy=merge`, but is a
    primitive type (string).
  * []byte fields, which should not be failing this anyway (fixed
    subsequently).

An alternative approach could be just to turn off the API warnings for
these fields, but it felt more correct to declare the semantics.
2023-11-27 12:05:52 -08:00
Jordan Liggitt
018475269b
Update generated files 2023-02-27 14:16:02 -05:00
Daniel Smith
331525670b Remove ClusterName 2022-05-05 20:12:50 +00:00
Daniel Smith
a3d0dbbf60 change field name 2022-03-23 15:26:37 +00:00
Joe Betz
293e07a836 Add Apply functions to client-gen 2021-03-06 20:49:06 -05:00
Tim Hockin
876c9f0d8c Rename _examples to examples
The alternative to this would be to special-case code-generator.  Since
it legit wants codegen, it seems wrong to make it be _examples (which tools
should ignore).

Make examples an "internal module" so the main go.mod for
k8s.io/code-generator does not get too polluted.
2021-01-25 10:20:46 -08:00
Jordan Liggitt
d879965808 Clean up list items listType 2020-03-31 23:08:08 -04:00
Nikhita Raghunath
09f09a1e10 Update codegen violation rules 2019-09-23 19:31:19 +05:30
Antoine Pelisse
cf06ad1e47 Regenerate all 2019-08-27 14:52:36 -07:00
Kubernetes Prow Robot
3dbedefb80
Merge pull request #80773 from jennybuckley/fix-rawextension
Fix raw extension openapi definition
2019-08-22 17:33:20 -07:00
jennybuckley
ef30bd602f Update generated 2019-08-01 15:49:54 -07:00
jennybuckley
1475b59c83 Update generated 2019-07-31 16:06:42 -07:00
Dr. Stefan Schimanski
13b4dc1bc4 openapi: add list_type_missing violations after bump
Due to https://github.com/kubernetes/kube-openapi/pull/158.
2019-07-14 10:33:52 +02:00
Dr. Stefan Schimanski
e920d9bc14 Makefile.generated_files: build code-generator+sample-apiserver OpenAPI schemas 2019-07-12 20:52:21 +02:00