mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
build-ui.sh: use kube::util::ensure-temp-dir instead of static path.
Using static paths for temporary files has been a security problem in the past. Use kube::util::ensure-temp-dir to create a safe temporary directory and place the temporary file there.
This commit is contained in:
parent
5d67222592
commit
abc6fe6dbb
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ if ! which go-bindata > /dev/null 2>&1 ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
readonly TMP_DATAFILE="/tmp/datafile.go"
|
||||
kube::util::ensure-temp-dir
|
||||
readonly TMP_DATAFILE="${KUBE_TEMP}/datafile.go"
|
||||
readonly SWAGGER_SRC="third_party/swagger-ui/..."
|
||||
readonly SWAGGER_PKG="swagger"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue