forked from LaconicNetwork/kompose
Propagate dots into valid service names (#1063)
* normalize '.' (dot) to '-' (dash) in service names * added warning about the dot character replacements in service names * fix gofmt compliance * also normalize container names (need lowercase) * splitted normalization for volumes and service names into different functions (it conflicted with './' volumes replacement) * changed volume normalization to use the new own normalization function * changed container normalization to use its new own normalization function * updated as per discussed in PR #1063 review
This commit is contained in:
committed by
Hang Yan
parent
a0cc04499b
commit
424f1a9a2c
+1
-1
@@ -429,7 +429,7 @@ services:
|
||||
|
||||
If the Docker Compose file has a volume specified for a service, the Deployment (Kubernetes) or DeploymentConfig (OpenShift) strategy is changed to "Recreate" instead of "RollingUpdate" (default). This is done to avoid multiple instances of a service from accessing a volume at the same time.
|
||||
|
||||
If the Docker Compose file has service name with `_` in it (eg.`web_service`), then it will be replaced by `-` and the service name will be renamed accordingly (eg.`web-service`). Kompose does this because "Kubernetes" doesn't allow `_` in object name.
|
||||
If the Docker Compose file has service name with `_` or `.` in it (eg.`web_service` or `web.service`), then it will be replaced by `-` and the service name will be renamed accordingly (eg.`web-service`). Kompose does this because "Kubernetes" doesn't allow `_` in object name.
|
||||
|
||||
Please note that changing service name might break some `docker-compose` files.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user