Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d7b069fb
Commit
d7b069fb
authored
Apr 06, 2016
by
Saad Ali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23793 from pmorie/configmap-nonroot
Make ConfigMap volume readable as non-root
parents
c9b6e89a
e838ff28
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
atomic_writer.go
pkg/volume/util/atomic_writer.go
+9
-1
configmap.go
test/e2e/configmap.go
+0
-0
No files found.
pkg/volume/util/atomic_writer.go
View file @
d7b069fb
...
@@ -341,6 +341,15 @@ func (w *AtomicWriter) newTimestampDir() (string, error) {
...
@@ -341,6 +341,15 @@ func (w *AtomicWriter) newTimestampDir() (string, error) {
return
""
,
err
return
""
,
err
}
}
// 0755 permissions are needed to allow 'group' and 'other' to recurse the
// directory tree. do a chmod here to ensure that permissions are set correctly
// regardless of the process' umask.
err
=
os
.
Chmod
(
tsDir
,
0755
)
if
err
!=
nil
{
glog
.
Errorf
(
"%s: unable to set mode on new temp directory: %v"
,
w
.
logContext
,
err
)
return
""
,
err
}
return
tsDir
,
nil
return
tsDir
,
nil
}
}
...
@@ -408,7 +417,6 @@ func (w *AtomicWriter) createUserVisibleFiles(payload map[string][]byte) error {
...
@@ -408,7 +417,6 @@ func (w *AtomicWriter) createUserVisibleFiles(payload map[string][]byte) error {
}
}
}
}
}
}
return
nil
return
nil
}
}
...
...
test/e2e/configmap.go
View file @
d7b069fb
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment