Commit Graph

1899 Commits

Author SHA1 Message Date
Haowei Cai
d8e7686d28 add a release script 2021-09-13 11:48:10 -07:00
Eric Menendez
70b78cd848 Refresh exec-based API credentials when they expire
This is a fix for kubernetes-client/python#741.

As described in kubernetes-client/python#741, some of the authentication schemes supported by Kubernetes require updating the client's credentials from time to time. The Kubernetes Python client currently does not support this, except for when using the `gcp` auth scheme. This is because the OpenAPI-generated client code does not generally expect credentials to change after the client is configured.

However, in OpenAPITools/openapi-generator#3594, the OpenAPI generator added a (undocumented) hook on the `Configuration` object which provides a method for the client credentials to be refreshed as needed. Now that this hook exists, the `load_kube_config()` function, used by the Kubernetes API to set up the `Configuration` object from the client's local k8s config, just needs to be updated to take advantage of this hook.

This patch does this for `exec`-based authentication, which should resolve kubernetes-client/python#741.

Also, as noted above, `load_kube_config()` already has a special-case monkeypatch to refresh GCP tokens. I presume this functionality was added before the OpenAPI generator added support for the refresh hook. This patch also refactors the GCP token refreshing code to use the new hook instead of the monkeypatch.

Tests are also updated.
2021-09-03 15:53:25 -06:00
piglei
66a45cd081 Make duck-typing in serialize_body method more restrictive 2021-08-23 14:48:24 +08:00
Kubernetes Prow Robot
6b01c95e16
Merge pull request #1528 from roycaihw/v18ga-readme
Update changelog and readme in the master branch for v18 GA release
2021-08-16 16:34:00 -07:00
Haowei Cai
0e9baee7ca update changelog and readme for v18 GA release 2021-08-16 15:16:09 -07:00
Kubernetes Prow Robot
dd15ac6263
Merge pull request #244 from hedrox/bug-rc-delete
Fix replication controller pods delete in tests
2021-08-15 14:41:46 -07:00
Kubernetes Prow Robot
76897e9b1d
Merge pull request #1520 from scottilee/release-docs
Update release docs with more info
2021-08-12 18:44:58 -07:00
Scott Lee
88c9e94145 Update release docs with more info
Fix typo and address comments
2021-08-06 16:04:00 -06:00
Kubernetes Prow Robot
2f9643eac7
Merge pull request #1521 from scottilee/python2support
Require python3
2021-08-05 17:50:53 -07:00
Scott Lee
0a8c1fdee1 Require python3 2021-08-05 18:24:36 -06:00
Kubernetes Prow Robot
837a6ecb03
Merge pull request #1518 from scottilee/release-18-base
Update release-18.0 submodule
2021-08-05 14:33:41 -07:00
Scott Lee
4dec14919a Update release-18.0 submodule 2021-08-05 15:09:45 -06:00
Kubernetes Prow Robot
6b0104ffb9
Merge pull request #247 from gravesm/dry-run
Add support for dryRun parameter
2021-08-05 10:21:22 -07:00
Kubernetes Prow Robot
a0d4a31edc
Merge pull request #243 from hedinasr/master
Add watch_stop to DynamicClient
2021-08-04 11:11:17 -07:00
Kubernetes Prow Robot
9bf29f73d4
Merge pull request #248 from fabianvf/add-fabian-owners
Add fabianvf to reviewers
2021-07-29 14:21:19 -07:00
Fabian von Feilitzsch
b0b0ddeedc Add fabianvf to reviewers 2021-07-29 16:56:44 -04:00
Hedi Nasr
59ba58b494
Add the ability to stop the watcher gracefully. 2021-07-28 21:18:12 +02:00
Mike Graves
cbb71698d7 Add support for dryRun parameter 2021-07-26 13:23:57 -04:00
Andrei Marin
6f9e3327a8
Fix replication controller pods delete in tests 2021-07-20 21:33:30 +03:00
Kubernetes Prow Robot
05e8f5798a
Merge pull request #1403 from mecampbellsoup/add-yaml-objects-param-to-create-from-yaml-util
Allow optional list of YAML objects as param to create_from_yaml util
2021-07-19 12:50:52 -07:00
Matt Campbell
13814c0f7e Allow optional list of YAML objects as param to create_from_yaml util 2021-07-19 14:23:14 -04:00
Kubernetes Prow Robot
6c4d917026
Merge pull request #1506 from dingyiyi0226/master
Fix empty yaml document error
2021-07-17 09:40:51 -07:00
Huan-Ting,Chen
65a0ffc844 Fix empty yaml document error 2021-07-17 16:41:16 +08:00
Haowei Cai (Roy)
05434120d6
Merge pull request #1467 from Priyankasaggu11929/documet-server-and-client-side-timeout
add documentation for the server & client side timeout
2021-07-15 14:20:11 -07:00
Kubernetes Prow Robot
62366eecf3
Merge pull request #246 from david0/fix-load-config
Fix load_config: expand ~
2021-07-12 10:28:48 -07:00
David Otto
e2ba3fb9fc do expanduser in load_config 2021-07-12 11:21:13 +02:00
David Otto
dca0ca6df2 Fix load_config: expand ~ 2021-07-07 12:54:38 +02:00
Kubernetes Prow Robot
6a5e4ad2bb
Merge pull request #1504 from kubernetes-client/dependabot/github_actions/helm/kind-action-1.2.0
Bump helm/kind-action from 1.1.0 to 1.2.0
2021-07-01 20:44:12 -07:00
dependabot[bot]
e0f093d6ba
Bump helm/kind-action from 1.1.0 to 1.2.0
Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: helm/kind-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 03:03:29 +00:00
Kubernetes Prow Robot
c2bff84770
Merge pull request #1498 from zapman449/zapman449/update-hotfix-script-1497
update the hotfix script for tolerating null sources on projected volumes
2021-06-23 15:36:11 -07:00
Jason Price
29729af6a0 address PR comment around removing hotfix when v20 clients are released 2021-06-23 18:10:01 -04:00
Kubernetes Prow Robot
0d4f822f4f
Merge pull request #221 from MoShitrit/m3e-issue-1005
Add load_config method which allows a more generic way to load the kubeconfig
2021-06-22 12:18:10 -07:00
Kubernetes Prow Robot
a1fbb7083e
Merge pull request #1499 from roycaihw/update-master-readme
Cherrypick README and CHANGLOG of v18.20.0b1 to master branch
2021-06-21 15:16:50 -07:00
Haowei Cai
4685a3651d update readme and changelog 2021-06-21 14:36:53 -07:00
Jason Price
9a2fbde41b update the hotfix script for tolerating null sources on projected volumes 2021-06-21 13:57:24 -04:00
Kubernetes Prow Robot
f3dbc8cbf1
Merge pull request #1497 from zapman449/zapman449/1494-tolerate-null-sources-projected-volumes
tolerate null sources on projected volumes
2021-06-21 10:50:51 -07:00
Jason Price
ee0e332776 tolerate null sources on projected volumes
See issue 1494
Removes the false requirement that sources be a populated list
2021-06-21 13:21:20 -04:00
Kubernetes Prow Robot
d8f283e748
Merge pull request #1478 from palnabarun/update-master-snapshot-18.0
Update client snapshot on master to release-1.18 generated client
2021-06-20 18:40:51 -07:00
Moshe Shitrit
6d1c8d3713 Apply suggestion 2021-06-19 17:42:37 +03:00
Kubernetes Prow Robot
5ef35631c6
Merge pull request #1306 from palnabarun/update-pyyaml
Update pyyaml from 3.1.2 to 5.4.1
2021-06-09 09:30:52 -07:00
Nabarun Pal
4fd43bc909
Apply hotfixes
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:07:31 +05:30
Nabarun Pal
c55930bb50
Generate updated client 18.0.0-snapshot
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:07:31 +05:30
Nabarun Pal
1c81d2eac2
Update constants to reflect 18.0.0-snapshot
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:07:31 +05:30
Nabarun Pal
cd1507671c
Update pyyaml from 3.12 to 5.4.1
5.3.1 fixed partially vulnerabilities disclosed in CVE-2020-1747.
A complete fix was debated at https://github.com/yaml/pyyaml/issues/420
and eventually got patched in 5.4.1

Changeset: https://github.com/yaml/pyyaml/compare/3.12...5.4.1

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:03:45 +05:30
Kubernetes Prow Robot
f0bb35b01e
Merge pull request #1490 from kubernetes-client/dependabot/github_actions/actions/setup-python-2.2.2
Bump actions/setup-python from 2.1.3 to 2.2.2
2021-06-07 21:15:11 -07:00
dependabot[bot]
c5e7907d0b
Bump actions/setup-python from 2.1.3 to 2.2.2
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2.1.3 to 2.2.2.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2.1.3...v2.2.2)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-08 03:02:55 +00:00
Kubernetes Prow Robot
3c54eba79f
Merge pull request #1286 from palnabarun/gh-actions-enable-e2e
Move several workflows to GitHub Actions
2021-06-07 08:40:40 -07:00
Nabarun Pal
b7a612bc73
Deactivate e2e tests on Travis
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-06 12:05:30 +05:30
Nabarun Pal
5718898a83
Add GitHub Action workflow for running e2e tests
The e2e here uses kind. The eventual goal would be to remove
the use of minikube completely and use kind exclusively in
conformance to general Kubernetes upstream usage.

- Add kind cluster configs for all supported Kubernetes versions
- Add GH Action workflows for end to end testing

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-06 12:05:00 +05:30
Kubernetes Prow Robot
9fb8f3532c
Merge pull request #1480 from palnabarun/drop-python-3.5
Drop python 3.5
2021-06-05 23:22:38 -07:00