Debugging
This commit is contained in:
parent
f8e696bd30
commit
c7d922fac2
@ -34,15 +34,13 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service {
|
|||||||
kservice := client.NewService(name, version, c.Type)
|
kservice := client.NewService(name, version, c.Type)
|
||||||
kdeploy := client.NewDeployment(name, version, c.Type)
|
kdeploy := client.NewDeployment(name, version, c.Type)
|
||||||
|
|
||||||
log.Debugf("newService Source: %v", s.Source)
|
|
||||||
if len(s.Source) > 0 {
|
if len(s.Source) > 0 {
|
||||||
for _, c := range kdeploy.Spec.Template.PodSpec.Containers {
|
for _, c := range kdeploy.Spec.Template.PodSpec.Containers {
|
||||||
c.Image = s.Source
|
c.Image = s.Source
|
||||||
c.Command = []string{name}
|
c.Command = []string{name}
|
||||||
|
log.Debugf("Setting name to %v", c.Command)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Debugf("kdeploy: %v", kdeploy)
|
|
||||||
log.Debugf("options: %v", c)
|
|
||||||
|
|
||||||
// attach our values to the deployment; name, version, source
|
// attach our values to the deployment; name, version, source
|
||||||
kdeploy.Metadata.Annotations["name"] = s.Name
|
kdeploy.Metadata.Annotations["name"] = s.Name
|
||||||
@ -72,6 +70,7 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// specify the command to exec
|
// specify the command to exec
|
||||||
|
log.Debug("c.Command: ", c.Command)
|
||||||
if len(c.Command) > 0 {
|
if len(c.Command) > 0 {
|
||||||
kdeploy.Spec.Template.PodSpec.Containers[0].Command = c.Command
|
kdeploy.Spec.Template.PodSpec.Containers[0].Command = c.Command
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user