Create cache directory and set ownership/permissions for kubeconfig
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 44s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 44s
This commit is contained in:
parent
b6f7d1e1b7
commit
47fe90296e
1 changed files with 3 additions and 0 deletions
|
|
@ -104,6 +104,9 @@ install_kubeconfig_for_user() {
|
|||
local kube_config="${kube_dir}/config"
|
||||
|
||||
mkdir -p "${kube_dir}"
|
||||
mkdir -p "${kube_dir}/cache"
|
||||
chown -R "${username}:${username}" "${kube_dir}"
|
||||
chmod 0700 "${kube_dir}"
|
||||
install -m 0600 -o "${username}" -g "${username}" "${source_kubeconfig}" "${kube_config}"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue