Skip to content

Commit

Permalink
sync-controller: a proper fix for permission for stdout stderr pipe f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
absorbb committed Dec 17, 2024
1 parent 6981f07 commit ae147b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync-controller/job_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ func (j *JobRunner) createPod(podName string, task TaskDescriptor, configuration
}
initCommand := []string{"sh", "-c", "mkfifo /pipes/stdout; mkfifo /pipes/stderr; chmod 777 /pipes/*; echo \"OK\""}
if !configuration.IsEmpty() {
initCommand = []string{"sh", "-c", "mkfifo /pipes/stdout; mkfifo /pipes/stderr; cp /configmap/* /config/; gunzip /config/*.gz"}
initCommand = []string{"sh", "-c", "mkfifo /pipes/stdout; mkfifo /pipes/stderr; chmod 777 /pipes/*; cp /configmap/* /config/; gunzip /config/*.gz; echo \"OK\""}
items := []v1.KeyToPath{}
for _, k := range configuration.Keys() {
items = append(items, v1.KeyToPath{
Expand Down

0 comments on commit ae147b7

Please sign in to comment.