white-balloon-205
02/24/2019, 4:44 PMwhite-balloon-205
02/24/2019, 4:44 PMOptional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
little-river-49422
02/24/2019, 4:44 PMwhite-balloon-205
02/24/2019, 4:45 PMlittle-river-49422
02/24/2019, 4:45 PMwhite-balloon-205
02/24/2019, 4:47 PMlittle-river-49422
02/24/2019, 4:47 PMlittle-river-49422
02/24/2019, 4:47 PMlittle-river-49422
02/24/2019, 4:47 PMlittle-river-49422
02/24/2019, 4:47 PMwhite-balloon-205
02/24/2019, 4:48 PMwhite-balloon-205
02/24/2019, 4:50 PMwhite-balloon-205
02/24/2019, 4:50 PMNote that the JSON spec doesn’t support octal notation, so use the value 256 for 0400 permissions. If you use yaml instead of json for the pod, you can use octal notation to specify permissions in a more natural way.
little-river-49422
02/24/2019, 4:50 PMlittle-river-49422
02/24/2019, 4:51 PMwhite-balloon-205
02/24/2019, 4:52 PMlittle-river-49422
02/24/2019, 4:53 PMlittle-river-49422
02/24/2019, 4:53 PMwhite-balloon-205
02/24/2019, 4:56 PM400
in yaml either. what you can presumably pass is 0o400
.
I assume in Python you can pass 0400
as well?little-river-49422
02/24/2019, 4:56 PMlittle-river-49422
02/24/2019, 4:57 PMwhite-balloon-205
02/24/2019, 4:57 PMlittle-river-49422
02/24/2019, 5:03 PMlittle-river-49422
02/24/2019, 5:04 PMhelpful-vegetable-35581
02/24/2019, 5:08 PMwhite-balloon-205
02/24/2019, 5:08 PM0o400
and 0400
as octal literals.
I believe python support 0400
for octal literals. (Though there is a proposal to deprecate this and require 0o400
?)
I believe JavaScript now only supports 0o400
for octal literals (the 0400
form was recently deprecated).
Json does not support octal literals.little-river-49422
02/24/2019, 5:09 PMwhite-balloon-205
02/24/2019, 5:10 PM0o400
is supported in YAML/Python/JavaScript.little-river-49422
02/24/2019, 5:11 PMlittle-river-49422
02/24/2019, 5:11 PMlittle-river-49422
02/24/2019, 5:11 PM