Skip to content

Commit

Permalink
pkg/internal/kubebuilder: use more lenient umask
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed Jun 26, 2020
1 parent 5fbdf87 commit 340a52f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/internal/kubebuilder/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
const (
createOrUpdate = os.O_WRONLY | os.O_CREATE | os.O_TRUNC

defaultDirectoryPermission os.FileMode = 0700
defaultFilePermission os.FileMode = 0600
defaultDirectoryPermission os.FileMode = 0755
defaultFilePermission os.FileMode = 0644
)

// FileSystem is an IO wrapper to create files
Expand Down
4 changes: 2 additions & 2 deletions pkg/plugin/v1/scaffolds/internal/templates/dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const dockerfileTemplate = `# Build the manager binary
FROM quay.io/joelanford/helm-operator:{{.BaseImageVersion}}
ENV HOME=/opt/helm
COPY --chown=65532 watches.yaml ${HOME}/watches.yaml
COPY --chown=65532 helm-charts ${HOME}/helm-charts
COPY watches.yaml ${HOME}/watches.yaml
COPY helm-charts ${HOME}/helm-charts
WORKDIR ${HOME}
`

0 comments on commit 340a52f

Please sign in to comment.