Skip to content

Commit aca4f01

Browse files
authored
Update command to retrieve Sagemaker controller version (#1736)
Description of changes: Dynamically retrieve the latest version of the Sagemaker controller instead of hardcoding, script is borrowed from https://aws-controllers-k8s.github.io/community/docs/user-docs/install/. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 5945223 commit aca4f01

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/content/docs/tutorials/autoscaling-example.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ Get the Application Auto Scaling Helm chart and make it available on the client
142142
```bash
143143
export HELM_EXPERIMENTAL_OCI=1
144144
export SERVICE=applicationautoscaling
145-
export RELEASE_VERSION=v0.2.15
145+
export RELEASE_VERSION=`curl -sL https://api.github.com/repos/aws-controllers-k8s/$SERVICE-controller/releases/latest | grep '"tag_name":' | cut -d'"' -f4`
146+
147+
if [[ -z "$RELEASE_VERSION" ]]; then
148+
RELEASE_VERSION=v1.0.2
149+
fi
150+
146151
export CHART_EXPORT_PATH=/tmp/chart
147152
export CHART_REF=$SERVICE-chart
148153
export CHART_REPO=public.ecr.aws/aws-controllers-k8s/$CHART_REF

docs/content/docs/tutorials/sagemaker-example.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ Get the SageMaker Helm chart and make it available on the client machine with th
141141
```bash
142142
export HELM_EXPERIMENTAL_OCI=1
143143
export SERVICE=sagemaker
144-
export RELEASE_VERSION=v0.5.1
144+
export RELEASE_VERSION=`curl -sL https://api.github.com/repos/aws-controllers-k8s/$SERVICE-controller/releases/latest | grep '"tag_name":' | cut -d'"' -f4`
145+
146+
if [[ -z "$RELEASE_VERSION" ]]; then
147+
RELEASE_VERSION=v1.2.0
148+
fi
149+
145150
export CHART_EXPORT_PATH=/tmp/chart
146151
export CHART_REF=$SERVICE-chart
147152
export CHART_REPO=public.ecr.aws/aws-controllers-k8s/$CHART_REF

0 commit comments

Comments
 (0)