Skip to content

Commit

Permalink
Add LimitRange support
Browse files Browse the repository at this point in the history
If someone works with resources, limitranges might be useful:
https://kubernetes.io/docs/admin/limitrange/
  • Loading branch information
amnk committed Feb 22, 2017
1 parent 08f7c86 commit 26348e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions pykube/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
HorizontalPodAutoscaler,
Ingress,
Job,
LimitRange,
Namespace,
Node,
PersistentVolume,
Expand Down
7 changes: 7 additions & 0 deletions pykube/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ class Event(NamespacedAPIObject):
kind = "Event"


class LimitRange(NamespacedAPIObject):

version = "v1"
endpoint = "limitranges"
kind = "LimitRange"


class ResourceQuota(NamespacedAPIObject):

version = "v1"
Expand Down

0 comments on commit 26348e4

Please sign in to comment.