Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #22

Closed
Closed

test #22

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/platform/local/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,11 @@ func (p *Platform) createProcessorConfig(createFunctionOptions *platform.CreateF
return "", errors.Wrap(err, "Failed to write processor config")
}

// make it readable by other users, in case user use different USER directive on function image
if err := os.Chmod(processorConfigFile.Name(), 0644); err != nil {
return "", errors.Wrap(err, "Failed to change processor config file permission")
}

p.Logger.DebugWith("Wrote processor configuration", "path", processorConfigFile.Name())

// read the file once for logging
Expand Down