mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Set umask 0022 when building
Some binaries now run as non-root (kube-scheduler). When umask is 0027, for example, the container image we build has the binary 0750, which is not executable by the non-root UID.
This commit is contained in:
parent
68cbb35ebc
commit
dff449ee9e
@ -523,6 +523,10 @@ kube::golang::setup_env() {
|
||||
|
||||
# This seems to matter to some tools
|
||||
export GO15VENDOREXPERIMENT=1
|
||||
|
||||
# This is for sanity. Without it, user umasks leak through into release
|
||||
# artifacts.
|
||||
umask 0022
|
||||
}
|
||||
|
||||
# This will take binaries from $GOPATH/bin and copy them to the appropriate
|
||||
|
Loading…
Reference in New Issue
Block a user