Commit Graph

58 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d30f1e6fd4
Merge pull request #184 from fooka03/bugfix/179
Fix apiserver_id 'get' method
2020-02-21 15:38:47 -08:00
Nigel Foucha
faf2e0c2db
Fix apiserver_id 'get' method 2020-02-20 19:20:44 -05:00
Fabrice Rabaute
64662bb738
config: Fix persist_config flag and function calls
The persist_config flag was setting the kwargs['config_persister'] to
the result of the function kcfg.save_changes and not the function
kcfg.save_changes itself.

Once this is fixed, the second problem was that the function was called
with an argument when it's defined without argument so an exception was
raised.
2020-01-14 14:23:16 -08:00
Fabrice Rabaute
39113de2aa
Add option to refresh gcp token when config is cmd-path 2020-01-08 11:28:23 -08:00
Nigel Foucha
0b208334ef
Dynamically load apiserver id from kube config 2019-10-09 11:37:40 -04:00
Kubernetes Prow Robot
9f73cc68c1
Merge pull request #163 from goddenrich/kube-configs-with-no-contexts-clusters-users
Merging configs with missing fields
2019-09-24 14:55:57 -07:00
Kubernetes Prow Robot
c700068ed6
Merge pull request #161 from ganchurin/issue-954
Support false values in configuration file
2019-09-24 14:49:58 -07:00
Richard Godden
7ce0198af2 default empty dict 2019-09-23 17:57:50 +01:00
Richard Godden
4ea69211e3 added test that should fail 2019-09-23 17:43:20 +01:00
Evgeniy Ganchurin
6dec044758 Issue-954 - Support false values in configuration file 2019-09-21 03:04:17 +03:00
Quentin Lemaire
a29bf292cc Add checks for None config file 2019-09-19 09:34:21 +02:00
Oz N Tiram
c941d74b37 Remove all shebangs from Python modules and checker
As discussed, Python modules which aren't intended to be invoked
as scripts should not include a shebang line.

Update CONTRIBUTING.md and the checker script.
This script now includes a list SKIP_FILES for files that
should not be checked for boilerplate template.
The tests will now fail if a Python module has a shebang line.
Scripts which should have a shebang line and exists in the directory
`hack` can be ignored by adding them to the SKIP_FILES list.
2019-08-27 22:18:52 +02:00
Richard Godden
ca007f3672 parse microseconds 2019-08-01 21:49:32 +01:00
Roger Hoem-Martinsen
6edea7b245 shorten down long line 2019-07-03 09:29:31 +02:00
Roger Hoem-Martinsen
26e16d0c70 Add azure config tests 2019-07-03 09:14:38 +02:00
Roger Hoem-Martinsen
30bc425271 fix bug and add method azure is expired 2019-07-03 09:14:03 +02:00
Haowei Cai (Roy)
487c9182c8
Merge pull request #79 from bpicolo/fix_base64_padding_for_kconfig
Fix base64 padding for kube config
2019-06-19 15:46:02 -07:00
Kubernetes Prow Robot
1d5231cee6
Merge pull request #110 from axelsteingrimsson/add_email_scope_to_gcp_credentials_refresh
Add email scope to GCP provided credential refresh
2019-04-08 13:26:27 -07:00
Ben Picolo
72a02cca50 Merge remote-tracking branch 'upstream/master' into fix_base64_padding_for_kconfig 2019-03-30 09:35:41 -04:00
Ben Picolo
b3ddbd903a Add tests for updated pieces 2019-03-30 09:23:03 -04:00
Kubernetes Prow Robot
5c03b3b237
Merge pull request #94 from tomplus/feat/merge-kubeconfigs
feat: merging kubeconfig files
2019-03-18 10:22:31 -07:00
Tomasz Prus
328b2d1245 feat: merging kubeconfig files 2019-03-15 23:42:43 +01:00
Ben Picolo
4750aa9d36 Add additional checks + test case fixes 2019-02-18 15:24:38 -05:00
micw523
0229f0adb2
Restore one-line link 2019-02-11 17:11:37 -06:00
Neha Yadav
0fc0d404ac Update pycodestyle 2019-02-08 02:46:07 +05:30
Kubernetes Prow Robot
8497dfb537
Merge pull request #107 from iamneha/verify-scripts
Verify-boilerplate script
2019-01-22 18:49:26 -08:00
Kubernetes Prow Robot
260f855a0b
Merge pull request #108 from iamneha/make-adal-optional
Make dependancy adal optional
2019-01-22 18:12:14 -08:00
Xavier Vello
13ff5184ac linting 2019-01-08 10:50:01 +01:00
Xavier Vello
ebb49d02ed Use safe_load and safe_dump for all yaml calls 2019-01-07 18:19:57 +01:00
axelsteingrimsson
1637d56364 Add email scope to GCP provided credential refresh 2018-12-12 13:41:58 +01:00
Neha Yadav
375befb15c Make dependancy adal optional 2018-12-11 23:23:17 +05:30
Neha Yadav
d56fdbc0cc Verify Boilerplate fix 2018-12-05 22:22:59 +05:30
k8s-ci-robot
879ab0124f
Merge pull request #45 from bran-wang/master
Fix trailing slash on kube/config failure  #388
2018-11-12 10:21:11 -08:00
Trevor Edwards
8f3a69ea10 Refresh GCP tokens on retrieval by overriding client config method. 2018-11-02 13:40:16 -07:00
k8s-ci-robot
8d7b6f7dc3
Merge pull request #91 from fillbit/handle-null-optional-values
ExecProvider errors when parsing null values
2018-10-12 09:31:43 -07:00
Phil Hoffman
3682e9b052 *Update ExecProvider to use safe_get()
*Update unit tests to use ConfigNode() instead of dict()
2018-10-10 21:31:31 -04:00
Luiz Eduardo
260d257939 Fix Issue-60: Replace encodestring and decodestring for standard_b64encode and standard_b64decode. 2018-10-10 09:08:48 +02:00
Tomasz Prus
9d78cd794c fix: read config data with bytes (python3) 2018-09-18 22:12:28 +02:00
Dov Reshef
becae56634 Add partial support for out-of-tree client authentication providers (token only, no caching) 2018-09-06 12:28:50 +03:00
Ben Picolo
529a72a2bf Fix base64 padding for kube config 2018-07-30 15:26:42 -04:00
Brendan Burns
96767a3b82 Add support for refreshing Azure tokens. 2018-07-23 14:22:02 -07:00
Brendan Burns
1be91e32bc Refactor auth-provider code paths a little. Add Azure support. 2018-07-17 22:02:17 -07:00
mvle
980f9b1042 remove required idp-certificate-authority-data in kubeconfig for oidc toke refresh, kubernetes-client/python#493
fix pep8 style
add unit test
2018-05-25 13:14:56 +00:00
Zac Pustejovsky
3932d290f5 fixing flipped sign in expiry time padding 2018-04-05 10:05:42 -04:00
Luis Toledo
5731554ed3 Merge remote-tracking branch 'upstream/master' into add-oidc-auth-support 2018-03-20 13:54:21 -03:00
Luis Toledo
111896107f Add support to OIDC auth
Fix for the `TypeError: Incorrect padding` error
Adding test with "mocked" variables

Persist the new token (refresh token) and add a not-ssl-verification for the refresh token call (i didn't find a way to pass the certificate to OAuth2Session

fixing the refresh-token problem (ssl certificate) and saving returning the new refresh-token

Fix test

fixing  coding style errors

Fixing test update-pep8

Fix test_oidc_with_refresh error
2018-03-19 19:13:51 -03:00
Haowei Cai
1c6be33604 get_with_name raises exception on name duplication in kubeconfig 2018-02-21 18:00:50 -08:00
bran-wang
bc51a01453 Fix trailing slash on kube/config failure #388 2018-02-12 13:05:06 +08:00
Jeremy Dartigalongue
b7b6e65285 Fix issue when refreshing service account token 2018-01-01 16:42:54 +00:00
mbohlool
b7a9f4a07e Change utility functions to new set_default Configuration model, preparing to use swagger-codegen HEAD 2017-10-09 16:44:49 -07:00