add warning that tells why the service is not created (#1326)

This commit is contained in:
namusyaka 2020-10-30 18:59:31 +09:00 committed by GitHub
parent 19f7d53aae
commit fd3e79e990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}