generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 277
update dev guide and resources #660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
320e521
do not hardcode namespace in helm deployment
cjerad 5295cc2
add name length advisory
cjerad fa92588
update cluster version to 1.22
cjerad b0ac04e
update wording of alternate instructions
cjerad 28b7f02
add tools list to guide
cjerad 052551d
highlight useful make commands in dev guide
cjerad ce1b1fb
add optional step to display created resources
cjerad 4756b93
add section for creating an IAM OIDC provider
cjerad 96f4ca5
download pre-built ko
cjerad 630f83c
add terminators to 'all' category
cjerad 977853a
add namespace to terminator template
cjerad 7e6c6fa
do not hardcode namespace in helm uninstall
cjerad bc59ed2
download-ko.sh creates destination directory
cjerad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -58,7 +58,7 @@ $(GINKGO): | |
| GOBIN="$(BIN_DIR)" go install github.com/onsi/ginkgo/v2/[email protected] | ||
|
|
||
| $(KO): | ||
| GOBIN="$(BIN_DIR)" go install github.com/google/[email protected] | ||
| @./scripts/download-ko.sh "$(BIN_DIR)" | ||
|
|
||
| $(SETUP_ENVTEST): | ||
| GOBIN="$(BIN_DIR)" go install sigs.k8s.io/controller-runtime/tools/[email protected] | ||
|
|
@@ -105,7 +105,9 @@ $(KODATA): | |
|
|
||
| .PHONY: apply | ||
| apply: $(KO) $(KODATA) ## Deploy the controller into the current kubernetes cluster. | ||
| helm upgrade --install dev charts/aws-node-termination-handler-2 --namespace nthv2 --create-namespace \ | ||
| helm upgrade --install dev charts/aws-node-termination-handler-2 \ | ||
| --namespace ${CLUSTER_NAMESPACE} \ | ||
| --create-namespace \ | ||
| $(HELM_BASE_OPTS) \ | ||
| $(HELM_OPTS) \ | ||
| --set controller.image=$(shell $(KO) publish -B github.com/aws/aws-node-termination-handler/cmd/controller) \ | ||
|
|
@@ -114,4 +116,4 @@ apply: $(KO) $(KODATA) ## Deploy the controller into the current kubernetes clus | |
|
|
||
| .PHONY: delete | ||
| delete: ## Delete controller from current kubernetes cluster. | ||
| helm uninstall dev --namespace nthv2 | ||
| helm uninstall dev --namespace ${CLUSTER_NAMESPACE} | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,58 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| usage=$(cat << EOM | ||
| usage: $(basename "$0") -h | DIR_PATH | ||
|
|
||
| Download the ko binary to DIR_PATH. | ||
|
|
||
| Arguments: | ||
| -h Print usage message then exit. | ||
|
|
||
| EOM | ||
| ) | ||
|
|
||
| while getopts "h" opt; do | ||
| case $opt in | ||
| h ) echo "${usage}" | ||
| exit 0 | ||
| ;; | ||
| \? ) echo "${usage}" 1>&2 | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| done | ||
|
|
||
| dir_path="$1" | ||
|
|
||
| if [[ -z "${dir_path}" ]]; then | ||
| echo "error: missing directory path" 1>&2 | ||
| echo 1>&2 | ||
| echo "${usage}" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| if ! which wget >/dev/null ; then | ||
| echo "error: wget not installed" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| version="0.11.2" | ||
| os="$(go env GOHOSTOS)" | ||
| arch="$(go env GOHOSTARCH)" | ||
|
|
||
| if [[ "${arch}" == "amd64" ]]; then | ||
| arch="x86_64" | ||
| elif [[ "${arch}" == "arm" ]]; then | ||
| arch="arm64" | ||
| elif [[ "${arch}" == "386" ]]; then | ||
| arch="i386" | ||
| fi | ||
|
|
||
| echo "Downloading github.com/google/ko@v${version} ..." | ||
|
|
||
| mkdir -p "${dir_path}" | ||
| cd "${dir_path}" | ||
| wget https://github.com/google/ko/releases/download/v${version}/ko_${version}_${os}_${arch}.tar.gz -O - | \ | ||
| tar xzf - ko |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.