diff --git a/Makefile b/Makefile index a24249e5da0c..c2c1768450d4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ RELEASE_REPO ?= public.ecr.aws/karpenter RELEASE_VERSION ?= $(shell git describe --tags --always) +RELEASE_PLATFORM ?= --platform=linux/amd64,linux/arm64 ## Inject the app version into project.Version LDFLAGS ?= "-ldflags=-X=github.com/aws/karpenter/pkg/utils/project.Version=$(RELEASE_VERSION)" @@ -69,16 +70,16 @@ codegen: ## Generate code. Must be run if changes are made to ./pkg/apis/... paths="./pkg/..." \ output:crd:artifacts:config=charts/karpenter/crds hack/boilerplate.sh - hack/check-helm-docs.sh publish: ## Generate release manifests and publish a versioned container image. @aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin $(RELEASE_REPO) - yq e -i ".controller.image = \"$$($(WITH_RELEASE_REPO) $(WITH_GOFLAGS) ko publish -B -t $(RELEASE_VERSION) --platform all ./cmd/controller)\"" charts/karpenter/values.yaml - yq e -i ".webhook.image = \"$$($(WITH_RELEASE_REPO) $(WITH_GOFLAGS) ko publish -B -t $(RELEASE_VERSION) --platform all ./cmd/webhook)\"" charts/karpenter/values.yaml + yq e -i ".controller.image = \"$$($(WITH_RELEASE_REPO) $(WITH_GOFLAGS) ko publish -B -t $(RELEASE_VERSION) $(RELEASE_PLATFORM) ./cmd/controller)\"" charts/karpenter/values.yaml + yq e -i ".webhook.image = \"$$($(WITH_RELEASE_REPO) $(WITH_GOFLAGS) ko publish -B -t $(RELEASE_VERSION) $(RELEASE_PLATFORM) ./cmd/webhook)\"" charts/karpenter/values.yaml yq e -i '.version = "$(subst v,,${RELEASE_VERSION})"' charts/karpenter/Chart.yaml helm: ## Generate Helm Chart cd charts;helm lint karpenter;helm package karpenter;helm repo index . + helm-docs website: ## Generate Docs Website cd website; npm install; git submodule update --init --recursive; hugo diff --git a/charts/index.yaml b/charts/index.yaml index 74d17c7a81a4..5fd9d1f70e40 100644 --- a/charts/index.yaml +++ b/charts/index.yaml @@ -2,7 +2,16 @@ apiVersion: v1 entries: karpenter: - apiVersion: v2 - created: "2021-11-26T12:25:26.750871-08:00" + created: "2021-12-03T11:32:03.243936-08:00" + description: A Helm chart for https://github.com/aws/karpenter/. + digest: 4247c15ec571f82025c80ceaa9354ce3ee3b209e4ba15a0ca3c36a1f90a859ec + name: karpenter + type: application + urls: + - karpenter-0.5.1.tgz + version: 0.5.1 + - apiVersion: v2 + created: "2021-12-03T11:32:03.243436-08:00" description: A Helm chart for https://github.com/aws/karpenter/. digest: 6d49a00dca8a6f8d7938e9508228af085d85a2746e2f742c895b954fe71292df name: karpenter @@ -11,7 +20,7 @@ entries: - karpenter-0.5.0.tgz version: 0.5.0 - apiVersion: v2 - created: "2021-11-26T12:25:26.750211-08:00" + created: "2021-12-03T11:32:03.243034-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 70c5bbea1016aa56da5227b7f5d7cf5700c4d38ff1814f8e28072c77d8a02c20 name: karpenter @@ -20,7 +29,7 @@ entries: - karpenter-0.4.3.tgz version: 0.4.3 - apiVersion: v2 - created: "2021-11-26T12:25:26.749424-08:00" + created: "2021-12-03T11:32:03.242586-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 558f26b8786384766407c5f86cff5180066c4fa68fe9e3cf7b782ec8564f04ff name: karpenter @@ -29,7 +38,7 @@ entries: - karpenter-0.4.2.tgz version: 0.4.2 - apiVersion: v2 - created: "2021-11-26T12:25:26.748785-08:00" + created: "2021-12-03T11:32:03.242199-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: ec4bcf2a7f279ad97b8749a7f1a8edd527a09f8c00614d911a773843bd44a58b name: karpenter @@ -38,7 +47,7 @@ entries: - karpenter-0.4.1.tgz version: 0.4.1 - apiVersion: v2 - created: "2021-11-26T12:25:26.748118-08:00" + created: "2021-12-03T11:32:03.241776-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: d4ea011979906ad22b2345d0eb4c941445e89c1b0561c6ae44bb71fdb641c161 name: karpenter @@ -47,7 +56,7 @@ entries: - karpenter-0.4.0.tgz version: 0.4.0 - apiVersion: v2 - created: "2021-11-26T12:25:26.747454-08:00" + created: "2021-12-03T11:32:03.241334-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: e8b9b3dd447d0ab48b66156bf88ae924121e5780d741ee18cc9a43a90a6f4290 name: karpenter @@ -56,7 +65,7 @@ entries: - karpenter-0.3.4.tgz version: 0.3.4 - apiVersion: v2 - created: "2021-11-26T12:25:26.746775-08:00" + created: "2021-12-03T11:32:03.240887-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 0d8bc4c74416aeb5233a0a65c4b4fd678b7c961f1dca10604e33337715b585ff name: karpenter @@ -65,7 +74,7 @@ entries: - karpenter-0.3.3.tgz version: 0.3.3 - apiVersion: v2 - created: "2021-11-26T12:25:26.746087-08:00" + created: "2021-12-03T11:32:03.239936-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: e24d1ca8364e92d161f8295b552ec101a72491c62926dd67779d4e4a7e6b5756 name: karpenter @@ -74,7 +83,7 @@ entries: - karpenter-0.3.2.tgz version: 0.3.2 - apiVersion: v2 - created: "2021-11-26T12:25:26.745364-08:00" + created: "2021-12-03T11:32:03.239473-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 86c9a22a01247b2ed564baa12b88ed2df6556c9e8cb6aca9b990212c1e809c45 name: karpenter @@ -83,7 +92,7 @@ entries: - karpenter-0.3.1.tgz version: 0.3.1 - apiVersion: v2 - created: "2021-11-26T12:25:26.744695-08:00" + created: "2021-12-03T11:32:03.23903-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 6d86156704c2c7eac8094dbe57458a3b1334eb38626b6da4ccd60c5cd65e0250 name: karpenter @@ -92,7 +101,7 @@ entries: - karpenter-0.3.0.tgz version: v0.3.0 - apiVersion: v2 - created: "2021-11-26T12:25:26.743953-08:00" + created: "2021-12-03T11:32:03.238595-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 5b19f5da4dd3d3e147f3e93bf168d1cd24106e12eb7fe44ad88850f73ceb82f0 name: karpenter @@ -101,7 +110,7 @@ entries: - karpenter-0.2.9.tgz version: v0.2.9 - apiVersion: v2 - created: "2021-11-26T12:25:26.742353-08:00" + created: "2021-12-03T11:32:03.238156-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 8b704acc1a9c018da774f62c6be824e7389bb482437d318902d01237e3cacfc5 name: karpenter @@ -110,7 +119,7 @@ entries: - karpenter-0.2.8.tgz version: v0.2.8 - apiVersion: v2 - created: "2021-11-26T12:25:26.74157-08:00" + created: "2021-12-03T11:32:03.237722-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 048ec496d46d8ab534bc8af6090699fedd2aaf45c8e1658636c7a44afdb6e898 name: karpenter @@ -119,7 +128,7 @@ entries: - karpenter-0.2.7.tgz version: v0.2.7 - apiVersion: v2 - created: "2021-11-26T12:25:26.740821-08:00" + created: "2021-12-03T11:32:03.237226-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 48008ba427baa5206bd59abe9e25005b0b6673f03e705f2149717bb89156873d name: karpenter @@ -128,7 +137,7 @@ entries: - karpenter-0.2.6.tgz version: v0.2.6 - apiVersion: v2 - created: "2021-11-26T12:25:26.739884-08:00" + created: "2021-12-03T11:32:03.236803-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 208d0c14d2cdbc8c387dc92a473b625f905e829486edd5fd007eb56c9f896682 name: karpenter @@ -137,7 +146,7 @@ entries: - karpenter-0.2.5.tgz version: v0.2.5 - apiVersion: v2 - created: "2021-11-26T12:25:26.739084-08:00" + created: "2021-12-03T11:32:03.236395-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: ed7d1d08bde38f41a6bc8a4bf93b4dd85a3b6e5f526e44324483eadc9faeea6d name: karpenter @@ -146,7 +155,7 @@ entries: - karpenter-0.2.4.tgz version: v0.2.4 - apiVersion: v2 - created: "2021-11-26T12:25:26.738124-08:00" + created: "2021-12-03T11:32:03.235996-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 902bd53be060893d4bfe3c0f57ae831448aa8790930d153666429ea5472d824b name: karpenter @@ -155,7 +164,7 @@ entries: - karpenter-0.2.3.tgz version: v0.2.3 - apiVersion: v2 - created: "2021-11-26T12:25:26.737654-08:00" + created: "2021-12-03T11:32:03.235686-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 90d075cbc08871ffb56b2e530fdf304b6af32c76670fcdd299af87d3810d4651 name: karpenter @@ -164,7 +173,7 @@ entries: - karpenter-0.2.2.tgz version: v0.2.2 - apiVersion: v2 - created: "2021-11-26T12:25:26.736993-08:00" + created: "2021-12-03T11:32:03.235389-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 87e161d40c65dc58a3963f17d70cc165a5bf46155f723e487486f57d209e50d1 name: karpenter @@ -173,7 +182,7 @@ entries: - karpenter-0.2.1.tgz version: v0.2.1 - apiVersion: v2 - created: "2021-11-26T12:25:26.736198-08:00" + created: "2021-12-03T11:32:03.235091-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 552bdc17f5625e4696bb7419284026f4291428877092ec5d984f486a2b812d6f name: karpenter @@ -182,7 +191,7 @@ entries: - karpenter-0.2.0.tgz version: v0.2.0 - apiVersion: v2 - created: "2021-11-26T12:25:26.73543-08:00" + created: "2021-12-03T11:32:03.23478-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 1a597c415201e61576b83ee6ec3e24b99281805b3be8141b0a344c6f014d4e15 name: karpenter @@ -191,7 +200,7 @@ entries: - karpenter-0.1.3.tgz version: v0.1.3 - apiVersion: v2 - created: "2021-11-26T12:25:26.734574-08:00" + created: "2021-12-03T11:32:03.234457-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 6a6753731aef19db2aae72b6bfc1535917053d87f706579e158cae98c23887b4 name: karpenter @@ -200,7 +209,7 @@ entries: - karpenter-0.1.2.tgz version: v0.1.2 - apiVersion: v2 - created: "2021-11-26T12:25:26.733623-08:00" + created: "2021-12-03T11:32:03.234032-08:00" description: A Helm chart for https://github.com/awslabs/karpenter/. digest: 39685c8cbe9a757ca48721aed08b49111fef18bc2a9f67d3223f19d0706f09f7 name: karpenter @@ -208,4 +217,4 @@ entries: urls: - karpenter-0.1.1.tgz version: v0.1.1 -generated: "2021-11-26T12:25:26.732055-08:00" +generated: "2021-12-03T11:32:03.232702-08:00" diff --git a/charts/karpenter-0.5.1.tgz b/charts/karpenter-0.5.1.tgz new file mode 100644 index 000000000000..dcfa0b9cd228 Binary files /dev/null and b/charts/karpenter-0.5.1.tgz differ diff --git a/charts/karpenter/Chart.yaml b/charts/karpenter/Chart.yaml index dcdd1cafac37..1014046167f7 100644 --- a/charts/karpenter/Chart.yaml +++ b/charts/karpenter/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: karpenter description: A Helm chart for https://github.com/aws/karpenter/. type: application -version: 0.5.0 +version: 0.5.1 diff --git a/charts/karpenter/README.md b/charts/karpenter/README.md index dfe08e28df49..e722ff2eb4b5 100644 --- a/charts/karpenter/README.md +++ b/charts/karpenter/README.md @@ -2,7 +2,7 @@ A Helm chart for https://github.com/aws/karpenter/. -![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ## Installing the Chart @@ -12,7 +12,7 @@ To install the chart with the release name `karpenter`: $ helm repo add karpenter https://charts.karpenter.sh $ helm repo update $ helm upgrade --install karpenter karpenter/karpenter --namespace karpenter \ - --create-namespace --set serviceAccount.create=false --version 0.5.0 \ + --create-namespace --set serviceAccount.create=false --version 0.5.1 \ --set controller.clusterName=${CLUSTER_NAME} \ --set controller.clusterEndpoint=$(aws eks describe-cluster --name ${CLUSTER_NAME} --query "cluster.endpoint" --output json) \ --wait # for the defaulting webhook to install before creating a Provisioner @@ -28,7 +28,7 @@ You can follow the detailed installation instruction [here](https://karpenter.sh | controller.clusterEndpoint | string | `""` | Cluster endpoint | | controller.clusterName | string | `""` | Cluster name | | controller.env | list | `[]` | Additional environment variables to run with | -| controller.image | string | `"public.ecr.aws/karpenter/controller:v0.5.0@sha256:76fab69a5a2b1f5736c8beea349e60174d8903b26b65c4cc5009c6528f9aea72"` | Image to use for the Karpenter controller | +| controller.image | string | `"public.ecr.aws/karpenter/controller:v0.5.1@sha256:f992d8ae64408a783b019cd354265995fa3dd4445f22d793b0f8d520209a3e42"` | Image to use for the Karpenter controller | | controller.nodeSelector | object | `{}` | Node selectors to schedule to nodes with labels. | | controller.replicas | int | `1` | | | controller.resources.limits.cpu | int | `1` | | @@ -42,7 +42,7 @@ You can follow the detailed installation instruction [here](https://karpenter.sh | webhook.affinity | object | `{}` | Affinity rules for scheduling | | webhook.env | list | `[]` | List of environment items to add to the webhook | | webhook.hostNetwork | bool | `false` | Set to true if using custom CNI on EKS | -| webhook.image | string | `"public.ecr.aws/karpenter/webhook:v0.5.0@sha256:bc639160d55a15e1f9362a06d42e4133e692d3c81e96d87e2672bd9c53c98958"` | Image to use for the webhook | +| webhook.image | string | `"public.ecr.aws/karpenter/webhook:v0.5.1@sha256:9358beeafd19d02de8c9bd20324a85f906eb7bd5da8db492339cfdec7059725b"` | Image to use for the webhook | | webhook.nodeSelector | object | `{}` | Node selectors to schedule to nodes with labels. | | webhook.port | int | `8443` | | | webhook.replicas | int | `1` | | diff --git a/charts/karpenter/values.yaml b/charts/karpenter/values.yaml index 5c9080a549a4..1317d8388df4 100644 --- a/charts/karpenter/values.yaml +++ b/charts/karpenter/values.yaml @@ -17,7 +17,7 @@ controller: # -- Affinity rules for scheduling affinity: {} # -- Image to use for the Karpenter controller - image: "public.ecr.aws/karpenter/controller:v0.5.0@sha256:76fab69a5a2b1f5736c8beea349e60174d8903b26b65c4cc5009c6528f9aea72" + image: "public.ecr.aws/karpenter/controller:v0.5.1@sha256:f992d8ae64408a783b019cd354265995fa3dd4445f22d793b0f8d520209a3e42" # -- Cluster name clusterName: "" # -- Cluster endpoint @@ -40,7 +40,7 @@ webhook: # -- Affinity rules for scheduling affinity: {} # -- Image to use for the webhook - image: "public.ecr.aws/karpenter/webhook:v0.5.0@sha256:bc639160d55a15e1f9362a06d42e4133e692d3c81e96d87e2672bd9c53c98958" + image: "public.ecr.aws/karpenter/webhook:v0.5.1@sha256:9358beeafd19d02de8c9bd20324a85f906eb7bd5da8db492339cfdec7059725b" # -- Set to true if using custom CNI on EKS hostNetwork: false port: 8443 diff --git a/hack/check-helm-docs.sh b/hack/check-helm-docs.sh deleted file mode 100755 index 47996a971fb4..000000000000 --- a/hack/check-helm-docs.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -# Extract from helm-testing-action: https://github.com/buttahtoast/helm-testing-action/blob/v2.0.1/scripts/docs.sh#L24 - -set -eu -o pipefail - -CHART_PATH="$(pwd)/charts/karpenter" - -main() { - generateREADMEShasum - runHelmDocsAndCheck -} - -generateREADMEShasum() { - SHASUM=$(shasum ${CHART_PATH}/README.md) -} - -runHelmDocsAndCheck() { - helm-docs > /dev/null - - if [[ $(shasum "${CHART_PATH}/README.md") == "${SHASUM}" ]]; then - echo "Documentation up to date ✔" - exit 0 - else - echo -e "Checksums did not match - Documentation outdated! ❌\n Before: ${SHASUM}\n After: $(shasum ${CHART_PATH}/README.md)\n ↳ $ Execute helm-docs and push again" - "${CHART_PATH}/README.md.sum" - exit 1 - fi -} - -main "$@" \ No newline at end of file