forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubernetes: the addon-manager now consists of two files sourcing each…
…other
- Loading branch information
Johan Thomsen
committed
Feb 19, 2021
1 parent
e839f26
commit 4a821aa
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
pkgs/applications/networking/cluster/kubernetes/fixup-addonmanager-lib-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/cluster/addons/addon-manager/kube-addons-main.sh b/cluster/addons/addon-manager/kube-addons-main.sh | ||
index 849973470d1..e4fef30eaea 100755 | ||
--- a/cluster/addons/addon-manager/kube-addons-main.sh | ||
+++ b/cluster/addons/addon-manager/kube-addons-main.sh | ||
@@ -17,17 +17,7 @@ | ||
# Import required functions. The addon manager is installed to /opt in | ||
# production use (see the Dockerfile) | ||
# Disabling shellcheck following files as the full path would be required. | ||
-if [ -f "kube-addons.sh" ]; then | ||
- # shellcheck disable=SC1091 | ||
- source "kube-addons.sh" | ||
-elif [ -f "/opt/kube-addons.sh" ]; then | ||
- # shellcheck disable=SC1091 | ||
- source "/opt/kube-addons.sh" | ||
-else | ||
- # If the required source is missing, we have to fail. | ||
- log ERR "== Could not find kube-addons.sh (not in working directory or /opt) at $(date -Is) ==" | ||
- exit 1 | ||
-fi | ||
+source "@out@/bin/kube-addons-lib.sh" | ||
|
||
# The business logic for whether a given object should be created | ||
# was already enforced by salt, and /etc/kubernetes/addons is the |