Commit Graph

43 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
de280fbf1f
Merge pull request #2340 from tomasaschan/fix-exec-provider
Fix exec provider
2025-02-14 08:40:22 -08:00
Tomas Aschan
a588f51328
Address review feedback 2025-02-14 15:43:39 +01:00
Tomas Aschan
f64be15641
fix: Extract value from ConfigNode before storing it 2025-01-29 15:00:41 +01:00
Tomas Aschan
df1b0c156f
Tweak test to fail like the production code does 2025-01-29 14:57:38 +01:00
Akhil Lawrence
e852ac71f9 mark shell=False in ExecProvider for linux/darwin platforms 2025-01-29 07:51:33 +05:30
Brendan Burns
8c60fe94e0 Support providing cluster info to the exec provider
Some checks failed
Kubernetes Python Client - Validation / build (3.10) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.11) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.7) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.8) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.9, coverage) (push) Has been cancelled
2024-10-30 19:50:34 +00:00
Pranoy Dey
2dfa782fb9
Added Shell=True for windows flow. Fixes file not found error while running in Windows 2024-10-05 17:31:29 +05:30
Kavish Dahekar
dac8a5c7a5
Update kube_config_test.py
fix missing method invocation
2024-08-27 13:21:57 +02: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
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
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
jxdv
50f9dd45d8 remove deprecated IOError 2023-11-26 16:51:49 +01:00
Tiago Silva
68fe8eea41
Adds support for custom Server Name Indication (SNI) 2023-06-27 14:26:50 +01:00
Peter Horsley
b5b39b378e Fix exception in ExecProvider when no console is attached. 2023-05-08 08:11:56 +10: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
Kian-Meng Ang
2d299b7a57 Fix typos
Found via `codespell -S CHANGELOG.md,*.json,*.unprocessed -L querys,couldn`
2023-01-27 11:10:29 +08:00
Kubernetes Prow Robot
2a27133f7e
Merge pull request #1949 from arrikto/feature-in-cluster-token-refresh
Improve the refreshing of tokens from inside the cluster
2023-01-17 09:06:33 -08:00
6764e8d7dd keep config_file value 2022-12-21 06:58:51 +00:00
ab478a309f remove config_file arg check 2022-12-12 06:59:59 +00:00
6da7447d3a separte weak relate condtions 2022-12-12 06:54:17 +00:00
b648cb918e fix load_config unexpected keyword argument 2022-12-12 06:41:57 +00:00
Florian Teissedre
0bb2314578 kube-config: add custom client configuration injection 2022-12-11 18:31:28 +01:00
Alexis Zamanis
392a8c1d07 Improve the refreshing of tokens from inside the cluster
Requests from inside the cluster misuse the API to refresh tokens.

Signed-off-by: Alexis Zamanis <alexiszam@arrikto.com>
2022-11-10 11:48:31 +02:00
Alexis Zamanis
a07531b932 Fix the refreshing of tokens from outside the cluster
Requests from outside the cluster may have stale tokens and fail with
status code `401`.

Signed-off-by: Alexis Zamanis <alexiszam@arrikto.com>
2022-11-08 17:13:24 +02:00
Kubernetes Prow Robot
e36a91be6b
Merge pull request #1912 from ramvikrams/%1
decoding a not safe url in load_kube_config
2022-10-13 15:21:01 -07:00
Kubernetes Prow Robot
a4c43ede69
Merge pull request #1922 from yliaog/master
mock.call_args.kwargs was added after python 3.7, switched to the old…
2022-10-13 10:59:01 -07:00
Yu Liao
f8f6d11058 mock.call_args.kwargs was added after python 3.7, switched to the old way to allow 3.7 and below pass 2022-10-13 17:28:54 +00:00
Vibhor Gupta
f740c634ec add testcases 2022-10-12 00:12:25 +05:30
Vibhor Gupta
94dbbf9118 Add support for using oidc CA certificate file while refreshing token 2022-10-11 19:01:26 +05:30
ram vikram singh
9152c48f0a
decoding a not safe url in load_kube_config
for issue #1911 fixing load_kube_config for decoding unsafe url token
2022-10-11 00:07:09 +05:30
Kubernetes Prow Robot
e3c0042e0f
Merge pull request #1804 from harshitasao/issue-1790
Instead of mock, used unittest.mock
2022-08-15 15:05:55 -07:00
xiaoaxiao
e5ca5aeeea
fix issue #1782 Resolve load_kube_config TMP file issue 2022-08-03 23:06:50 +08:00
Brendan Burns
c9ad88301e Add interactive configuration to exec provider. 2022-06-17 15:11:26 +00:00
harshitasao
f1dfdbba45 used unittest.mock instead of mock 2022-05-23 14:35:09 +05:30
Julien Eid
35bcb7f20c
Update kubernetes/base/config/exec_provider.py
Co-authored-by: Patrick J. McNerthney <pat@mcnerthney.com>
2022-05-20 06:31:15 -04:00
Julien Eid
fe2546147c Set cwd to None if empty string for ExecProvider 2022-04-18 11:30:45 -04:00
Yu Liao
9d176918a9 removed submodule 2022-01-07 16:17:39 -08:00
mbohlool
dd30fe6a70 Remove base folder to prepare for submodule model 2017-05-19 00:21:35 -07:00
mbohlool
1ebceb6460 Move manual code to a base folder to prepare for repo splitting. 2017-05-09 16:26:27 -07:00