Properly separate args from cmd in git controller
This fixes issues with newer Tektoncd Pipeline versions in combination
with
@@ -416,7 +416,8 @@ func (h *handler) OnChange(gitrepo *fleet.GitRepo, status fleet.GitRepoStatus) (
Name: "fleet",
Image: config.Get().AgentImage,
ImagePullPolicy: corev1.PullPolicy(config.Get().AgentImagePullPolicy),
- Command: append(args, paths...),
+ Command: []string{"log.sh"},
+ Args: append(args, paths...),
WorkingDir: "/workspace/source",
VolumeMounts: volumeMounts,
Env: envs,
@@ -580,7 +581,6 @@ func volumes(gitrepo *fleet.GitRepo, configMap *corev1.ConfigMap) ([]corev1.Volu
func argsAndEnvs(gitrepo *fleet.GitRepo) ([]string, []corev1.EnvVar) {
args := []string{
- "log.sh",
"fleet",
"apply",
"--targets-file=/run/config/targets.yaml",
