Skip to content

Delete from yaml #1197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b61fb5c
created method to delete from yaml files
DiptoChakrabarty Jul 7, 2020
5fc0f53
function when namespaced delete not found
DiptoChakrabarty Jul 7, 2020
d339958
change syntax for delete operation
DiptoChakrabarty Jul 12, 2020
a8e5ac3
resolve kwargs error for python2.7
DiptoChakrabarty Jul 12, 2020
7e75c96
fixed typo errors
DiptoChakrabarty Jul 13, 2020
9605ff1
created method to delete from yaml files
DiptoChakrabarty Jul 7, 2020
f153cf1
function when namespaced delete not found
DiptoChakrabarty Jul 7, 2020
829ecc8
change syntax for delete operation
DiptoChakrabarty Jul 12, 2020
c86181b
resolve kwargs error for python2.7
DiptoChakrabarty Jul 12, 2020
1e3093b
fixed typo errors
DiptoChakrabarty Jul 13, 2020
424fb43
e2e tests of resource deletion
DiptoChakrabarty Aug 24, 2020
0108418
e2e tests of resource deletion
DiptoChakrabarty Aug 24, 2020
4e3d675
add e2e tests for multi resources and add method to delete of kind list
DiptoChakrabarty Aug 24, 2020
b010a19
changed propagation policy to background and updated comment
DiptoChakrabarty Aug 31, 2020
414946e
time limit exceeded case
DiptoChakrabarty Aug 31, 2020
ab1329c
Merge branch 'master' of https://github.com/kubernetes-client/python …
DiptoChakrabarty Sep 21, 2020
0a3cbcb
tests to verify resource deletion
DiptoChakrabarty Sep 22, 2020
399c166
error in multi resource test fix
DiptoChakrabarty Sep 23, 2020
704655f
Merge branch 'master' of https://github.com/kubernetes-client/python …
DiptoChakrabarty Sep 27, 2020
8c1967f
fix namespace deletion error and being deleted case
DiptoChakrabarty Sep 27, 2020
ec5db9c
minor change
DiptoChakrabarty Sep 28, 2020
6ff6e44
Merge branch 'master' of https://github.com/kubernetes-client/python …
DiptoChakrabarty Oct 19, 2020
3833f7e
Merge branch 'master' of https://github.com/kubernetes-client/python …
DiptoChakrabarty Nov 3, 2020
5c90c18
Update CHANGELOG and README to reflect v12.0.0 and v12.0.1
palnabarun Oct 15, 2020
92bf36b
Update constants to reflect Client release 17.0.0
palnabarun Nov 7, 2020
598d41b
Generate client 17.0.0
palnabarun Nov 7, 2020
e842ec9
Remove generated tests
palnabarun Nov 7, 2020
f1cc695
Fix custom objects API to preserve backward compatibility
palnabarun Jun 22, 2020
56ab983
Add kubernetes.client.apis as an alias to kubernetes.client.api
palnabarun Jun 22, 2020
0eb5f0f
Add test to ensure kubernetes client threadpool is cleaned up
fabianvf Feb 6, 2020
a80b3f5
add a test for default configuration behavior
roycaihw Nov 4, 2020
a9ad7d7
Update CHANGELOG with v17.0.0-snapshot
palnabarun Nov 7, 2020
bfb46ff
Update README
palnabarun Nov 7, 2020
0bd5e13
Merge branch 'master' of https://github.com/kubernetes-client/python
DiptoChakrabarty Nov 12, 2020
22d623b
Merge pull request #1308 from palnabarun/update-changelog
k8s-ci-robot Nov 13, 2020
b79ad68
Merge pull request #1307 from palnabarun/release-17.0-snapshot
k8s-ci-robot Nov 13, 2020
a63bf99
fix code style errors
DiptoChakrabarty Nov 15, 2020
32c5231
namespace condition error fix
DiptoChakrabarty Nov 15, 2020
ebd9864
created method to delete from yaml files
DiptoChakrabarty Jul 7, 2020
54377ea
function when namespaced delete not found
DiptoChakrabarty Jul 7, 2020
a20b3a1
change syntax for delete operation
DiptoChakrabarty Jul 12, 2020
92d50aa
resolve kwargs error for python2.7
DiptoChakrabarty Jul 12, 2020
89e06d1
fixed typo errors
DiptoChakrabarty Jul 13, 2020
1233244
created method to delete from yaml files
DiptoChakrabarty Jul 7, 2020
e0f4c5c
change syntax for delete operation
DiptoChakrabarty Jul 12, 2020
b03e37e
resolve kwargs error for python2.7
DiptoChakrabarty Jul 12, 2020
81374a3
fixed typo errors
DiptoChakrabarty Jul 13, 2020
4e81da5
e2e tests of resource deletion
DiptoChakrabarty Aug 24, 2020
0bf74fc
add e2e tests for multi resources and add method to delete of kind list
DiptoChakrabarty Aug 24, 2020
36838fc
changed propagation policy to background and updated comment
DiptoChakrabarty Aug 31, 2020
371d252
time limit exceeded case
DiptoChakrabarty Aug 31, 2020
c87c272
tests to verify resource deletion
DiptoChakrabarty Sep 22, 2020
3ce0c5a
error in multi resource test fix
DiptoChakrabarty Sep 23, 2020
e87ad34
fix namespace deletion error and being deleted case
DiptoChakrabarty Sep 27, 2020
95b1d2c
minor change
DiptoChakrabarty Sep 28, 2020
2e22a7b
fix code style errors
DiptoChakrabarty Nov 15, 2020
fa84691
namespace condition error fix
DiptoChakrabarty Nov 15, 2020
de8d44e
merge conflict fix
DiptoChakrabarty Nov 16, 2020
2bfdf96
tox test
DiptoChakrabarty Mar 18, 2021
b0c1eab
tox line break check
DiptoChakrabarty Mar 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
# v17.0.0-snapshot

Kubernetes API Version: 1.17.13

**Important Information:**

- The Kubernetes Python client versioning scheme has changed. The version numbers used till Kubernetes Python Client v12.y.z lagged behind the actual Kubernetes minor version numbers. From this release, the client is moving a version format `vY.Z.P` where `Y` and `Z` are respectively from the Kubernetes version `v1.Y.Z` and `P` would incremented due to changes on the Python client side itself. Ref: https://github.com/kubernetes-client/python/issues/1244
- Python 2 had reached [End of Life](https://www.python.org/doc/sunset-python-2/) on January 1, 2020. The Kubernetes Python Client will drop support for Python 2 from the next release (v18.0.0) and will no longer provide support to older clients as per the [Kubernetes support policy](https://kubernetes.io/docs/setup/release/version-skew-policy/#supported-versions).


**API Change:**
- Fixed: log timestamps now include trailing zeros to maintain a fixed width ([#91207](https://github.com/kubernetes/kubernetes/pull/91207), [@iamchuckss](https://github.com/iamchuckss)) [SIG Apps and Node]
- Resolve regression in metadata.managedFields handling in update/patch requests submitted by older API clients ([#92008](https://github.com/kubernetes/kubernetes/pull/92008), [@apelisse](https://github.com/apelisse)) [SIG API Machinery and Testing]
- Fix bug where sending a status update completely wipes managedFields for some types. ([#90032](https://github.com/kubernetes/kubernetes/pull/90032), [@apelisse](https://github.com/apelisse)) [SIG API Machinery and Testing]
- Fixes a regression with clients prior to 1.15 not being able to update podIP in pod status, or podCIDR in node spec, against >= 1.16 API servers ([#88505](https://github.com/kubernetes/kubernetes/pull/88505), [@liggitt](https://github.com/liggitt)) [SIG Apps and Network]
- CustomResourceDefinitions now validate documented API semantics of `x-kubernetes-list-type` and `x-kubernetes-map-type` atomic to reject non-atomic sub-types. ([#84722](https://github.com/kubernetes/kubernetes/pull/84722), [@sttts](https://github.com/sttts))
- Kube-apiserver: The `AdmissionConfiguration` type accepted by `--admission-control-config-file` has been promoted to `apiserver.config.k8s.io/v1` with no schema changes. ([#85098](https://github.com/kubernetes/kubernetes/pull/85098), [@liggitt](https://github.com/liggitt))
- Fixed EndpointSlice port name validation to match Endpoint port name validation (allowing port names longer than 15 characters) ([#84481](https://github.com/kubernetes/kubernetes/pull/84481), [@robscott](https://github.com/robscott))
- CustomResourceDefinitions introduce `x-kubernetes-map-type` annotation as a CRD API extension. Enables this particular validation for server-side apply. ([#84113](https://github.com/kubernetes/kubernetes/pull/84113), [@enxebre](https://github.com/enxebre))

To read the full CHANGELOG visit [here](https://raw.githubusercontent.com/kubernetes/kubernetes/master/CHANGELOG/CHANGELOG-1.17.md).

# v12.0.1

Kubernetes API Version: 1.16.15

**Breaking Change:**

- `kubernetes.config.Configuration()` will now return the default "initial" configuration, `kubernetes.config.Configuration.get_default_copy()` will return the default configuration if there is a default set via `Configuration.set_default(c)`, otherwise, it will also return the default "initial" configuration. [OpenAPITools/openapi-generator#4485](https://github.com/OpenAPITools/openapi-generator/pull/4485), [OpenAPITools/openapi-generator#5315](https://github.com/OpenAPITools/openapi-generator/pull/5315). **Note: ** This change also affects v12.0.0a1, v12.0.0b1 and v12.0.0.

**Bug Fix:**
- Prevent 503s from killing the client during discovery [kubernetes-client/python-base#187](https://github.com/kubernetes-client/python-base/pull/187)


# v12.0.0

Kubernetes API Version: 1.16.15

**New Feature:**
- Implement Port Forwarding [kubernetes-client/python-base#210](https://github.com/kubernetes-client/python-base/pull/210), [kubernetes-client/python-base#211](https://github.com/kubernetes-client/python-base/pull/211), [kubernetes-client/python#1237](https://github.com/kubernetes-client/python/pull/1237)
- Support loading configuration from file-like objects [kubernetes-client/python-base#208](https://github.com/kubernetes-client/python-base/pull/208)
- Returns the created k8s objects in `create_from_{dict,yaml}` [kubernetes-client/python#1262](https://github.com/kubernetes-client/python/pull/1262)


# v12.0.0b1

Kubernetes API Version: 1.16.14
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ between client-python versions.
| 8.0 Alpha/Beta | Kubernetes main repo, 1.12 branch | ✗ |
| 8.0 | Kubernetes main repo, 1.12 branch | ✗ |
| 9.0 Alpha/Beta | Kubernetes main repo, 1.13 branch | ✗ |
| 9.0 | Kubernetes main repo, 1.13 branch | |
| 9.0 | Kubernetes main repo, 1.13 branch | |
| 10.0 Alpha/Beta | Kubernetes main repo, 1.14 branch | ✗ |
| 10.0 | Kubernetes main repo, 1.14 branch | ✓ |
| 11.0 Alpha/Beta | Kubernetes main repo, 1.15 branch | ✗ |
| 11.0 | Kubernetes main repo, 1.15 branch | ✓ |
| 12.0 Alpha/Beta | Kubernetes main repo, 1.16 branch | ✗ |
| 12.0 | Kubernetes main repo, 1.16 branch | ✓ |
| 17.0 Alpha/Beta | Kubernetes main repo, 1.17 branch | ✓ |

Key:

Expand Down Expand Up @@ -174,4 +177,3 @@ This will cause a failure in non-exec/attach calls. If you reuse your api clien
recreate it between api calls that use _stream_ and other api calls.

See more at [exec example](examples/pod_exec.py).

1 change: 0 additions & 1 deletion examples/deployment_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from os import path

import yaml

from kubernetes import client, config


Expand Down
1 change: 0 additions & 1 deletion examples/job_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from os import path

import yaml

from kubernetes import client, config

JOB_NAME = "pi"
Expand Down
4 changes: 2 additions & 2 deletions examples/pod_portforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import time

import six.moves.urllib.request as urllib_request

from kubernetes import config
from kubernetes.client import Configuration
from kubernetes.client.api import core_v1_api
Expand Down Expand Up @@ -122,7 +121,8 @@ def portforward_commands(api_instance):
print("Port 80 has the following error: %s" % error)

# Monkey patch socket.create_connection which is used by http.client and
# urllib.request. The same can be done with urllib3.util.connection.create_connection
# urllib.request.
# The same can be done with urllib3.util.connection.create_connection
# if the "requests" package is used.
socket_create_connection = socket.create_connection

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/.openapi-generator/swagger.json.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
92a199ec5d6f1d4a6df0bbfe509b5bbd504bba8a817a2e6a4c60e8ba2a0049e8
04859ba873ac89c62207ee4a60256edc321314c7d8521c5fd7fba41a1290d637
Loading