Commit Graph

377 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
18fe6683d5
Merge pull request #2252 from dcmcand/master
Add ability to use server_side_apply to  utils.create_from_yaml
2024-09-16 14:57:13 +01:00
Kubernetes Prow Robot
d8f35c7ef3
Merge pull request #2272 from kavishdahekar/kavishdahekar-patch-1
fix: missing method invocation in kube_config_test.py
2024-08-30 23:30:44 +01:00
yliao
9c663464d8 generated client change 2024-08-29 21:25:26 +00:00
yliao
35fb14eea8 generated API change 2024-08-29 21:25:25 +00:00
yliao
57c5182237 generated client change for custom_objects 2024-08-29 21:25:24 +00:00
Kavish Dahekar
dac8a5c7a5
Update kube_config_test.py
fix missing method invocation
2024-08-27 13:21:57 +02:00
Flynn
6a5e7e9eb4 Don't rely on durationpy for formatting; just do it manually.
This approach is less fragile, and also allows all three implementations (Rust, Go, and Python) to work in a similar way.

Signed-off-by: Flynn <emissary@flynn.kodachi.com>
2024-08-21 10:28:33 -04:00
Flynn
8e3d9c4d89 Formatting.
Signed-off-by: Flynn <emissary@flynn.kodachi.com>
2024-08-16 15:46:35 -04:00
Flynn
40aaae5e53 Doctests!
Signed-off-by: Flynn <emissary@flynn.kodachi.com>
2024-08-16 15:35:53 -04:00
Flynn
862f48aa92 Clean up range checking in format_duration.
Signed-off-by: Flynn <emissary@flynn.kodachi.com>
2024-08-16 15:35:39 -04:00
Flynn
9d620ad4cb Add utility functions to parse and format GEP-2257 Duration strings for Gateway API
Signed-off-by: Flynn <emissary@flynn.kodachi.com>
2024-08-09 23:35:23 -04:00
Chuck McAndrew
b40eaf279a Add ability to use server_side_apply to utils.create_from_yaml 2024-06-27 16:05:50 -07:00
yliao
109fe00035 generated client change 2024-05-21 22:28:03 +00:00
yliao
2aa427de83 generated API change 2024-05-21 22:28:02 +00:00
yliao
744f0ebb83 generated client change for custom_objects 2024-05-21 22:28:02 +00:00
Kubernetes Prow Robot
9f9bec2739
Merge pull request #2076 from bobh66/watch_named_object
Fix dynamic client watch of named resource
2024-04-23 15:25:23 -07:00
showjason
07c94fbee1 fix time format 2024-03-30 22:21:42 +08:00
showjason
1e472043ec replace utcnow with now, due to utcnow will be deprecated 2024-03-30 22:11:48 +08:00
Kubernetes Prow Robot
851dc2a0b1
Merge pull request #2194 from meln5674/feature/binary-wsclient
Enable binary support for WSClient
2024-02-28 21:00:27 -08:00
Andrew Melnick
488518d957 Enable binary support for WSClient
Currently, under python 3, the WSClient decodes all data via UTF-8. This
will break, e.g. capturing the stdout of tar or gzip.
This adds a new 'binary' kwarg to the WSClient class and websocket_call
function. If this is set to true, then the decoding will not happen, and
all channels will be interpreted as binary.
This does raise a slight complication, as the OpenAPI-generated client
will convert the output to a string, no matter what, which it ends up
doing by (effectively) calling repr(). This requires a bit of magic to
recover the orignial bytes, and is inefficient. However, this is only
the case when using the default _preload_content=True, setting this to
False and manually calling read_all or read_channel, this issue does not
arise.
2024-02-28 15:41:24 -07:00
Kubernetes Prow Robot
d36ec43f06
Merge pull request #1968 from FlorianJDF/custom_client_config_new_client
kube-config: add custom client configuration injection
2024-02-19 07:59:00 -08:00
Kubernetes Prow Robot
7712421cdc
Merge pull request #2187 from tomplus/fix/mergin-current-context
Fix merging current-context in kube-configs
2024-02-12 10:32:16 -08:00
Kubernetes Prow Robot
09bab99914
Merge pull request #2178 from bnavigator/patch-1
Replace deprecated assertEquals call
2024-02-12 09:40:40 -08:00
Kubernetes Prow Robot
4c9c058f0c
Merge pull request #2153 from jxdv/update-ioerror
remove deprecated IOError
2024-02-12 09:37:31 -08:00
Tomasz Prus
69cfcda963 Fix merging current-context in kube-configs 2024-01-31 23:48:15 +01:00
Ben Greiner
346e28acab
Replace deprecated assertEquals call 2024-01-13 22:25:26 +01:00
Kubernetes Prow Robot
1193741609
Merge pull request #2100 from davidopic/master
Fix UTF-8 failures in Watch
2023-12-21 00:20:41 +01:00
yliao
c7be3fc235 generated client change 2023-12-18 19:33:52 +00:00
yliao
ab097519b8 generated API change 2023-12-18 19:33:51 +00:00
yliao
e3ada8b8d9 generated client change for custom_objects 2023-12-18 19:33:51 +00:00
gopal
51944266f3 Return empty list when there is no matching resource instsnce items to return 2023-11-28 14:02:58 +05:30
jxdv
50f9dd45d8 remove deprecated IOError 2023-11-26 16:51:49 +01:00
Ananya Nayak
54ee9e13cf test: add more assertions 2023-09-28 04:49:22 +00:00
Yu Liao
f494b8de33 generated client change 2023-08-31 01:36:47 +00:00
Yu Liao
a0e401e364 generated API change 2023-08-31 01:36:47 +00:00
Yu Liao
8642188b60 generated client change for custom_objects 2023-08-31 01:36:46 +00:00
David E
934d026788
Handled UTF-8 edge cases in Watch 2023-08-07 12:20:31 -07:00
Kubernetes Prow Robot
76ec6f5ce5
Merge pull request #2095 from dbasunag/master
fix split call to handle apis of the format a/b/c
2023-07-31 11:00:38 -07:00
dbasunag
6875510e78 fix split call to handle apis of the format a/b/c 2023-07-31 09:44:38 -04:00
Tiago Silva
68fe8eea41
Adds support for custom Server Name Indication (SNI) 2023-06-27 14:26:50 +01:00
Bob Haddleton
cb2aa4ef80 Fix dynamic client watch of named resource
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
2023-06-16 10:46:05 -05:00
Yu Liao
42d6156b27 generated client change 2023-05-31 21:09:36 +00:00
Yu Liao
b490a11a7a generated API change 2023-05-31 21:09:35 +00:00
Yu Liao
ea66f65f4f generated client change for custom_objects 2023-05-31 21:09:35 +00:00
Kubernetes Prow Robot
9a2d5e4290
Merge pull request #2049 from juergenhoetzel/disable_equal_scalar_resolv
Prevent ConstructorError when parsing YAML containing '=' scalars
2023-05-24 12:42:50 -07:00
Peter Horsley
b5b39b378e Fix exception in ExecProvider when no console is attached. 2023-05-08 08:11:56 +10:00
Jürgen Hötzel
1729f35c7e Prevent ConstructorError when parsing YAML containing '=' scalars
pyyaml assignes '=' to tag:yaml.org,2002:value even though there's
no constructor for it. Removing the implicit resolver for '=' fixes
the issue.
2023-04-30 18:07:39 +02:00
Kubernetes Prow Robot
2f546b9dcb
Merge pull request #1966 from blackstorm/lee/fix-load-config
Fix load_kube_config unexpected `kube_config_path` keyword argument
2023-04-10 12:57:15 -07:00
Tomasz Prus
cdfd750727 Fix snapshot version to be compliant with PEP440. 2023-02-26 12:01:40 +01:00
Yu Liao
854672a93a
Merge pull request #1998 from kianmeng/fix-typos
Fix typos
2023-02-24 20:36:00 -08:00