- Added
PodDisruptionBudget
- Added HTTP timeout (default: 10 seconds)
- New release as
pykube-ng
- Removed Python 2.7 compatibility
- Removed HTTPie plugin
- Added some tests
- added Kubernetes API objects:
CronJob
PodSecurityPolicy
LimitRange
pykube
namespace exposesPersistentVolume
andPersistentVolumeClaim
- Ensure six >= 1.10.0 is installed (fixed #116)
StatefulSet
learned to scale by inheriting fromReplicatedMixin
andScalableMixin
Query
learned to carry forward field selector during a cloneQuery.watch
learned to carry forward all query parametersAPIObject
learnedwatch
to enable per-object watchesDeployment
learned to roll back usingrollout_undo
similar tokubectl rollout undo deployment
- added Kubernetes API objects:
Role
ClusterRole
RoleBinding
ClusterRoleBinding
StatefulSet
HTTPClient
learned to handle GKE OAuth authenticationHTTPClient
learnedversion
to report Kubernetes versionPod
learned to retrieve logs for containersQuery.filter
learned to scope based on fields- Fixed handling of Kubernetes certificates for Python versions < 3.5
- Kubernetes 1.5 compatibility
APIObject
learnedmetadata
andlabels
propertiesKubeConfig
learnednamespace
and depedent objects use it more sanely
- added Kubernetes API objects:
Event
ResourceQuota
ServiceAccount
ThirdPartyResource
PetSet
HorizontalPodAutoscaler
KubeConfig
learned to handle empty or missing user configurationHTTPClient
learned to create an HTTP session with no authenticationDeployment
learned to report itself ready
WatchQuery
learned to query against non-v1 API objects
APIObject
learned to use JSON Merge Patch instead of JSON PatchDeployment
andReplicaSet
learnedscale
method
Job.scale
fixed to work as advertisedPod.ready
learned to handle no conditions as empty conditions
- CRITICAL:
Query._clone
learned to copy the selector
Query.get
re-learned how to return a single object from the query cacheHTTPClient
learned how to handle no namespace to produce correct URLs
HTTPClient
learned to issue requests against the batch APIs
pykube is now hosted under the Kel Project.
- added Kubernetes API object:
ReplicaSet
Job
object usesbatch/v1
kindJob
object learned to scale to a new number of replicas
HTTPClient
learned to warn when an IP hostname is used on Python < 3.5
- added Kubernetes API objects:
ConfigMap
andIngress
KubeConfig.from_file
learned to expand~
shortcut in pathsKubeConfig.from_service_account
learned to take a custom path- added
kind
attribute to all API objects
RollingUpdater
learned to validate selectors and labels (matching kubectl)
- added Kubernetes API objects:
Deployment
,Job
,PersistentVolume
andPersistentVolumeClaim
- improved exception message when Kubernetes API responds with an error
- added
DaemonSet
to public API