This commit is contained in:
Ben Toogood 2020-02-06 11:28:34 +00:00
parent e46278a766
commit 48b9f3f5e9
2 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,8 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service {
if len(s.Source) > 0 { if len(s.Source) > 0 {
for i := range kdeploy.Spec.Template.PodSpec.Containers { for i := range kdeploy.Spec.Template.PodSpec.Containers {
kdeploy.Spec.Template.PodSpec.Containers[i].Image = s.Source kdeploy.Spec.Template.PodSpec.Containers[i].Image = s.Source
kdeploy.Spec.Template.PodSpec.Containers[i].Command = []string{"./entrypoint.sh", name} kdeploy.Spec.Template.PodSpec.Containers[i].Command = []string{}
kdeploy.Spec.Template.PodSpec.Containers[i].Arg = []string{name}
} }
} }

View File

@ -20,6 +20,7 @@ type Container struct {
Image string `json:"image"` Image string `json:"image"`
Env []EnvVar `json:"env,omitempty"` Env []EnvVar `json:"env,omitempty"`
Command []string `json:"command,omitempty"` Command []string `json:"command,omitempty"`
Arg []string `json:"arg,omitempty"`
Ports []ContainerPort `json:"ports,omitempty"` Ports []ContainerPort `json:"ports,omitempty"`
} }