Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aws/karpenter-provider-aws
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.2
Choose a base ref
...
head repository: aws/karpenter-provider-aws
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.3
Choose a head ref
  • 11 commits
  • 95 files changed
  • 7 contributors

Commits on Sep 21, 2022

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    kamilmysliwiec Kamil Mysliwiec
    Copy the full SHA
    81453e0 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    kamilmysliwiec Kamil Mysliwiec
    Copy the full SHA
    0d52f87 View commit details

Commits on Sep 22, 2022

  1. Copy the full SHA
    c9970a2 View commit details
  2. Copy the full SHA
    fe32847 View commit details
  3. Copy the full SHA
    3f4e1bb View commit details

Commits on Sep 23, 2022

  1. Copy the full SHA
    227850a View commit details
  2. Copy the full SHA
    c43ce8c View commit details
  3. Copy the full SHA
    8fcc4d8 View commit details
  4. chore: Update data from AWS APIs (#2549)

    Co-authored-by: APICodeGen <APICodeGen@users.noreply.github.com>
    github-actions[bot] and APICodeGen authored Sep 23, 2022
    Copy the full SHA
    f0a1a4f View commit details
  5. Copy the full SHA
    5d4ae35 View commit details

Commits on Sep 27, 2022

  1. release: v0.16.3 (#2559)

    njtran authored Sep 27, 2022
    Copy the full SHA
    ce23574 View commit details
Showing with 20,889 additions and 167 deletions.
  1. +67 −0 .github/workflows/api-code-gen.yml
  2. +6 −7 Makefile
  3. +84 −63 charts/index.yaml
  4. BIN charts/karpenter-0.16.3.tgz
  5. +2 −2 charts/karpenter/Chart.yaml
  6. +6 −6 charts/karpenter/README.md
  7. +2 −2 charts/karpenter/values.yaml
  8. +63 −0 hack/api-code-gen.sh
  9. +2 −2 pkg/cloudprovider/aws/zz_generated.pricing.go
  10. +1 −1 pkg/controllers/provisioning/scheduling/preferences.go
  11. +28 −0 pkg/controllers/provisioning/scheduling/suite_test.go
  12. +56 −30 pkg/test/expectations/expectations.go
  13. +39 −34 test/pkg/environment/expectations.go
  14. +1 −0 test/suites/common/setup.yaml
  15. +13 −1 test/suites/common/suite.yaml
  16. +3 −0 test/suites/common/upgrade-crds.yaml
  17. +15 −1 test/suites/upgrade/pipeline.yaml
  18. +4 −4 website/config.yaml
  19. +3 −3 website/content/en/preview/AWS/provisioning.md
  20. +3 −4 website/content/en/preview/tasks/configuration.md
  21. +3 −3 website/content/en/v0.16.1/AWS/provisioning.md
  22. +3 −3 website/content/en/v0.16.2/AWS/provisioning.md
  23. +11 −0 website/content/en/v0.16.3/AWS/_index.md
  24. +12,620 −0 website/content/en/v0.16.3/AWS/instance-types.md
  25. +241 −0 website/content/en/v0.16.3/AWS/launch-templates.md
  26. +360 −0 website/content/en/v0.16.3/AWS/provisioning.md
  27. +209 −0 website/content/en/v0.16.3/AWS/user-data.md
  28. +40 −0 website/content/en/v0.16.3/_index.md
  29. +166 −0 website/content/en/v0.16.3/concepts/_index.md
  30. +7 −0 website/content/en/v0.16.3/contributing/_index.md
  31. +85 −0 website/content/en/v0.16.3/contributing/design-guide.md
  32. +153 −0 website/content/en/v0.16.3/contributing/development-guide.md
  33. +13 −0 website/content/en/v0.16.3/contributing/working-group.md
  34. +199 −0 website/content/en/v0.16.3/faq.md
  35. +11 −0 website/content/en/v0.16.3/getting-started/_index.md
  36. +199 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/_index.md
  37. +66 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/cloudformation.yaml
  38. +27 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/grafana-values.yaml
  39. +1,440 −0 .../content/en/v0.16.3/getting-started/getting-started-with-eksctl/karpenter-capacity-dashboard.json
  40. +330 −0 ...tent/en/v0.16.3/getting-started/getting-started-with-eksctl/karpenter-controllers-allocation.json
  41. +446 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/karpenter-controllers.json
  42. +573 −0 ...ntent/en/v0.16.3/getting-started/getting-started-with-eksctl/karpenter-performance-dashboard.json
  43. +14 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/prometheus-values.yaml
  44. +22 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/add-monitoring.sh
  45. +14 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/add-provisioner.sh
  46. +23 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/add-roles.sh
  47. +11 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/cleanup.sh
  48. +26 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/install.sh
  49. +3 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step01-config.sh
  50. +19 −0 ...t/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step02-create-cluster-fargate.sh
  51. +22 −0 ...e/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step02-create-cluster.sh
  52. +8 −0 ...tent/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step03-iam-cloud-formation.sh
  53. +6 −0 ...ite/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step04-grant-access.sh
  54. +8 −0 ...e/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step05-controller-iam.sh
  55. +3 −0 ...te/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step06-add-spot-role.sh
  56. +2 −0 ...ntent/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step07-install-helm-chart.sh
  57. +8 −0 ...content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step08-apply-helm-chart.sh
  58. +11 −0 ...t/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step09-add-prometheus-grafana.sh
  59. +1 −0 ...en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step10-add-grafana-port-forward.sh
  60. +1 −0 ...ent/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step11-grafana-get-password.sh
  61. +10 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step12-install-nth.sh
  62. +27 −0 .../content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step13-add-provisioner.sh
  63. +25 −0 ...v0.16.3/getting-started/getting-started-with-eksctl/scripts/step14-automatic-node-provisioning.sh
  64. +2 −0 ...e/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step15-deprovisioning.sh
  65. +1 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step16-delete-node.sh
  66. +10 −0 website/content/en/v0.16.3/getting-started/getting-started-with-eksctl/scripts/step17-cleanup.sh
  67. +163 −0 website/content/en/v0.16.3/getting-started/getting-started-with-kops/_index.md
  68. +484 −0 website/content/en/v0.16.3/getting-started/getting-started-with-terraform/_index.md
  69. +196 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/_index.md
  70. +15 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step01-node-iam.sh
  71. +11 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step02-node-policies.sh
  72. +6 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step03-instance-profile.sh
  73. +7 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step04-env.sh
  74. +66 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step05-controller-iam.sh
  75. +6 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step06-tag-subnets.sh
  76. +22 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step07-tag-security-groups.sh
  77. +1 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step08-edit-aws-auth.sh
  78. +7 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step09-generate-chart.sh
  79. +4 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step10-deploy.sh
  80. +12 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step11-create-provisioner.sh
  81. +1 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step12-scale-cas.sh
  82. +3 −0 website/content/en/v0.16.3/getting-started/migrating-from-cas/scripts/step13-scale-ng.sh
  83. +326 −0 website/content/en/v0.16.3/provisioner.md
  84. +7 −0 website/content/en/v0.16.3/tasks/_index.md
  85. +68 −0 website/content/en/v0.16.3/tasks/configuration.md
  86. +120 −0 website/content/en/v0.16.3/tasks/deprovisioning.md
  87. +79 −0 website/content/en/v0.16.3/tasks/metrics.md
  88. +82 −0 website/content/en/v0.16.3/tasks/pod-density.md
  89. +131 −0 website/content/en/v0.16.3/tasks/provisioning.md
  90. +529 −0 website/content/en/v0.16.3/tasks/scheduling.md
  91. +51 −0 website/content/en/v0.16.3/tasks/set-resource-limits.md
  92. +46 −0 website/content/en/v0.16.3/testing-guide.md
  93. +371 −0 website/content/en/v0.16.3/troubleshooting.md
  94. +197 −0 website/content/en/v0.16.3/upgrade-guide/_index.md
  95. +1 −1 website/static/_redirects
67 changes: 67 additions & 0 deletions .github/workflows/api-code-gen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: "APICodeGen"

on:
schedule:
- cron: '0 13 * * MON'

permissions:
id-token: write
pull-requests: write
contents: write

jobs:
api-code-gen:
if: github.repository == 'aws/karpenter'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sed -En 's/^go[[:space:]]+([[:digit:].]+)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/go/bin/
~/.kubebuilder/bin
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
- run: |
git config user.name "APICodeGen"
git config user.email "APICodeGen@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git config pull.rebase false
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::071440425669:role/Github
aws-region: us-east-1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: make api-code-gen
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: export APICodeGenUpdate=$((cat /tmp/api-code-gen-updates && echo "APICodeGenUpdate=true" >> $GITHUB_ENV) || echo "false")
- name: Create Pull Request
if: env.APICodeGenUpdate == 'true'
uses: actions/github-script@v6
with:
script: |
const { repo, owner } = context.repo;
const result = await github.rest.pulls.create({
title: 'chore: Update data from AWS APIs',
owner,
repo,
head: 'api-code-gen',
base: 'main',
body: [
'Updates auto generated files with data from the AWS APIs for pricing and VPC limits. Please remove the branch after merging.',
'This PR is generated by [APICodeGen](https://github.com/aws/karpenter/actions/workflows/api-code-gen.yml).'
].join('\n')
});
github.rest.issues.addLabels({
owner,
repo,
issue_number: result.data.number,
labels: ['aws', 'dependencies']
});
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export K8S_VERSION ?= 1.23.x
export KUBEBUILDER_ASSETS ?= ${HOME}/.kubebuilder/bin
export CLUSTER_NAME ?= $(shell kubectl config view --minify -o jsonpath='{.clusters[].name}' | rev | cut -d"/" -f1 | rev | cut -d"." -f1)
CLUSTER_NAME ?= $(shell kubectl config view --minify -o jsonpath='{.clusters[].name}' | rev | cut -d"/" -f1 | rev | cut -d"." -f1)

## Inject the app version into project.Version
LDFLAGS ?= -ldflags=-X=github.com/aws/karpenter/pkg/utils/project.Version=$(shell git describe --tags --always)
@@ -50,7 +50,7 @@ battletest: ## Run randomized, racing, code coveraged, tests

e2etests: ## Run the e2e suite against your local cluster
go clean -testcache
go test -p 1 -timeout 180m -v ./test/suites/... -run=${TEST_FILTER}
CLUSTER_NAME=${CLUSTER_NAME} go test -p 1 -timeout 180m -v ./test/suites/... -run=${TEST_FILTER}

benchmark:
go test -tags=test_performance -run=NoTests -bench=. ./...
@@ -79,7 +79,7 @@ licenses: ## 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
./$(GETTING_STARTED_SCRIPT_DIR)/add-roles.sh $(KARPENTER_VERSION)
CLUSTER_NAME=${CLUSTER_NAME} ./$(GETTING_STARTED_SCRIPT_DIR)/add-roles.sh $(KARPENTER_VERSION)

build: ## Build the Karpenter controller and webhook images using ko build
$(eval CONTROLLER_IMG=$(shell $(WITH_GOFLAGS) ko build -B github.com/aws/karpenter/cmd/controller))
@@ -112,11 +112,10 @@ docgen: ## Generate docs
go run hack/docs/instancetypes_gen_docs.go website/content/en/preview/AWS/instance-types.md
go run hack/docs/configuration_gen_docs.go website/content/en/preview/tasks/configuration.md

api-code-gen: ## Auto generate files based on AWS APIs response
$(WITH_GOFLAGS) ./hack/api-code-gen.sh

release-gen: docgen ## Generate any materials which should be updated prior to release
go run hack/code/prices_gen.go -- pkg/cloudprovider/aws/zz_generated.pricing.go
go run hack/code/vpc_limits_gen.go -- \
--url=https://raw.githubusercontent.com/aws/amazon-vpc-resource-controller-k8s/master/pkg/aws/vpc/limits.go \
--output=pkg/cloudprovider/aws/zz_generated.vpclimits.go
hack/boilerplate.sh
go mod tidy
go mod download
Loading