Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from kubeflow:main #110

Merged
merged 20 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
86c3630
fix: made install_protoc.sh compatible with wget2 (#256)
Al-Pragliola Aug 12, 2024
914aaa3
build(deps): bump aiohttp from 3.10.1 to 3.10.3 in /clients/python (#…
dependabot[bot] Aug 12, 2024
d7208ff
build(deps-dev): bump furo from 2024.7.18 to 2024.8.6 in /clients/pyt…
dependabot[bot] Aug 12, 2024
ce173e1
build(deps-dev): bump mypy from 1.11.0 to 1.11.1 in /clients/python (…
dependabot[bot] Aug 12, 2024
d6d4444
build(deps-dev): bump ruff from 0.5.6 to 0.5.7 in /clients/python (#264)
dependabot[bot] Aug 12, 2024
8c70b65
openapi: require name for contexts (#253)
isinyaaa Aug 12, 2024
e15fb89
build(deps): bump react-dom from 18.2.0 to 18.3.1 in /clients/ui/fron…
dependabot[bot] Aug 13, 2024
b6d358a
build(deps-dev): bump style-loader from 3.3.4 to 4.0.0 in /clients/ui…
dependabot[bot] Aug 13, 2024
23abcb3
build(deps-dev): bump rimraf from 5.0.7 to 6.0.1 in /clients/ui/front…
dependabot[bot] Aug 13, 2024
feeb0dc
build(deps): bump @patternfly/react-styles from 6.0.0-alpha.24 to 6.0…
dependabot[bot] Aug 13, 2024
462a7b8
Adds description and display name properties to mocked ModelRegistry …
alexcreasy Aug 15, 2024
721cdd2
py: update contexts (#270)
isinyaaa Aug 19, 2024
22c93da
GHA: build: simplify action (#271)
isinyaaa Aug 19, 2024
46bc5f0
build(deps): bump github.com/docker/docker from 27.1.1+incompatible t…
dependabot[bot] Aug 19, 2024
689b20b
build(deps): bump aiohttp from 3.10.3 to 3.10.4 in /clients/python (#…
dependabot[bot] Aug 19, 2024
7d53ea3
Bump ruff to 0.6.1 (#285)
isinyaaa Aug 20, 2024
e596525
Document deploying MR locally on a kind cluster for development (#273)
alexcreasy Aug 20, 2024
092a689
Add Tips section to README.md (#287)
tonyxrmdavidson Aug 21, 2024
0c3b497
Update tsconfig files (#284)
Griffin-Sullivan Aug 21, 2024
639661b
chore: remove go from bin (#288)
tarilabs Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Build
on:
push:
branches:
- 'main'
- "main"
pull_request:
paths-ignore:
- 'LICENSE*'
- 'DOCKERFILE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
- 'docs/**'
- 'scripts/**'
- "LICENSE*"
- "DOCKERFILE*"
- "**.gitignore"
- "**.md"
- "**.txt"
- ".github/ISSUE_TEMPLATE/**"
- ".github/dependabot.yml"
- "docs/**"
- "scripts/**"
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -22,22 +22,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "24.3"
repo-token: ${{ secrets.GITHUB_TOKEN }}
go-version: "1.21"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install makefile dependencies
run: make deps
- name: Clean
run: make clean
- name: Build
run: make build
run: make clean build
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
PROJECT_PATH := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
PROJECT_BIN := $(PROJECT_PATH)/bin
GO := $(PROJECT_BIN)/go1.21.9
GO ?= "$(shell which go)"

# add tools bin directory
PATH := $(PROJECT_BIN):$(PATH)
Expand Down Expand Up @@ -108,10 +108,6 @@ clean:
clean/odh:
rm -Rf ./model-registry

bin/go:
GOBIN=$(PROJECT_BIN) go install golang.org/dl/go1.21.9@latest
$(PROJECT_BIN)/go1.21.9 download

bin/protoc:
./scripts/install_protoc.sh

Expand Down Expand Up @@ -155,7 +151,7 @@ clean/deps:
rm -Rf bin/*

.PHONY: deps
deps: bin/go bin/protoc bin/go-enum bin/protoc-gen-go bin/protoc-gen-go-grpc bin/golangci-lint bin/goverter bin/openapi-generator-cli
deps: bin/protoc bin/go-enum bin/protoc-gen-go bin/protoc-gen-go-grpc bin/golangci-lint bin/goverter bin/openapi-generator-cli

.PHONY: vendor
vendor:
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,19 @@ End-to-end testing is developed with Robot Framework; this higher-lever layer of
- demonstrate *User Stories* from high level perspective
- demonstrate coherent logical data mapping by performing the same high level capabilities, using REST API flow Vs Python client flow,
directly checking the end results in the backend gRPC MLMD server.

## Tips
### Pull image rate limiting

Ocassionally you may encounter an 'ImagePullBackOff' error when deploying the Model Registry manifests. See example below for the `model-registry-db` container.

```
Failed to pull image “mysql:8.3.0”: rpc error: code = Unknown desc = fetching target platform image selected from image index: reading manifest sha256:f9097d95a4ba5451fff79f4110ea6d750ac17ca08840f1190a73320b84ca4c62 in docker.io/library/mysql: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
```

This error is triggered by the rate limits from docker.io; in this example specifically about the image `mysql:8.3.0` (the expanded reference is `docker.io/library/mysql:8.3.0`). To mitigate against this error you could [authenticate using image pull secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) for _local development_; or replace the image used with alternative mirrored images, for instance with the following example:
```
manifests/kustomize/overlays/db/model-registry-db-deployment.yaml file.

spec.template.spec.containers.image: public.ecr.aws/docker/library/mysql:8.3.0
```
14 changes: 14 additions & 0 deletions api/openapi/model-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,18 @@ components:
- $ref: "#/components/schemas/BaseResourceList"
RegisteredModelCreate:
description: A registered model in model registry. A registered model has ModelVersion children.
required:
- name
allOf:
- type: object
- $ref: "#/components/schemas/BaseResourceCreate"
- $ref: "#/components/schemas/RegisteredModelUpdate"
properties:
name:
description: |-
The client provided name of the model. It must be unique among all the RegisteredModels of the same
type within a Model Registry instance and cannot be changed once set.
type: string
RegisteredModelUpdate:
description: A registered model in model registry. A registered model has ModelVersion children.
allOf:
Expand All @@ -1045,6 +1053,7 @@ components:
ModelVersionCreate:
description: Represents a ModelVersion belonging to a RegisteredModel.
required:
- name
- registeredModelId
allOf:
- $ref: "#/components/schemas/BaseResourceCreate"
Expand All @@ -1054,6 +1063,11 @@ components:
registeredModelId:
description: ID of the `RegisteredModel` to which this version belongs.
type: string
name:
description: |-
The client provided name of the model's version. It must be unique among all the ModelVersions of the same
type within a Model Registry instance and cannot be changed once set.
type: string
ModelVersionUpdate:
description: Represents a ModelVersion belonging to a RegisteredModel.
allOf:
Expand Down
Loading
Loading