mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/kubernetes: don't delete the apitoken after its created
This was breaking the nixos-kubernetes-node-join script the token gets copied, and then immediately overridden with /dev/null when certmgr restarts.
This commit is contained in:
parent
ed8b568db3
commit
6a11b7a777
1 changed files with 2 additions and 1 deletions
|
@ -192,7 +192,8 @@ in
|
||||||
mkdir -p "$(dirname "${certmgrAPITokenPath}")"
|
mkdir -p "$(dirname "${certmgrAPITokenPath}")"
|
||||||
if [ -f "${cfsslAPITokenPath}" ]; then
|
if [ -f "${cfsslAPITokenPath}" ]; then
|
||||||
ln -fs "${cfsslAPITokenPath}" "${certmgrAPITokenPath}"
|
ln -fs "${cfsslAPITokenPath}" "${certmgrAPITokenPath}"
|
||||||
else
|
elif [ ! -f "${certmgrAPITokenPath}" ]; then
|
||||||
|
# Don't remove the token if it already exists
|
||||||
install -m 600 /dev/null "${certmgrAPITokenPath}"
|
install -m 600 /dev/null "${certmgrAPITokenPath}"
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue