Unverified Commit 4cbeddd7 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #70094 from mwwolters/prepare-log-file-args

Changed prepare-log-file to take args for setting uid/gid for log files.
parents 3abb9f0a c9d34073
...@@ -1273,10 +1273,12 @@ EOF ...@@ -1273,10 +1273,12 @@ EOF
# Create the log file and set its properties. # Create the log file and set its properties.
# #
# $1 is the file to create. # $1 is the file to create.
# $2: the log owner uid to set for the log file.
# $3: the log owner gid to set for the log file.
function prepare-log-file { function prepare-log-file {
touch $1 touch $1
chmod 644 $1 chmod 644 $1
chown "${LOG_OWNER_USER:-root}":"${LOG_OWNER_GROUP:-root}" $1 chown "${2:-${LOG_OWNER_USER:-root}}":"${3:-${LOG_OWNER_GROUP:-root}}" $1
} }
# Prepares parameters for kube-proxy manifest. # Prepares parameters for kube-proxy manifest.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment