1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 03:30:19 +01:00

Re-enable NFS data store. (#101)

This commit is contained in:
Balaji Subramaniam
2018-11-16 13:55:33 -08:00
committed by GitHub
parent a0f25034c3
commit dea1826658
3 changed files with 18 additions and 11 deletions

View File

@@ -135,9 +135,9 @@ class NFSDataStore(DataStore):
)
try:
k8s_core_v1_api_client.create_namespaced_service(self.params.namespace, service)
svc_response = k8s_core_v1_api_client.create_namespaced_service(self.params.namespace, service)
self.params.svc_name = svc_name
self.params.server = 'nfs-service.{}.svc.cluster.local'.format(self.params.namespace)
self.params.server = svc_response.spec.cluster_ip
except k8sclient.rest.ApiException as e:
print("Got exception: %s\n while creating a service for nfs-server", e)
return False