fix(same-pod): environnment and volume mapping
We must ensure that the volume is owned by the container. The environmment configMap wasn't bound.
This commit is contained in:
@@ -87,6 +87,7 @@ func Generate(project *types.Project) (*HelmChart, error) {
|
||||
if target, ok := deployments[samepod]; ok {
|
||||
target.AddContainer(*service)
|
||||
target.BindFrom(*service, deployments[service.Name])
|
||||
target.SetEnvFrom(*service, appName)
|
||||
delete(deployments, service.Name)
|
||||
} else {
|
||||
log.Printf("service %[1]s is declared as %[2]s, but %[2]s is not defined", service.Name, labels.LabelSamePod)
|
||||
|
Reference in New Issue
Block a user