Skip to content

Commit

Permalink
Add support for watching Ingress and Service
Browse files Browse the repository at this point in the history
  • Loading branch information
tfheen committed Oct 8, 2018
1 parent 527de08 commit fb82324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/models/ingress.py
Expand Up @@ -43,6 +43,7 @@ class Ingress(Model):
class Meta:
list_url = "/apis/extensions/v1beta1/ingresses"
url_template = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}"
watch_list_url = "/apis/extensions/v1beta1/watch/ingresses"

metadata = Field(ObjectMeta)
spec = Field(IngressSpec)
1 change: 1 addition & 0 deletions k8s/models/service.py
Expand Up @@ -31,6 +31,7 @@ class Service(Model):
class Meta:
list_url = "/api/v1/services"
url_template = "/api/v1/namespaces/{namespace}/services/{name}"
watch_list_url = "/api/v1/watch/services"

metadata = Field(ObjectMeta)
spec = Field(ServiceSpec)

0 comments on commit fb82324

Please sign in to comment.