-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(local-dev): add node affinity on the patches for local dev with…
… EC (#5002) * chore(local-dev): add node0 affinity on the patches for local dev with EC * chore: use EC_NODE for dev script * chore: use gomplate and make node affinity conditional * chore: down* targets don't need gomplate * chore: missing templates * chore: create dev-deps script * chore: also install jq and update README.md * chore: update README.md
- Loading branch information
Showing
7 changed files
with
80 additions
and
11 deletions.
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
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
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
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
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
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
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,32 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function is_not_in_path() { | ||
if ! command -v "$1" > /dev/null; then | ||
echo "$1 is not installed" | ||
return 0 | ||
fi | ||
return 1 | ||
} | ||
|
||
function check_gomplate() { | ||
if is_not_in_path gomplate; then | ||
echo "gomplate is not installed. Installing it now." | ||
go install github.com/hairyhenderson/gomplate/v4/cmd/gomplate@latest | ||
fi | ||
} | ||
|
||
function check_jq() { | ||
if is_not_in_path jq; then | ||
echo "jq is not installed. Attempting to install it using brew." | ||
if is_not_in_path brew; then | ||
echo "brew is not installed. Please install jq manually." | ||
return | ||
fi | ||
brew install jq | ||
fi | ||
} | ||
|
||
check_gomplate | ||
check_jq |