Skip to content

Commit

Permalink
docs: use site params to reference latest release
Browse files Browse the repository at this point in the history
Signed-off-by: Tuan Anh Tran <[email protected]>
  • Loading branch information
tuananh committed Dec 6, 2021
1 parent c3b37d9 commit 30299bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ anchor = "smart"

## Site Params
[params]

latest_release_version = "0.5.1"

copyright = "Amazon.com, Inc. or its affiliates."
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
github_repo = "https://github.com/aws/karpenter"
Expand Down
2 changes: 1 addition & 1 deletion website/content/en/docs/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ eksctl. Thus, we don't need the helm chart to do that.
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 {{< param "latest_release_version" >}} \
--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
Expand Down
2 changes: 1 addition & 1 deletion website/content/en/docs/reinvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Happy Building 🔨!
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 {{< param "latest_release_version" >}} \
--set controller.clusterName=karpenter-demo \
--set controller.clusterEndpoint=$(aws eks describe-cluster --name karpenter-demo --query "cluster.endpoint" --output json) \
--wait # for the defaulting webhook to install before creating a Provisioner
Expand Down

0 comments on commit 30299bd

Please sign in to comment.