diff --git a/.github/workflows/deflake.yaml b/.github/workflows/deflake.yaml deleted file mode 100644 index 1fba63ef89d1..000000000000 --- a/.github/workflows/deflake.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Deflake -on: - schedule: - - cron: '0 12 * * *' - workflow_dispatch: -jobs: - deflake: - if: github.repository == 'aws/karpenter-provider-aws' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: ./.github/actions/install-deps - - name: Running tests 5 times to find flaky tests - id: run-deflake - run: make deflake - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - if: always() - name: Post commit status - run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \ - -d '{"state":"${{ steps.run-deflake.outcome }}","target_url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}","context":"Deflake Tests (cron)"}' diff --git a/Makefile b/Makefile index ad33b12e5422..437361eb8200 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -export K8S_VERSION ?= 1.27.x CLUSTER_NAME ?= $(shell kubectl config view --minify -o jsonpath='{.clusters[].name}' | rev | cut -d"/" -f1 | rev | cut -d"." -f1) ## Inject the app version into operator.Version @@ -25,15 +24,13 @@ HELM_OPTS ?= --set serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn=${K KARPENTER_NAMESPACE ?= kube-system KARPENTER_VERSION ?= $(shell git tag --sort=committerdate | tail -1) KO_DOCKER_REPO ?= ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/dev -GETTING_STARTED_SCRIPT_DIR = website/content/en/preview/getting-started/getting-started-with-karpenter/scripts # Common Directories MOD_DIRS = $(shell find . -path "./website" -prune -o -name go.mod -type f -print | xargs dirname) KARPENTER_CORE_DIR = $(shell go list -m -f '{{ .Dir }}' sigs.k8s.io/karpenter) -# TEST_SUITE enables you to select a specific test suite directory to run "make e2etests" or "make test" against +# TEST_SUITE enables you to select a specific test suite directory to run "make e2etests" against TEST_SUITE ?= "..." -TEST_TIMEOUT ?= "3h" help: ## Display help @awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) @@ -55,12 +52,21 @@ run: ## Run Karpenter controller binary against your local cluster go run ./cmd/controller/main.go test: ## Run tests - go test -v ./pkg/$(shell echo $(TEST_SUITE) | tr A-Z a-z)/... \ + go test -v ./pkg/... \ -cover -coverprofile=coverage.out -outputdir=. -coverpkg=./... \ --ginkgo.focus="${FOCUS}" \ --ginkgo.randomize-all \ --ginkgo.vv +deflake: ## Run randomized, racing tests until the test fails to catch flakes + ginkgo \ + --race \ + --focus="${FOCUS}" \ + --randomize-all \ + --until-it-fails \ + -v \ + ./pkg/... + e2etests: ## Run the e2e suite against your local cluster cd test && CLUSTER_ENDPOINT=${CLUSTER_ENDPOINT} \ CLUSTER_NAME=${CLUSTER_NAME} \ @@ -68,18 +74,18 @@ e2etests: ## Run the e2e suite against your local cluster go test \ -p 1 \ -count 1 \ - -timeout ${TEST_TIMEOUT} \ + -timeout 3h \ -v \ ./suites/$(shell echo $(TEST_SUITE) | tr A-Z a-z)/... \ --ginkgo.focus="${FOCUS}" \ - --ginkgo.timeout=${TEST_TIMEOUT} \ + --ginkgo.timeout=3h \ --ginkgo.grace-period=3m \ --ginkgo.vv e2etests-deflake: ## Run the e2e suite against your local cluster cd test && CLUSTER_NAME=${CLUSTER_NAME} ginkgo \ --focus="${FOCUS}" \ - --timeout=${TEST_TIMEOUT} \ + --timeout=3h \ --grace-period=3m \ --until-it-fails \ --vv \ @@ -88,18 +94,6 @@ e2etests-deflake: ## Run the e2e suite against your local cluster benchmark: go test -tags=test_performance -run=NoTests -bench=. ./... -deflake: ## Run randomized, racing, code-covered tests to deflake failures - for i in $(shell seq 1 5); do make test || exit 1; done - -deflake-until-it-fails: ## Run randomized, racing tests until the test fails to catch flakes - ginkgo \ - --race \ - --focus="${FOCUS}" \ - --randomize-all \ - --until-it-fails \ - -v \ - ./pkg/... - coverage: go tool cover -html coverage.out -o coverage.html @@ -126,9 +120,6 @@ vulncheck: ## Verify code vulnerabilities licenses: download ## Verifies dependency licenses ! go-licenses csv ./... | grep -v -e 'MIT' -e 'Apache-2.0' -e 'BSD-3-Clause' -e 'BSD-2-Clause' -e 'ISC' -e 'MPL-2.0' -setup: ## Sets up the IAM roles needed prior to deploying the karpenter-controller. This command only needs to be run once - CLUSTER_NAME=${CLUSTER_NAME} ./$(GETTING_STARTED_SCRIPT_DIR)/add-roles.sh $(KARPENTER_VERSION) - image: ## Build the Karpenter controller images using ko build $(eval CONTROLLER_IMG=$(shell $(WITH_GOFLAGS) KO_DOCKER_REPO="$(KO_DOCKER_REPO)" ko build --bare github.com/aws/karpenter-provider-aws/cmd/controller)) $(eval IMG_REPOSITORY=$(shell echo $(CONTROLLER_IMG) | cut -d "@" -f 1 | cut -d ":" -f 1)) @@ -194,7 +185,7 @@ update-karpenter: ## Update kubernetes-sigs/karpenter to latest go get -u sigs.k8s.io/karpenter@HEAD go mod tidy -.PHONY: help dev ci release test e2etests verify tidy download docgen codegen apply delete toolchain licenses vulncheck issues website nightly snapshot +.PHONY: help presubmit ci-test ci-non-test run test deflake e2etests e2etests-deflake benchmark coverage verify vulncheck licenses image apply install delete docgen codegen stable-release-pr snapshot release release-crd prepare-website toolchain issues website tidy download update-karpenter define newline diff --git a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh b/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh deleted file mode 100755 index 6d2332b06be2..000000000000 --- a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: add-monitoring.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step09-add-prometheus-grafana.sh - step10-add-grafana-port-forward.sh - step11-grafana-get-password.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh b/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh deleted file mode 100755 index 51f286de0c3c..000000000000 --- a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -declare -a steps=( - step01-config.sh - step12-add-provisioner.sh - step13-automatic-node-provisioning.sh - step14-automatic-node-termination.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-roles.sh b/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-roles.sh deleted file mode 100755 index cf0656f3db3d..000000000000 --- a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/add-roles.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: setup-roles.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) - -declare -a steps=( - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source "$SCRIPT_DIR/$step" -done diff --git a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/cleanup.sh b/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/cleanup.sh deleted file mode 100755 index 52851e7f975a..000000000000 --- a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/cleanup.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -declare -a steps=( - step01-config.sh - step16-cleanup.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/install.sh b/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/install.sh deleted file mode 100755 index e0ebfb32e511..000000000000 --- a/website/content/en/docs/getting-started/getting-started-with-karpenter/scripts/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: install.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step02-create-cluster.sh - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh - step08-apply-helm-chart.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh b/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh deleted file mode 100755 index 6d2332b06be2..000000000000 --- a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: add-monitoring.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step09-add-prometheus-grafana.sh - step10-add-grafana-port-forward.sh - step11-grafana-get-password.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh b/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh deleted file mode 100755 index 51f286de0c3c..000000000000 --- a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -declare -a steps=( - step01-config.sh - step12-add-provisioner.sh - step13-automatic-node-provisioning.sh - step14-automatic-node-termination.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-roles.sh b/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-roles.sh deleted file mode 100755 index cf0656f3db3d..000000000000 --- a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/add-roles.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: setup-roles.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) - -declare -a steps=( - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source "$SCRIPT_DIR/$step" -done diff --git a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/cleanup.sh b/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/cleanup.sh deleted file mode 100755 index 52851e7f975a..000000000000 --- a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/cleanup.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -declare -a steps=( - step01-config.sh - step16-cleanup.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/install.sh b/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/install.sh deleted file mode 100755 index e0ebfb32e511..000000000000 --- a/website/content/en/preview/getting-started/getting-started-with-karpenter/scripts/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: install.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step02-create-cluster.sh - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh - step08-apply-helm-chart.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh b/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh deleted file mode 100755 index 6d2332b06be2..000000000000 --- a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: add-monitoring.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step09-add-prometheus-grafana.sh - step10-add-grafana-port-forward.sh - step11-grafana-get-password.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh b/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh deleted file mode 100755 index 51f286de0c3c..000000000000 --- a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -declare -a steps=( - step01-config.sh - step12-add-provisioner.sh - step13-automatic-node-provisioning.sh - step14-automatic-node-termination.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-roles.sh b/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-roles.sh deleted file mode 100755 index cf0656f3db3d..000000000000 --- a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/add-roles.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: setup-roles.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) - -declare -a steps=( - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source "$SCRIPT_DIR/$step" -done diff --git a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/cleanup.sh b/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/cleanup.sh deleted file mode 100755 index 52851e7f975a..000000000000 --- a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/cleanup.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -declare -a steps=( - step01-config.sh - step16-cleanup.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/install.sh b/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/install.sh deleted file mode 100755 index e0ebfb32e511..000000000000 --- a/website/content/en/v0.31/getting-started/getting-started-with-karpenter/scripts/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: install.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step02-create-cluster.sh - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh - step08-apply-helm-chart.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh b/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh deleted file mode 100755 index 6d2332b06be2..000000000000 --- a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: add-monitoring.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step09-add-prometheus-grafana.sh - step10-add-grafana-port-forward.sh - step11-grafana-get-password.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh b/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh deleted file mode 100755 index 51f286de0c3c..000000000000 --- a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -declare -a steps=( - step01-config.sh - step12-add-provisioner.sh - step13-automatic-node-provisioning.sh - step14-automatic-node-termination.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-roles.sh b/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-roles.sh deleted file mode 100755 index cf0656f3db3d..000000000000 --- a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/add-roles.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: setup-roles.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) - -declare -a steps=( - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source "$SCRIPT_DIR/$step" -done diff --git a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/cleanup.sh b/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/cleanup.sh deleted file mode 100755 index 52851e7f975a..000000000000 --- a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/cleanup.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -declare -a steps=( - step01-config.sh - step16-cleanup.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/install.sh b/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/install.sh deleted file mode 100755 index e0ebfb32e511..000000000000 --- a/website/content/en/v0.32/getting-started/getting-started-with-karpenter/scripts/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: install.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step02-create-cluster.sh - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh - step08-apply-helm-chart.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh deleted file mode 100755 index 6d2332b06be2..000000000000 --- a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: add-monitoring.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step09-add-prometheus-grafana.sh - step10-add-grafana-port-forward.sh - step11-grafana-get-password.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh deleted file mode 100755 index 51f286de0c3c..000000000000 --- a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -declare -a steps=( - step01-config.sh - step12-add-provisioner.sh - step13-automatic-node-provisioning.sh - step14-automatic-node-termination.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-roles.sh b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-roles.sh deleted file mode 100755 index cf0656f3db3d..000000000000 --- a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/add-roles.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: setup-roles.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) - -declare -a steps=( - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source "$SCRIPT_DIR/$step" -done diff --git a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/cleanup.sh b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/cleanup.sh deleted file mode 100755 index 52851e7f975a..000000000000 --- a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/cleanup.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -declare -a steps=( - step01-config.sh - step16-cleanup.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/install.sh b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/install.sh deleted file mode 100755 index e0ebfb32e511..000000000000 --- a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/scripts/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: install.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step02-create-cluster.sh - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh - step08-apply-helm-chart.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh b/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh deleted file mode 100755 index 6d2332b06be2..000000000000 --- a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-monitoring.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: add-monitoring.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step09-add-prometheus-grafana.sh - step10-add-grafana-port-forward.sh - step11-grafana-get-password.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh b/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh deleted file mode 100755 index 51f286de0c3c..000000000000 --- a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-provisioner.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -declare -a steps=( - step01-config.sh - step12-add-provisioner.sh - step13-automatic-node-provisioning.sh - step14-automatic-node-termination.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-roles.sh b/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-roles.sh deleted file mode 100755 index cf0656f3db3d..000000000000 --- a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/add-roles.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: setup-roles.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) - -declare -a steps=( - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source "$SCRIPT_DIR/$step" -done diff --git a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/cleanup.sh b/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/cleanup.sh deleted file mode 100755 index 52851e7f975a..000000000000 --- a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/cleanup.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -declare -a steps=( - step01-config.sh - step16-cleanup.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done diff --git a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/install.sh b/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/install.sh deleted file mode 100755 index e0ebfb32e511..000000000000 --- a/website/content/en/v0.34/getting-started/getting-started-with-karpenter/scripts/install.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -set -euo pipefail #fail if one step fails - -if [ "$#" -ne 1 ] -then - echo "Missing required Karpenter version. Usage: install.sh v0.0.1" - exit 1 -fi - -export KARPENTER_VERSION=$1 - -declare -a steps=( - step01-config.sh - step02-create-cluster.sh - step03-iam-cloud-formation.sh - step04-grant-access.sh - step05-controller-iam.sh - step06-add-spot-role.sh - step08-apply-helm-chart.sh -) - -for step in "${steps[@]}"; do - echo "$step" - source $step -done