Skip to content

Commit

Permalink
Merge pull request kelproject#115 from bpatelcs/master
Browse files Browse the repository at this point in the history
Add CronJob Support
  • Loading branch information
brosner authored Feb 21, 2017
2 parents 33118af + 05a6b72 commit 9013e75
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 @@ -7,6 +7,7 @@
from .http import HTTPClient # noqa
from .objects import ( # noqa
ConfigMap,
CronJob,
DaemonSet,
Deployment,
Endpoint,
Expand Down
7 changes: 7 additions & 0 deletions pykube/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ class ConfigMap(NamespacedAPIObject):
kind = "ConfigMap"


class CronJob(NamespacedAPIObject):

version = "batch/v2alpha1"
endpoint = "cronjobs"
kind = "CronJob"


class DaemonSet(NamespacedAPIObject):

version = "extensions/v1beta1"
Expand Down

0 comments on commit 9013e75

Please sign in to comment.