forked from LaconicNetwork/kompose
add warning that tells why the service is not created (#1326)
This commit is contained in:
1 parent
19f7d53aae
commit
fd3e79e990
1 file changed
+2
@@ -1176,6 +1176,8 @@ func (k *Kubernetes) Transform(komposeObject kobject.KomposeObject, opt kobject.
|
||||
if service.ServiceType == "Headless" {
|
||||
svc := k.CreateHeadlessService(name, service, objects)
|
||||
objects = append(objects, svc)
|
||||
} else {
|
||||
log.Warnf("Service %q won't be created because 'ports' is not specified", name)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user