Skip to content

Commit

Permalink
Merge branch 'main' into fguo-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 authored Mar 4, 2024
2 parents 9c05cb1 + d930630 commit 4169297
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Create, Scan and Publish KAITO image
on:
pull_request:
branches:
- main
- release-**
types: [ closed ]

Expand Down Expand Up @@ -36,7 +37,7 @@ jobs:
steps:
- id: get-tag
name: Get tag
run: echo "IMG_TAG=$(echo ${{ github.event.pull_request.head.ref }} | tr -d release-)" >> $GITHUB_OUTPUT
run: echo "IMG_TAG=$(echo ${{ github.event.pull_request.head.ref }} | tr -d release-)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
submodules: true
Expand Down Expand Up @@ -73,9 +74,9 @@ jobs:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

- name: 'Dispatch tag to e2e test'
- name: 'Dispatch release tag'
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
event-type: release-tag
client-payload: '{"isRelease": true,"registry": "$${{ env.REGISTRY }}","tag": "${{ env.IMG_TAG }}"}'
client-payload: '{"isRelease": true,"registry": "$${{ env.REGISTRY }}","tag": "v${{ env.IMG_TAG }}"}'
3 changes: 3 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflows: [ "Create, Scan and Publish KAITO image" ]
types: [completed]
branches: [release-**]
repository_dispatch:
types: [ release-tag ]
branches: [ release-** ]

permissions:
contents: write
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/kaito-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ jobs:
echo "VERSION=${rand}" >> $GITHUB_ENV
echo "CLUSTER_NAME=kaito${rand}" >> $GITHUB_ENV
echo "RUN_LLAMA_13B=false" >> $GITHUB_ENV
echo "REGISTRY=kaito${rand}.azurecr.io" >> $GITHUB_ENV
- name: Set Registry
if: ${{ github.event.client_payload.isRelease }}
run: |
isRelease=${{ github.event.client_payload.isRelease }}
if ["$isRelease" = true ] ; then
echo "REGISTRY= ${{ github.event.client_payload.registry }}" >> $GITHUB_ENV
else
echo "REGISTRY=${{ env.CLUSTER_NAME }}" >> $GITHUB_ENV
fi
echo "REGISTRY=${{ github.event.client_payload.registry }}" >> $GITHUB_ENV
echo "VERSION=$(echo ${{ github.event.client_payload.tag }} | tr -d v)" >> $GITHUB_ENV
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
Expand Down Expand Up @@ -111,7 +109,7 @@ jobs:
run: |
make docker-build-kaito
env:
REGISTRY: ${{ env.REGISTRY }}.azurecr.io
REGISTRY: ${{ env.REGISTRY }}
VERSION: ${{ env.VERSION }}

- name: create cluster
Expand Down Expand Up @@ -161,7 +159,7 @@ jobs:
env:
AZURE_RESOURCE_GROUP: ${{ env.CLUSTER_NAME }}
AZURE_CLUSTER_NAME: ${{ env.CLUSTER_NAME }}
REGISTRY: ${{ env.REGISTRY }}.azurecr.io
REGISTRY: ${{ env.REGISTRY }}
VERSION: ${{ env.VERSION }}

- name: Add Secret Credentials
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publish-image-acr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,18 @@ jobs:
steps:
- id: get-tag
name: Get tag
run: echo "IMG_TAG=$(echo ${{ needs.check-tag.outputs.tag }} )" >> $GITHUB_ENV
run: echo "IMG_TAG=$(echo ${{ needs.check-tag.outputs.tag }} | tr -d v)" >> $GITHUB_ENV

- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: 'Set Image Tag'
run: |
echo "REPO_TAG=$(echo ${{ needs.check-tag.outputs.tag }} | tr -d v)" >> $GITHUB_ENV

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
ref: ${{ env.REPO_TAG }}
ref: ${{ needs.check-tag.outputs.tag }}

- name: 'Build Image'
run: |
Expand Down Expand Up @@ -103,7 +100,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: release-tag
client-payload: '{"isRelease": true,"registry": "${{ secrets.KAITO_MCR_REGISTRY }}/unlisted/aks/kaito","tag": "${{ env.IMG_TAG }}"}'
client-payload: '{"isRelease": true,"registry": "mcr.microsoft.com/aks/kaito","tag": "${{ needs.check-tag.outputs.tag }}"}'

## push to MCR
- name: 'Az CLI login'
Expand Down
2 changes: 1 addition & 1 deletion 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.1.0
VERSION ?= v0.2.0
IMG_TAG ?= $(subst v,,$(VERSION))

ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/Azure/kaito)
[![codecov](https://codecov.io/gh/Azure/kaito/graph/badge.svg?token=XAQLLPB2AR)](https://codecov.io/gh/Azure/kaito)

| ![notification](docs/img/bell.svg) What is NEW!|
|---------------------------------------------------------------------------------------------|
| First Release: Nov 15th, 2023. Kaito v0.1.0. |
| ![notification](docs/img/bell.svg) What is NEW! |
|-------------------------------------------------|
| First Release: Nov 15th, 2023. Kaito v0.1.0. |
| March 1st, 2024. Kaito v0.2.0. |

Kaito is an operator that automates the AI/ML inference model deployment in a Kubernetes cluster.
The target models are popular large open-sourced inference models such as [falcon](https://huggingface.co/tiiuae) and [llama 2](https://github.com/facebookresearch/llama).
Expand Down
2 changes: 1 addition & 1 deletion charts/kaito/workspace/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version: 0.1.0
# 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.1.0"
appVersion: "0.2.0"
home: https://github.com/Azure/kaito
sources:
- https://github.com/Azure/kaito
Expand Down
4 changes: 2 additions & 2 deletions charts/kaito/workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```bash
export REGISTRY=<your_docker_registry>
export IMG_NAME=workspace
export IMG_TAG=0.1.0
export IMG_TAG=0.2.0
helm install workspace ./charts/kaito/workspace --set image.repository=${REGISTRY}/$(IMG_NAME) --set image.tag=$(IMG_TAG)
```

Expand All @@ -16,7 +16,7 @@ helm install workspace ./charts/kaito/workspace --set image.repository=${REGIST
| affinity | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/azure/kaito/workspace"` | |
| image.tag | string | `"0.1.0"` | |
| image.tag | string | `"0.2.0"` | |
| imagePullSecrets | list | `[]` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
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.1.0
tag: 0.2.0
imagePullSecrets: []
podAnnotations: {}
podSecurityContext:
Expand Down

0 comments on commit 4169297

Please sign in to comment.