GetHostName return fully qualified domain name for read write service
( ctx context.Context, crudClient client.Client, namespace, clusterName string, )
| 79 | |
| 80 | // GetHostName return fully qualified domain name for read write service |
| 81 | func GetHostName( |
| 82 | ctx context.Context, |
| 83 | crudClient client.Client, |
| 84 | namespace, clusterName string, |
| 85 | ) (string, error) { |
| 86 | rwService, err := getRwServiceObject(ctx, crudClient, namespace, clusterName) |
| 87 | if err != nil { |
| 88 | return "", err |
| 89 | } |
| 90 | host := CreateServiceFQDN(namespace, rwService.GetName()) |
| 91 | return host, nil |
| 92 | } |
no test coverage detected