Commit Graph

38 Commits

Author SHA1 Message Date
Tom McLaughlin
0911424e9a Almost there with Stackage lts-21.0 2023-06-26 19:06:10 -07:00
Jon Schoning
c04d857e88 re-gen kubernetes with updated generator commit 2022-05-29 14:09:38 -07:00
Tom McLaughlin
89dec1775d Support aeson 2 2022-05-20 19:13:04 -07:00
Tom McLaughlin
8215bcfbdd Be able to build on GHC 9 2022-05-20 17:38:47 -07:00
Jon Schoning
541fb76466 fix Incorrectly generated query strings (that rely on + not being urlencoded)
In the Kubernetes API client, we should be able to generate queries like
    ?labelSelector=environment+in+%28production%2Cqa%29%2Ctier+in+%28frontend%29
    (from https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering).
    When the generated URIs URL-encode the plus signs, the API server rejects them.

    With this change, (newConfig :: IO KubernetesClientConfig) now sets
    the default configQueryExtraUnreserved setting to "+". Requests
    generated with this config object will avoid URI encoding "+" all
    querystring params.
2021-09-20 12:23:34 -05:00
Jon Schoning
7522b3fe86 udpate openapi-generator commit; fixes for ghc-9 2021-09-14 18:40:45 -05:00
Jon Schoning
93235ad70c regen for kubernetes release-1.20 2021-02-14 19:30:50 -06:00
Jon Schoning
8d64efcb7a re-include mimetypes for json patch 2021-01-06 15:34:06 -06:00
Jon Schoning
bdc7da25fc append optional parameters instead of replace 2020-10-27 18:42:18 -05:00
Kubernetes Prow Robot
9774afc5f0 Merge pull request #75 from jonschoning/update-openapigenerator-and-regen
update openapigenerator and regen
2020-09-01 13:09:50 -07:00
Kubernetes Prow Robot
1820c33f07 Merge pull request #61 from akshaymankar/integration-tests
Add Integration tests
2020-09-01 07:53:50 -07:00
Jon Schoning
425798b931 update versions 2020-08-23 23:01:19 -05:00
Jon Schoning
6ee7316b3f regen 2020-08-23 22:59:07 -05:00
Akshay Mankar
a0ff4833bb Bump both pacakge versions to 0.2.0.0
Since there are breaking changes since the last release
2020-06-30 08:20:08 +02:00
Akshay Mankar
a7a2688ad2 Use 14.7 resolver like rest of the repo 2019-10-22 17:29:33 +01:00
Jon Schoning
fbb260a796 update to Kubernetes 1.16 2019-10-07 10:36:38 -05:00
Fernando Rincon
d1919b64cc Revert "Generated code using date format"
This reverts commit 3aaceece57.
2019-10-01 22:29:38 +08:00
Fernando Rincon
a224f7070d Revert "Fixing problem with a trailing comma generated wrongly by the openapi generator"
This reverts commit f179218e85.
2019-10-01 22:29:06 +08:00
Fernando Rincon
f179218e85 Fixing problem with a trailing comma generated wrongly by the openapi generator 2019-10-01 21:34:55 +08:00
Fernando Rincon
3aaceece57 Generated code using date format 2019-10-01 21:13:28 +08:00
Fernando Rincon
3431a70183 Fix datetime problem with kubernetes. Pass microseconds instead of milliseconds 2019-09-29 18:15:36 +08:00
Akshay Mankar
5d1508e7c0 Add me to the maintainer field of the packages 2019-07-12 07:24:44 +01:00
Akshay Mankar
24171f73b8 Update resolver to be in sync with core pkg
This will fix generated upper bound for the exception package
2019-07-10 16:57:39 +01:00
Tom McLaughlin
e0a4857242 Fix FromJSON/ToJSON instances of CustomTypes (IntOrString and Quantity) 2019-06-01 06:32:30 -07:00
Irvi Aini
544b5267f2 Bump version to 1.14 2019-05-15 17:23:25 +07:00
Jon Schoning
7a0b709549 Add custom types IntOrString and Quantity
- regen with import-mappings
- add CustomTypes and CustomInstances
- update openapi-generator commit

Instead of A.Value, IntOrString becomes a sum type with constructors IntOrStringI and IntOrStringS
Instead of Text, Quantity becomes a newtype over Text. Currently no custom construction or serialization is implemeneted (i.e. the Text should be the wire format)
  See CustomTypes.hs for details on the Quantity type.
2019-03-28 14:39:40 -05:00
Shimin Guo
9bc44160fd adding previously untracked files 2019-03-13 23:21:02 -07:00
Shimin Guo
ec97160bc8 Generate from v1.13.4 2019-03-13 07:46:12 -07:00
Shimin Guo
6d0ee58ade rerun codegen 2019-03-11 22:45:15 -07:00
Shimin Guo
e9c530be5b fixes to package.yaml 2019-03-11 11:34:27 -07:00
Shimin Guo
299d137d63 merging hand-written code into one package 2019-02-27 16:09:09 -08:00
Shimin Guo
1f4868fbe1 change package name for generated code to kubernetes-openapi-client-gen. adapt existing code to the change 2019-02-26 10:08:58 -08:00
Shimin Guo
9ac01d2c31 new package name and module base 2019-01-30 13:04:51 -08:00
Shimin Guo
845e9e3973 add kubernetes/README.md to .swagger-codegen-ignore 2018-01-29 06:48:03 +00:00
Shimin Guo
96652da057 move Kubernetes.ClientHelper to its own package to minimize changes to the generated code 2018-01-29 06:27:29 +00:00
Shimin Guo
c0923b91bf add Kubernetes.ClientHelper module and add usage in README 2018-01-24 00:22:46 +00:00
Shimin Guo
fd9374f4f1 Regenerate the haskell client
Changes:
- Correct handling of */* mime types
- The API module split into submodules
- Allow non-unique operation IDs. Previously when there was one monolithic API module, operations with the same IDs under different prefixes (e.g. getAPIGroup) were appended numbers to disambiguate them. Now they live in different modules, it's OK for them to have the same IDs.
2018-01-11 08:19:40 +00:00
mbohlool
3cb442629a Add first version of generated client 2017-12-21 14:06:07 -08:00