diff --git a/openshift/README.md b/openshift/README.md index 2c407269..f5f428a7 100644 --- a/openshift/README.md +++ b/openshift/README.md @@ -4,7 +4,7 @@ OpenShift provides builds, application lifecycle, image content management, and This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: latest -- Package version: 0.4.3 +- Package version: 0.4.4 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/openshift/__init__.py b/openshift/__init__.py index 44b771af..8b5d9a0e 100644 --- a/openshift/__init__.py +++ b/openshift/__init__.py @@ -18,5 +18,5 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -__version__ = "0.4.3" +__version__ = "0.4.4" __k8s_client_version__ = "4.0.0" diff --git a/openshift/client/api_client.py b/openshift/client/api_client.py index 09a53ca3..2ea5706c 100644 --- a/openshift/client/api_client.py +++ b/openshift/client/api_client.py @@ -1,5 +1,8 @@ from __future__ import absolute_import +import json +from base64 import b64encode + from kubernetes.client.api_client import ApiClient as K8sApiClient from kubernetes.client import models as k8s_models @@ -7,6 +10,8 @@ class ApiClient(K8sApiClient): def _ApiClient__deserialize(self, data, klass): + if klass == 'RuntimeRawExtension': + data = {'Raw': b64encode(json.dumps(data))} try: return super(ApiClient, self).__deserialize(data, klass) except AttributeError: diff --git a/python-openshift.spec b/python-openshift.spec index bb5cac1b..4ea287e9 100644 --- a/python-openshift.spec +++ b/python-openshift.spec @@ -3,7 +3,7 @@ %global library openshift Name: python-%{library} -Version: 0.4.3 +Version: 0.4.4 Release: 6%{?dist} Summary: Python client for the OpenShift API License: MIT diff --git a/scripts/constants.py b/scripts/constants.py index eb601834..2658c253 100644 --- a/scripts/constants.py +++ b/scripts/constants.py @@ -23,7 +23,7 @@ # client version for packaging and releasing. It can # be different than SPEC_VERSION. -CLIENT_VERSION = "0.4.3" +CLIENT_VERSION = "0.4.4" KUBERNETES_CLIENT_VERSION = "4.0.0" # Name of the release package diff --git a/setup.py b/setup.py index 114fccfd..e298dc0e 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "0.4.3" +CLIENT_VERSION = "0.4.4" PACKAGE_NAME = "openshift" DEVELOPMENT_STATUS = "3 - Alpha"