Fix
This commit is contained in:
parent
e46278a766
commit
48b9f3f5e9
@ -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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user