diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-02-27 19:01:32 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-02-28 09:29:21 -0500 |
commit | 74e890482f2be933634286f8b4cf488287cf6d39 (patch) | |
tree | 26ace727f85fa25e6629f3cf10c4f2c1d05f80b4 /roles/lib_openshift/src/lib/service.py | |
parent | e0090381732d43de74715b9d41480b3c43391783 (diff) | |
download | openshift-74e890482f2be933634286f8b4cf488287cf6d39.tar.gz openshift-74e890482f2be933634286f8b4cf488287cf6d39.tar.bz2 openshift-74e890482f2be933634286f8b4cf488287cf6d39.tar.xz openshift-74e890482f2be933634286f8b4cf488287cf6d39.zip |
Modified base debug statements. Fixed oc_secret debug/verbose flag. Added reencrypt for route.
Diffstat (limited to 'roles/lib_openshift/src/lib/service.py')
-rw-r--r-- | roles/lib_openshift/src/lib/service.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/lib/service.py b/roles/lib_openshift/src/lib/service.py index ffe27da47..eef568779 100644 --- a/roles/lib_openshift/src/lib/service.py +++ b/roles/lib_openshift/src/lib/service.py @@ -67,6 +67,7 @@ class Service(Yedit): port_path = "spec.ports" portal_ip = "spec.portalIP" cluster_ip = "spec.clusterIP" + selector_path = 'spec.selector' kind = 'Service' def __init__(self, content): @@ -77,6 +78,10 @@ class Service(Yedit): ''' get a list of ports ''' return self.get(Service.port_path) or [] + def get_selector(self): + ''' get the service selector''' + return self.get(Service.selector_path) or {} + def add_ports(self, inc_ports): ''' add a port object to the ports list ''' if not isinstance(inc_ports, list): |