1
0

29 Commits

Author SHA256 Message Date
7d752f9912 Accepting request 1139804 from home:bnavigator:branches:devel:languages:python
Okay let's make it independent of the kubernetes1.29 update.

We need this in Staging:K

- Add kubernetes-client-python-pr2178-assertEqual-py312.patch
  gh#kubernetes-client/python#2178 fixing a python3.12 test error
- Remove deprecated setup.py usage, switch to PEP517

OBS-URL: https://build.opensuse.org/request/show/1139804
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=21
2024-01-19 12:20:21 +00:00
Richard Brown
2e7d2b5571 Accepting request 1121621 from home:Xinayder:branches:devel:kubic
Remove upper version limit for urllib3

OBS-URL: https://build.opensuse.org/request/show/1121621
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=19
2023-11-10 12:47:43 +00:00
3fd1dbbed1 Accepting request 1114850 from home:mimi_vx:branches:devel:kubic
- Fix requires for urllib3

OBS-URL: https://build.opensuse.org/request/show/1114850
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=17
2023-10-03 08:52:04 +00:00
0708c905b2 Accepting request 1112492 from home:psaggu:branches:devel:kubic
- version update to 28.1.0
  * too many changes, please refer to the CHANGELOG.md in documentation OR at
  https://github.com/kubernetes-client/python/blob/release-28.0/CHANGELOG.md
- cleanup: alpha-sorted the `BuildRequires` and `Requires` fields
- added following, per requirements.txt at https://github.com/kubernetes-client/python/blob/v28.1.0/requirements.txt: 
  *`BuildRequires:  %{python_module oauthlib >= 3.2.2}`
  *`Requires: python-oauthlib >= 3.2.2`

OBS-URL: https://build.opensuse.org/request/show/1112492
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=15
2023-09-20 08:58:18 +00:00
4c573c5a34 Accepting request 1099391 from home:psaggu:branches:devel:kubic
- version update to 27.2.0
  https://github.com/kubernetes-client/python/blob/v27.2.0/CHANGELOG.md

OBS-URL: https://build.opensuse.org/request/show/1099391
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=13
2023-07-19 07:13:37 +00:00
e8d36bc411 Accepting request 1087387 from home:psaggu:branches:devel:kubic
- changes to fix unresolvable/failing package build for SLE-15-SP4, https://build.suse.de/request/show/297283 :
  * added: `BuildRequires:  %{python_module Sphinx >= 1.3.1}`
  * reverted below changes from `
    ** reverted: `%python_build` ->  `%pyproject_wheel`  and `%python_install` -> `%pyproject_install`
    ** reverted:  `BuildRequires:  %{python_module pip}`
    ** reverted:  `BuildRequires:  %{python_module wheel}`

OBS-URL: https://build.opensuse.org/request/show/1087387
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=11
2023-05-16 10:32:28 +00:00
980d51cb22 Accepting request 1084955 from home:psaggu:branches:devel:kubic
- included missing changelog entries from "Tue Oct  8 15:24:14 UTC 2019 - Can Bayburt <cbbayburt@suse.com>"
  to even the diversion with the existing `SUSE:SLE-15-SP4:Update` package

- removed patch: base64-padding-fix.patch
  * changes introduced by patch are included in upstream

OBS-URL: https://build.opensuse.org/request/show/1084955
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=9
2023-05-05 07:29:48 +00:00
c88f887b9a Accepting request 1084307 from home:psaggu:branches:devel:kubic
- added: `%{python_sitelib}/kubernetes` and `%{python_sitelib}/kubernetes-%{version}*-info` under %files
- replaced `%python_build` ->  `%pyproject_wheel`  and `%python_install` -> `%pyproject_install` 
  * added:  BuildRequires:  %{python_module pip}
  * added:  BuildRequires:  %{python_module wheel}

OBS-URL: https://build.opensuse.org/request/show/1084307
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=7
2023-05-03 12:06:55 +00:00
adbd0becae Accepting request 1083936 from home:psaggu:branches:devel:kubic
- removed following conditional python_module macro definition, as it is present in recent versions of "python-rpm-macros"

  * "%{?!python_module:%define python_module() python-%{**} python3-%{**}}"

OBS-URL: https://build.opensuse.org/request/show/1083936
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=5
2023-05-02 07:37:18 +00:00
Richard Brown
3a4e78ab04 Accepting request 1083510 from home:psaggu:branches:devel:kubic
- removed python-kubernetes-no-mock.patch, patch changes incorporated upstream

- version update to 26.1.0
  * too many changes, please refer to the CHANGELOG.md in documentation OR at
  https://github.com/kubernetes-client/python/blob/v26.1.0/CHANGELOG.md

OBS-URL: https://build.opensuse.org/request/show/1083510
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=3
2023-04-28 12:08:21 +00:00
5441e13765 Accepting request 1006979 from home:yarunachalam:branches:devel:languages:python
- Update to v24.2.0
  Uncategorized
  The dynamic client now support the _request_timeout parameter to configure connection and request timeouts. (#1732, @philipp-sontag-by)
- Update to v24.1.0b1
  Uncategorized
  The dynamic client now support the _request_timeout parameter to configure connection and request timeouts. (#1732, @philipp-sontag-by)
- Update to v24.1.0a1
  API Change
  Add 2 new options for kube-proxy running in winkernel mode. --forward-healthcheck-vip, if specified as true, health check traffic whose
  destination is service VIP will be forwarded to kube-proxy's healthcheck service. --root-hnsendpoint-name specifies the name of the hns endpoint
  for the root network namespace. This option enables the pass-through load balancers like Google's GCLB to correctly health check the backend services.
  Without this change, the health check packets is dropped, and Windows node will be considered to be unhealthy by those load balancers.
  (kubernetes/kubernetes#99287, @anfernee)
  Added CEL runtime cost calculation into CustomerResource validation. CustomerResource validation will fail if runtime cost exceeds the budget.
  (kubernetes/kubernetes#108482, @cici37)
  Added a new metric webhook_fail_open_count to monitor webhooks that fail to open. (kubernetes/kubernetes#107171, @ltagliamonte-dd)
  Adds a new Status subresource in Network Policy objects (kubernetes/kubernetes#107963, @rikatz)
  Adds support for InterfaceNamePrefix and BridgeInterface as arguments to --detect-local-mode option and also introduces a new optional
  --pod-interface-name-prefix and --pod-bridge-interface flags to kube-proxy. (kubernetes/kubernetes#95400, @tssurya)
  CEL CRD validation expressions may now reference existing object state using the identifier oldSelf. (kubernetes/kubernetes#108073, @benluddy)
  CRD deep copies should no longer contain shallow copies of JSONSchemaProps.XValidations. (kubernetes/kubernetes#107956, @benluddy)
  CRD writes will generate validation errors if a CEL validation rule references the identifier oldSelf on a part of the schema that does not
  support it. (kubernetes/kubernetes#108013, @benluddy)
  CSIStorageCapacity.storage.k8s.io: The v1beta1 version of this API is deprecated in favor of v1, and will be removed in v1.27. If a CSI driver
  supports storage capacity tracking, then it must get deployed with a release of external-provisioner that supports the v1 API. (kubernetes/kubernetes#108445, @pohly)
  Custom resource requests with fieldValidation=Strict consistently require apiVersion and kind, matching non-strict requests (kubernetes/kubernetes#109019, @liggitt)
  Feature of DefaultPodTopologySpread is graduated to GA (kubernetes/kubernetes#108278, @kerthcet)
  Feature of NonPreemptingPriority is graduated to GA (kubernetes/kubernetes#107432, @denkensk)
  Feature of PodOverhead is graduated to GA (kubernetes/kubernetes#108441, @pacoxu)
  Fixed OpenAPI serialization of the x-kubernetes-validations field (kubernetes/kubernetes#107970, @liggitt)

OBS-URL: https://build.opensuse.org/request/show/1006979
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=36
2022-09-29 19:03:02 +00:00
d62bce887e - update to 23.6.0:
* Omits alpha-level enums from the static openapi file captured in api/openapi-spec
  * Fixes a regression in v1beta1 PodDisruptionBudget handling of "strategic
    merge patch"-type API requests for the `selector` field. Prior to 1.21,
    these requests would merge `matchLabels` content and replace
    `matchExpressions` content. In 1.21, patch requests touching the `selector`
    field started replacing the entire selector. This is consistent with
    server-side apply and the v1 PodDisruptionBudget behavior, but should not
    have been changed for v1beta1.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=34
2022-06-19 17:42:15 +00:00
992e9ae76b Accepting request 974528 from home:pgajdos:python
- version update to 23.3.0
  too many changes, see CHANGELOG.md in documentation or at
  https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md

OBS-URL: https://build.opensuse.org/request/show/974528
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=31
2022-05-03 16:27:02 +00:00
f0f13638a4 - update to 12.0.1:
* Kubernetes API version 1.16.15
  - Resolve regression in metadata.managedFields handling in update/patch requests submitted by older API clients ([#91748](https://github.com/kubernetes/k
  ubernetes/pull/91748), [@apelisse](https://github.com/apelisse)) [SIG API Machinery and Testing]
  - Fix bug where sending a status update completely wipes managedFields for some types. ([#90033](https://github.com/kubernetes/kubernetes/pull/90033), [@
  apelisse](https://github.com/apelisse)) [SIG API Machinery and Testing]
  - The `MutatingWebhookConfiguration` and `ValidatingWebhookConfiguration` APIs have been promoted to `admissionregistration.k8s.io/v1`:
    - `failurePolicy` default changed from `Ignore` to `Fail` for v1
    - `matchPolicy` default changed from `Exact` to `Equivalent` for v1
    - `timeout` default changed from `30s` to `10s` for v1
    - `sideEffects` default value is removed, and the field made required, and only `None` and `NoneOnDryRun` are permitted for v1
    - `admissionReviewVersions` default value is removed and the field made required for v1 (supported versions for AdmissionReview are `v1` and `v1beta1`)
    - The `name` field for specified webhooks must be unique for `MutatingWebhookConfiguration` and `ValidatingWebhookConfiguration` objects created via `a
  dmissionregistration.k8s.io/v1`
  - The `AdmissionReview` API sent to and received from admission webhooks has been promoted to `admission.k8s.io/v1`. Webhooks can specify a preference fo
  r receiving `v1` AdmissionReview objects with `admissionReviewVersions: ["v1","v1beta1"]`, and must respond with an API object in the same `apiVersion` t
  hey are sent. When webhooks use `admission.k8s.io/v1`, the following additional validation is performed on their responses:
    - `response.patch` and `response.patchType` are not permitted from validating admission webhooks
    - `apiVersion: "admission.k8s.io/v1"` is required
    - `kind: "AdmissionReview"` is required
    - `response.uid: "<value of request.uid>"` is required
    - `response.patchType: "JSONPatch"` is required (if `response.patch` is set) ([#80231](https://github.com/kubernetes/kubernetes/pull/80231), [@liggitt]
  (https://github.com/liggitt))
  - The `CustomResourceDefinition` API type is promoted to `apiextensions.k8s.io/v1` with the following changes:
    - Use of the new `default` feature in validation schemas is limited to v1
    - `spec.scope` is no longer defaulted to `Namespaced` and must be explicitly specified
    - `spec.version` is removed in v1; use `spec.versions` instead
    - `spec.validation` is removed in v1; use `spec.versions[*].schema` instead
    - `spec.subresources` is removed in v1; use `spec.versions[*].subresources` instead
    - `spec.additionalPrinterColumns` is removed in v1; use `spec.versions[*].additionalPrinterColumns` instead

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=29
2020-12-20 10:11:01 +00:00
Tomáš Chvátal
deae0235f4 Accepting request 794468 from home:pgajdos:python
- version update to 11.0.0
  Kubernetes API Version: 1.15.10
  **API Change:**
  - Deleting CustomObjects doesn't require passing in the body anymore [kubernetes-client/gen#142](https://github.com/kubernetes-client/gen/pull/142)
  **New Feature:**
  - Add ability to the client to be used as Context Manager [kubernetes-client/python#1073](https://github.com/kubernetes-client/python/pull/1073)
  - Enable the use of dynamic client [kubernetes-client/python#1035](https://github.com/kubernetes-client/python/pull/1035)
  - Add option to refresh gcp token when config is cmd-path [kubernetes-client/python-base#175](https://github.com/kubernetes-client/python-base/pull/175)
  **Bug Fix:**
  - Add kubernetes.dynamic to setup.py pkg list [kubernetes-client/python#1096](https://github.com/kubernetes-client/python/pull/1096)
  - Fixed issue in `__del__` method of the `ApiClient` that caused an indefinite hang during garbage collection. [kubernetes-client/python#1073](https://github.com/kubernetes-client/python/pull/1073)
  - Fix custom object API example [kubernetes-client/python#1049](https://github.com/kubernetes-client/python/pull/1049)
  - Fix deprecation warning in E2E tests [kubernetes-client/python#1036](https://github.com/kubernetes-client/python/pull/1036)
  - Use `==/!=` to compare str, bytes, and int literals [kubernetes-client/python#1007](https://github.com/kubernetes-client/python/pull/1007)
  - Fix apiserver_id 'get' method [kubernetes-client/python-base#184](https://github.com/kubernetes-client/python-base/pull/184)
  - Fix persist_config flag and function calls [kubernetes-client/python-base#169](https://github.com/kubernetes-client/python-base/pull/169)
  - Fix memory inneficiencies in the WebSocket client [kubernetes-client/python-base#178](https://github.com/kubernetes-client/python-base/pull/178)
  - Fix functionality to watch logs when log line is not a JSON-serialized object [kubernetes-client/python-base#171](https://github.com/kubernetes-client/python-base/pull/171)
  - Detect binary payloads and send the correct opcode [kubernetes-client/python-base#152](https://github.com/kubernetes-client/python-base/pull/152)
  **Deprecation Notice**
  v11.0.0 of the client follows the Kubernetes [deprecation policy](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/release/versioning.md#supported-releases-and-component-skew) and will
  be deprecated as and when Kubernetes version v1.15 gets deprecated.
  **API Change:**
  - Introduce `ExtensionsV1beta1RuntimeClassStrategyOptions` and `PolicyV1beta1RuntimeClassStrategyOptions`. Add RuntimeClass restrictions & defaulting to PodSecurityPolicy [kubernetes/kubernetes#73795](https://github.com/kubernetes/kubernetes/pull/73795)
  - Introduce `V1WindowsSecurityContextOptions`. Add Windows specific options in Pod Security Context and Container Security Context [kubernetes/kubernetes#77147](https://github.com/kubernetes/kubernetes/pull/77147)
  - Split `V1beta1Webhook` into `V1beta1MutatingWebhook` and `V1beta1ValidatingWebhook` [kubernetes/kubernetes#78491](https://github.com/kubernetes/kubernetes/pull/78491)
  - Introduce parameter `allow_watch_bookmarks` in list options for requesting watch bookmarks from apiserver. The implementation in apiserver is hidden behind feature gate `WatchBookmark` (currently in Alpha stage) [kubernetes/kubernetes#74074](https://github.com/kubernetes/kubernetes/pull/74074)
  - Add `V1DeleteOptions` parameters (`dry_run`, `grace_period_seconds`, `orphan_dependents`, `propagation_policy`) to delete collection APIs [kubernetes/kubernetes#77843](https://github.com/kubernetes/kubernetes/pull/77843)
  - Add ListMeta.RemainingItemCount. When responding a LIST request, if the server has more data available, and if the request does not contain label selectors or field selectors, the server sets the ListOptions.RemainingItemCount to the number of remaining objects [kubernetes/kubernetes#75993](https://github.com/kubernetes/kubernetes/pull/75993)
  - Add `controller_expand_secret_ref` in `V1SecretReference` to store CSI volume expansion secrets [kubernetes/kubernetes#77516](https://github.com/kubernetes/kubernetes/pull/77516)

OBS-URL: https://build.opensuse.org/request/show/794468
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=27
2020-04-16 09:02:29 +00:00
Tomáš Chvátal
1cbfe612c5 - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=25
2020-03-16 10:38:04 +00:00
Tomáš Chvátal
a8202b4dd3 - Update dependencies to match up what is in requirements.txt
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=23
2020-01-02 12:55:23 +00:00
ae61b53c5d - update to 10.0.1:
* Fix content type regression in custom object patch API
  * Bump urllib3 version to pick up security fix for CVE-2019-11324

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=21
2019-08-13 06:57:30 +00:00
Tomáš Chvátal
b2fdecb9af - Update to 10.0.0:
* Fix base64 padding for kube config kubernetes-client/python-base#79
  * Fix websocket client decoding binary message. Replace non-utf8 data instead of failing kubernetes-client/python-base#104
  * Add email scope to GCP provided credential refresh kubernetes-client/python-base#110
  * Fix broken urllib3 dependencies kubernetes-client/python#816
  * Add method to dynamically set namespace in yaml utility kubernetes-client/python#782
  * Add json-patch to custom object patch method kubernetes-client/gen#119

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=19
2019-07-24 08:22:01 +00:00
Tomáš Chvátal
75d918d623 - Drop unused dep on Sphinx
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=17
2019-06-07 12:10:04 +00:00
Tomáš Chvátal
6d90a0be65 Accepting request 703247 from home:SVasudevan:branches:devel:languages:python
- Update to 9.0.0
  * Add fieldSelector parameter to list/watch methods in custom objects spec kubernetes-client

OBS-URL: https://build.opensuse.org/request/show/703247
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=15
2019-05-15 20:14:15 +00:00
Tomáš Chvátal
15b6e4ba03 Accepting request 680473 from home:jayvdb:noflake8
- Add missing %doc and %license
- Remove unnecessary code style build dependencies

OBS-URL: https://build.opensuse.org/request/show/680473
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=13
2019-03-01 12:12:20 +00:00
4d910a9a4d Accepting request 672542 from home:mcepl:branches:devel:languages:python
- update to 8.0.1:
    too many changes to record here, see
    https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md
    for complete list.

OBS-URL: https://build.opensuse.org/request/show/672542
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=11
2019-02-14 17:55:41 +00:00
Todd R
d65c5794ef Accepting request 672557 from home:TheBlackCat:branches:devel:languages:python
Fix building on python 3.7

OBS-URL: https://build.opensuse.org/request/show/672557
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=9
2019-02-07 19:20:25 +00:00
d809968a33 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=7
2018-12-04 13:37:31 +00:00
09e1d4e085 - update to 5.0.0:
- Update to Kubernetes 1.9 cluster
  - Label selector for pods is now required and must match the pod template's
    labels for v1beta2 StatefulSetSpec, ReplicaSetSpec, DaemonSetSpec and
    DeploymentSpec kubernetes/kubernetes#55357
  - The dynamic admission webhook is split into two kinds, mutating and
    validating. The kinds have changed completely and old code must be ported to
    admissionregistration.k8s.io/v1beta1 - MutatingWebhookConfiguration and
    ValidatingWebhookConfiguration kubernetes/kubernetes#55282
  - DaemonSet, Deployment, ReplicaSet, and StatefulSet have been promoted to GA
    and are available in the apps/v1 group version kubernetes/kubernetes#53679
  - Introduce new storage.k8s.io/v1alpha1 VolumeAttachment object
    kubernetes/kubernetes#54463
  - Introduce core/v1 RBDPersistentVolumeSource kubernetes/kubernetes#54302
  - StatefulSet status now has support for conditions
    kubernetes/kubernetes#55268
  - DaemonSet status now has support for conditions kubernetes/kubernetes#55272

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=5
2018-03-27 08:33:14 +00:00
c58ad71249 - update to 4.0.0:
- api change V1PersistentVolumeSpec to V1ScaleIOPersistentVolumeSource #397.
  - Make sure PyPI source distribution is complete with all files from the
    root directory
  - Update to Kubernetes 1.8 cluster
  - IntOrString is now object thus it can be int or string. #18 #359
  - Adding stream package to support calls like exec. The old way of calling
    them is deprecated. See README.md#why-execattach-calls-doesnt-work.
  - config.http_proxy_url is deprecated. use configuration.proxy instead.
  - Configuration is not a singleton object anymore. Please use
    Configuraion.set_default to change default configuration.
  - Configuration class does not support `ws_streaming_protocol` anymore. In
    ApiClient.set_default_header set `sec-websocket-protocol` to the preferred
    websocket protocol.
  - Fix Operation names for subresources kubernetes/kubernetes#49357
  - Add proper GCP config loader and refresher kubernetes-client/python-base#22
  - Add ws_streaming_protocol and use v4 by default
    kubernetes-client/python-base#20
  - Respect the KUBECONFIG environment variable if set
    kubernetes-client/python-base#19
  - Allow setting maxsize for PoolManager kubernetes-client/python-base#18
  - Restricting the websocket-client to <=0.40 #299
  - Update client to kubernetes 1.7
  - Support ThirdPartyResources (TPR) and CustomResourceDefinitions (CRD).
    Note that TPR is deprecated in kubernetes #251 #201
  - Better dependency management #136
  - Add support for python3.6 #244
- Adjust Requires and BuildRequires
- Fix Source url

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=3
2018-02-13 09:51:20 +00:00
6a84a1d3a9 - small buildrequires cleanup
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=2
2017-08-17 14:06:49 +00:00
86ee50b4f3 Accepting request 507992 from home:mcalmer
new package python-kubernetes

OBS-URL: https://build.opensuse.org/request/show/507992
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=1
2017-07-04 15:45:30 +00:00