Commit Graph

13 Commits

Author SHA1 Message Date
Ahmad Zolfaghari 55821cad07 Fix kubectl explain bug when additionalProperties in schema defines as boolean. (#124506)
* Fix kubectl explain bug when additionalProperties in schema defines as:
`additionalProperties: true` to ignore iterating.

* trigger error on kubectl explain with integration test on crd with non bool additionalfields

* add changes to fix the problem

* replace sleep with loop and retry for kubectl explain integration test

* replaced testdata file with inline create

Kubernetes-commit: 834658cb26c1cfbb2b41ac2f04711563ee534682
2024-05-21 13:29:06 +00:00
ah8ad3 2ee8f95181 add some comments, redesign style of enums in simple and long view, fix tests to these new changes
Kubernetes-commit: c82c80099d8217b2a3431beeba7c83c52314af37
2024-02-01 14:46:05 +03:30
ahmad.zo c4d840c46e change the extractEnum function to add limit, intent and add tests for new behaviours
Kubernetes-commit: 9d4997ea69eb1d33572f292effe1969376df79f4
2024-01-31 13:54:53 +03:30
ahmad.zo 16b821ae90 fix gofmt error
Kubernetes-commit: 0283498ab408294fabd2ddf3c919f81b954ba425
2024-01-30 11:23:41 +03:30
ahmad.zo 9d1817215f change style of enums
Kubernetes-commit: 0c7281624ea5b489ef8e7354be7b968a4f5aef5d
2024-01-30 10:01:12 +03:30
ah8ad3 f17e427a18 fixes kubectl explain to shows enum for field types if they were defined
Kubernetes-commit: c222db1429ea3699464edec5ce7a0b0a7fa4b9fb
2024-01-29 19:51:35 +03:30
ah8ad3 60b309860d fixes kubectl explain to shows enum for field types if they were defined
Kubernetes-commit: 2216361c59e9e4863fb83b903a6fc14893c16e67
2024-01-29 19:27:27 +03:30
Filip Křepinský 138a1cc87a kubectl explain should work for both cluster and namespace resources and without a GET method
Kubernetes-commit: 7f4c187ab26fc8b96a091068ee9c84fa447b9291
2023-06-26 18:39:28 +02:00
Alexander Zielenski 25f108da25 throw missing field in std err
Kubernetes-commit: 0c0a91d4d97547aa5356e5dc326361d1a375d494
2023-03-14 12:34:04 -07:00
Alexander Zielenski f4936cb9cc log name of mising field, not path
Kubernetes-commit: 180c312f31f5de372eb27b5a120d5a6ce94bc07c
2023-03-14 12:20:11 -07:00
Alexander Zielenski ef349ea77d use referred type's type when it is not an object
i think we should also do this when it has no GVK? objects with no GVK cant be explained

Kubernetes-commit: 636c259474a5e7c5743d3084cca7b50f658d982c
2023-03-14 11:16:30 -07:00
Alexander Zielenski 175f88290e use title case for "Object" type
for backwards compatibility

Kubernetes-commit: 61d408832acac1c703922007d5e590cb86f5c801
2023-03-13 17:34:09 -07:00
Alexander Zielenski ee7b47da7d add plaintext template
Kubernetes-commit: e394364cbd1d5ace0f9cfcf10fa2bc458076d1a4
2022-11-02 20:35:18 -07:00