Skip to content

Commit

Permalink
release: update manifest and helm charts for v0.4.2 (#829)
Browse files Browse the repository at this point in the history
**Reason for Change**:
<!-- What does this PR improve or fix in Kaito? Why is it needed? -->
make a release for kaito v0.4.2

**Issue Fixed**:
<!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next
line. -->

**Notes for Reviewers**:

Signed-off-by: rambohe-ch <[email protected]>
  • Loading branch information
rambohe-ch authored Jan 16, 2025
1 parent 03bf1b3 commit 3755bab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Image URL to use all building/pushing image targets
REGISTRY ?= YOUR_REGISTRY
IMG_NAME ?= workspace
VERSION ?= v0.4.1
VERSION ?= v0.4.2
GPU_PROVISIONER_VERSION ?= 0.3.1
IMG_TAG ?= $(subst v,,$(VERSION))

Expand Down Expand Up @@ -464,8 +464,9 @@ release-manifest:
@sed -i -e "s/appVersion: .*/appVersion: ${IMG_TAG}/" ./charts/kaito/workspace/Chart.yaml
@sed -i -e "s/tag: .*/tag: ${IMG_TAG}/" ./charts/kaito/workspace/values.yaml
@sed -i -e 's/IMG_TAG=.*/IMG_TAG=${IMG_TAG}/' ./charts/kaito/workspace/README.md
@sed -i -e 's/export KAITO_WORKSPACE_VERSION=.*/export KAITO_WORKSPACE_VERSION=${IMG_TAG}/' ./docs/installation.md
git checkout -b release-${VERSION}
git add ./Makefile ./charts/kaito/workspace/Chart.yaml ./charts/kaito/workspace/values.yaml ./charts/kaito/workspace/README.md
git add ./Makefile ./charts/kaito/workspace/Chart.yaml ./charts/kaito/workspace/values.yaml ./charts/kaito/workspace/README.md ./docs/installation.md
git commit -s -m "release: update manifest and helm charts for ${VERSION}"

## --------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions charts/kaito/workspace/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.1
version: 0.4.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: 0.4.1
appVersion: 0.4.2
home: https://github.com/kaito-project/kaito
sources:
- https://github.com/kaito-project/kaito
Expand Down
2 changes: 1 addition & 1 deletion charts/kaito/workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```bash
export REGISTRY=mcr.microsoft.com/aks/kaito
export IMG_NAME=workspace
export IMG_TAG=0.4.1
export IMG_TAG=0.4.2
helm install workspace ./charts/kaito/workspace \
--set image.repository=${REGISTRY}/${IMG_NAME} --set image.tag=${IMG_TAG} \
--namespace kaito-workspace --create-namespace
Expand Down
2 changes: 1 addition & 1 deletion charts/kaito/workspace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ replicaCount: 1
image:
repository: mcr.microsoft.com/aks/kaito/workspace
pullPolicy: IfNotPresent
tag: 0.4.1
tag: 0.4.2
imagePullSecrets: []
podAnnotations: {}
podSecurityContext:
Expand Down
11 changes: 8 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ az aks install-cli
Install the Workspace controller.

```bash
helm install workspace ./charts/kaito/workspace --namespace kaito-workspace --create-namespace
export KAITO_WORKSPACE_VERSION=0.4.2

helm install kaito-workspace --set clusterName=$MY_CLUSTER --wait \
https://github.com/kaito-project/kaito/raw/gh-pages/charts/kaito/workspace-$KAITO_WORKSPACE_VERSION.tgz --namespace kaito-workspace --create-namespace
```

Note that if you have installed another node provisioning controller that supports Karpenter-core APIs, the following steps for installing `gpu-provisioner` can be skipped.


## Install gpu-provisioner controller


#### Enable Workload Identity and OIDC Issuer features
The *gpu-provisioner* controller requires the [workload identity](https://learn.microsoft.com/azure/aks/workload-identity-overview?tabs=dotnet) feature to acquire the access token to the AKS cluster.

Expand All @@ -73,6 +74,10 @@ az role assignment create --assignee $IDENTITY_PRINCIPAL_ID --scope /subscriptio
```

#### Install helm charts

**Important Note**:
For kaito 0.4.2 and above, please use gpu-provisioner 0.3.1 or higher. For versions below kaito 0.4.2, please use gpu-provisioner 0.2.1.

Install the Node provisioner controller.
```bash
# get additional values for helm chart install
Expand Down

0 comments on commit 3755bab

Please sign in to comment.