Commit Graph

1686 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
cbc2a2d212
Merge pull request #1363 from Invictus17/master
Enable leaderelection
2021-02-04 22:24:51 -08:00
Invictus17
a6655d6eba Adding symbolic link to base/leaderelection 2021-02-04 21:23:37 -05:00
Kubernetes Prow Robot
6e2e494725
Merge pull request #226 from jamesgetx/fix_cache_not_work
fix: load cache error when CacheDecoder object is not callable
2021-02-01 22:26:28 -08:00
Sumant
6eb9f7d9dc Adding module leaderelection from base 2021-02-01 17:03:44 -05:00
Mridul Seth
3c719874c6 fix typo in test file 2021-02-01 19:13:29 +01:00
jamesgetx
e09312a31e
test: self._cache = json.load(f, cls=partial(CacheDecoder, self.client)) 2021-02-01 21:20:19 +08:00
jamesgetx
ec1e85ec10
test: self._cache = json.load(f, cls=partial(CacheDecoder, self.client)) 2021-02-01 21:18:40 +08:00
jamesgetx
18a5ccc3ef
fix: load cache error when CacheDecoder object is not callable 2021-01-29 17:27:01 +08:00
Sumant
bd26d85e84 Enable leaderelection 2021-01-28 18:50:23 -05:00
Mridul Seth
76d8fbda28 fix codestyle 2021-01-25 13:43:26 +01:00
Mridul Seth
8a3bdb8ebe take care of empty kube_config files 2021-01-23 19:23:45 +01:00
Kubernetes Prow Robot
4bf72d7f0d
Merge pull request #206 from Invictus17/master
Leader Election issue #434
2021-01-14 17:17:50 -08:00
Sumant
4d29af161b Leader Election issue #434
changed file naming style consistent with the existing go client code

Update example.py

Changed file and folder names

Rename LeaderElection.py to leaderelection.py

Rename threadingWithException.py to threadingwithexception.py

Rename ConfigMapLock.py to configmaplock.py

LeaderElection to leaderelection

Added boiler plate headers, updated variable and function names consistent with the guidelines, removed the ctypes dependency by using traces to kill threads, changed logic for leader now it gives up and doesn't re-join as a follower if it fails to update lease

added correct boiler plate year

Rename threadingWithTrace.py to threadingwithtrace.py

Update leaderelection.py

Update example.py

Changes based on review - logging, OnStoppedLeading is not killed abruptly, OnStartedLeading is not run in a separate thread, adding README

Update example.py

updated comments

set threads as daemon

Update README.md

Code made consistent with other clients.

Update example.py

Update leaderelection.py

Error & exception handling for the annotation, reduced indentation

Adding serializing functions for serializing & de-serializing locks, leader_election_record as a class

Adding a test

Adding boilerplate header

Rename leaderelectiontest.py to leaderelection_test.py

Updated boiler plates

handling imports for pytest

handling 'HTTP not found' compatibility with python 2 & 3, & handling relative imports

Update leaderelection.py

to check tests for tox

assertEquals -> assertEqual

Update leaderelection_test.py

making Threading compatible for Python 2

changing datetime.timestamp for backward compatibility with Python 2.7

Adding comments for test_Leader_election_with_renew_deadline & making
candidates run in parallel for test_leader_election

remove redundant daemon = True reassignment

common thread lock for MockResourceLock
2021-01-13 19:47:43 -05:00
Kubernetes Prow Robot
3e615b60b5
Merge pull request #1348 from roycaihw/configmap-e2e/labels
e2e: use labels for configmap api; wait for default service account creation
2021-01-12 19:18:35 -08:00
Haowei Cai
90931037ac pod e2e: wait for the default service account to be created 2021-01-12 17:18:42 -08:00
Haowei Cai
3b95adc8f3 configmap-e2e: use labels 2021-01-11 12:34:14 -08:00
Haowei Cai
5be9c893b3 update python-base submodule 2021-01-05 09:53:49 -08:00
Haowei Cai (Roy)
b002110430
Merge pull request #222 from roycaihw/configmap-e2e/labels
configmap e2e: use labels and label selector
2021-01-05 09:49:08 -08:00
Moshe Shitrit
2c9ddf94b6 Revert switch to pathlib, to maintain Python2 support 2021-01-04 23:58:25 -05:00
Haowei Cai
3f05359afc configmap-e2e: use labels 2021-01-04 17:47:34 -08:00
Moshe Shitrit
10db259908 Document kwargs param 2020-12-25 12:59:27 -05:00
Moshe Shitrit
0c662bb33d Adding load_config wrapper method to have a more generic way of initializing the client config 2020-12-25 12:22:38 -05:00
Moshe Shitrit
7199c14a8d Change KUBE_CONFIG_DEFAULT_LOCATION to use pathlib.Path.home instead of hard-coded "~". This is a more "Pythonic" way of setting that value. 2020-12-25 12:11:42 -05:00
Kubernetes Prow Robot
fdc9907ff0
Merge pull request #217 from gliptak/python1
Add Python 3.9 to build
2020-12-13 18:29:27 -08:00
Gábor Lipták
3412151aa9
Add Python 3.9 to build
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2020-12-04 22:06:53 -05:00
Kubernetes Prow Robot
818e5ba0ba
Merge pull request #1337 from asellappen/master
Adding Power support(ppc64le) with ci and testing to the project for architecture independent
2020-12-03 21:37:25 -08:00
Arumugam
d860dc5259 Adding Power support(ppc64le) with ci and testing to the project for architecture independent 2020-12-02 11:09:47 +00:00
Haowei Cai (Roy)
f461dd42d4
Merge pull request #1311 from gliptak/python1
Add Python 3.9 to build
2020-11-23 18:25:50 -08:00
Kubernetes Prow Robot
49a59d7526
Merge pull request #1329 from iciclespider/master
Implement back end raw port test container using python.
2020-11-23 10:51:02 -08:00
Patrick J. McNerthney
fd405e813d Implement back end raw port test container using python. 2020-11-22 10:26:43 -10:00
Kubernetes Prow Robot
eb9b6d609e
Merge pull request #1321 from palnabarun/refactor-compat-and-support-clauses
Update support and compatibitility sections of documentation
2020-11-16 17:34:04 -08:00
Nabarun Pal
3ffa47edba
Update CHANGELOG with v17.14.0a1
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-17 03:33:56 +05:30
Nabarun Pal
f0dbe38970
Add a note about the change in client versioning schema
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-17 03:29:47 +05:30
Nabarun Pal
3890d6d7df
Add v17.14.0a1 to the compatibility matrix
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-17 03:29:47 +05:30
Nabarun Pal
cf3dc147d8
Refactor the format of compatibitility matrix
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-17 03:29:47 +05:30
Nabarun Pal
d03558809f
Clarify support cycles for the releases temporarily
Releases are being fast tracked until we sync with the upstream
releases. The older releases will continue to be maintained for that
transition period or related upstream version deprecation whichever is
later.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-17 03:29:47 +05:30
Kubernetes Prow Robot
b79ad6837b
Merge pull request #1307 from palnabarun/release-17.0-snapshot
Release 17.0 snapshot
2020-11-12 22:30:24 -08:00
Kubernetes Prow Robot
22d623b47b
Merge pull request #1308 from palnabarun/update-changelog
Update CHANGELOG and README to reflect v12.0.0 and v12.0.1
2020-11-12 22:12:24 -08:00
Gábor Lipták
213cd83c8a
Add Python 3.9 to build
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2020-11-09 19:28:08 -05:00
Kubernetes Prow Robot
140af57f9c
Merge pull request #1309 from palnabarun/update-release-docs-2
Update hot patch section of release documentation
2020-11-09 09:26:26 -08:00
Nabarun Pal
bfb46ff0b6
Update README
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:13:41 +05:30
Nabarun Pal
a9ad7d79c3
Update CHANGELOG with v17.0.0-snapshot
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:44 +05:30
Haowei Cai
a80b3f51a6
add a test for default configuration behavior 2020-11-07 16:10:09 +05:30
Fabian von Feilitzsch
0eb5f0f5e9
Add test to ensure kubernetes client threadpool is cleaned up 2020-11-07 16:10:09 +05:30
Nabarun Pal
56ab983036
Add kubernetes.client.apis as an alias to kubernetes.client.api
Reference: https://github.com/kubernetes-client/python/issues/974

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:09 +05:30
Nabarun Pal
f1cc695a6c
Fix custom objects API to preserve backward compatibility
Reference:
- [#866](https://github.com/kubernetes-client/python/issues/866)
- [#959](https://github.com/kubernetes-client/python/pull/959)

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:09 +05:30
Nabarun Pal
e842ec927b
Remove generated tests
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:09 +05:30
Nabarun Pal
598d41ba5f
Generate client 17.0.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:08 +05:30
Nabarun Pal
92bf36b283
Update constants to reflect Client release 17.0.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:08 +05:30
Nabarun Pal
8925bfe369
Update hot patch section of release documentation
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:07:53 +05:30