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

Sync with main for ODH 2.20 #278

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4cee24c
Updated the istio libraries and others based on go version 1.21
mholder6 Jul 18, 2024
b541bd4
Update ENVTEST_K8S_VERSION for s390x
satyamg1620 Jul 30, 2024
ad4ba8d
Updated kustomize labels to kustomize v5 syntax
KillianGolds Aug 9, 2024
7116b28
Merge pull request #247 from satyamg1620/env-test-s390x
openshift-merge-bot[bot] Aug 9, 2024
63f4381
Merge pull request #253 from KillianGolds/odh-kustomize-v5-manifest-u…
openshift-merge-bot[bot] Aug 15, 2024
4e51a27
Merge pull request #242 from mholder6/rhoaieng-9411
openshift-merge-bot[bot] Aug 16, 2024
af62e26
Use a more fine-grained SAR for Authorino
israel-hdez Aug 20, 2024
680ac78
[RHOAIENG-11527] - [backend] Incorrect values for number of requests …
spolti Aug 27, 2024
8f78684
chore: ensure functions use inherited context (#251)
lburgazzoli Aug 27, 2024
09790de
Removed and replaced the IstioControlPlaneName and IstioNamespace con…
mholder6 Aug 29, 2024
bcc19fa
runtimes: remove distributed executor backend option from vllm (#257)
dtrifiro Sep 5, 2024
264adae
[RHOAIENG-9746] - Missing log entry in StorageConfig controller of od…
spolti Sep 5, 2024
9617f48
[RHOAIENG-12726] - odh-model-controller crashes with empty isvc.model…
spolti Sep 11, 2024
0af4425
Multi-arch Build support (#262)
Nash-123 Sep 13, 2024
5739309
Updated manifests to have 1 replica of odh-model-controller pods inst…
mholder6 Sep 23, 2024
656d58c
Add 2.14(2024.3) image of ovms (#272)
rpancham Oct 4, 2024
db5c350
Updated the OWNERS file to remove previous members and added new memb…
mholder6 Oct 22, 2024
a404606
Updated the OWNERS file to list members in alphabetical order. (#277)
mholder6 Oct 23, 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
67 changes: 67 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build and Push Image for Multi-Arch CI- Additional support for s390x & Power along with arm64 & amd64

on:
workflow_dispatch:
push:
branches:
- main
- 'release-[0-9]+\.[0-9]+\.[0-9]+'
tags:
- 'latest'
- 'v*'


env:
IMAGE_NAME: "odh-model-controller"
REPO_NAME: "opendatahub"
REGISTRY_NAME: "quay.io"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Quay
uses: docker/login-action@v3

with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Set Docker Tag
run: |
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "${GITHUB_REF}" == refs/heads/release-* ]]; then
VERSION="${GITHUB_REF#refs/heads/release-}"
echo "TAG=v${VERSION}-latest" >> $GITHUB_ENV
elif [[ "${GITHUB_REF}" == refs/tags/v* ]]; then
TAG="${GITHUB_REF#refs/tags/}"
echo "TAG=${TAG}" >> $GITHUB_ENV
else
echo "Branch or tag is not found. Image can't be pushed. Please check and try again!!"
exit 1
fi

- name: Build and push controller image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
context: .
file: Containerfile
push: true
tags: |
${{ env.REGISTRY_NAME }}/${{ env.REPO_NAME }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
debug: true
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
IMG ?= quay.io/${USER}/odh-model-controller:latest
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.26
ENVTEST_K8S_VERSION = 1.29

ENGINE ?= docker

Expand Down Expand Up @@ -69,7 +69,8 @@ vet: ## Run go vet against code.

.PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" POD_NAMESPACE=default go test -v ./controllers/... -coverprofile cover.out
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" POD_NAMESPACE=default \
MESH_NAMESPACE=istio-system CONTROL_PLANE_NAME=istio-system go test -v ./controllers/... -coverprofile cover.out

.PHONY: e2e-test
e2e-test: manifests generate fmt vet ## Run e2e-tests.
Expand Down
16 changes: 8 additions & 8 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
approvers:
- danielezonca
- davidesalerno
- dtrifiro
- heyselbi
- hdefazio
- israel-hdez
- Jooho
- rpancham
- mholder6
- mwaykole
- rnetser
- spolti
- terrytangyuan
- vaibhavjainwiz
- VedantMahabaleshwarkar
- Xaenalt
- z103cb
reviewers:
- davidesalerno
- hdefazio
- israel-hdez
- Jooho
- mholder6
- mwaykole
- rnetser
- spolti
- terrytangyuan
- VedantMahabaleshwarkar
Expand Down
120 changes: 89 additions & 31 deletions config/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,53 +12,111 @@ configMapGenerator:
generatorOptions:
disableNameSuffixHash: true

vars:
- fieldref:
replacements:
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
fieldPath: data.tgis-image
targets:
- select:
kind: Template
name: caikit-tgis-serving-template
fieldPaths:
- objects.0.spec.containers.0.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
fieldPath: data.caikit-tgis-image
name: caikit-tgis-image
objref:
apiVersion: v1
targets:
- select:
kind: Template
name: caikit-tgis-serving-template
fieldPaths:
- objects.0.spec.containers.1.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: data.caikit-standalone-image
name: caikit-standalone-image
objref:
apiVersion: v1
targets:
- select:
kind: Template
name: caikit-standalone-serving-template
fieldPaths:
- objects.0.spec.containers.0.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: data.tgis-image
name: tgis-image
objref:
apiVersion: v1
targets:
- select:
kind: Template
name: tgis-grpc-serving-template
fieldPaths:
- objects.0.spec.containers.0.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: data.ovms-image
name: ovms-image
objref:
apiVersion: v1
targets:
- select:
kind: Template
name: kserve-ovms
fieldPaths:
- objects.0.spec.containers.0.image
- select:
kind: Template
name: ovms
fieldPaths:
- objects.0.spec.containers.0.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: data.vllm-image
name: vllm-image
objref:
apiVersion: v1
targets:
- select:
kind: Template
name: vllm-runtime-template
fieldPaths:
- objects.0.spec.containers.0.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: metadata.namespace
name: mesh-namespace
objref:
apiVersion: v1
fieldPath: data.odh-model-controller
targets:
- select:
kind: Deployment
name: odh-model-controller
fieldPaths:
- spec.template.spec.containers.0.image
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: data.odh-model-controller
name: odh-model-controller
objref:
apiVersion: v1
fieldPath: metadata.namespace
targets:
- select:
kind: ValidatingWebhookConfiguration
name: validating-webhook-configuration
fieldPaths:
- webhooks.0.clientConfig.service.namespace
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
fieldPath: metadata.namespace
targets:
- select:
kind: ClusterRoleBinding
name: odh-model-controller-rolebinding-$(mesh_namespace)
options:
delimiter: '-'
index: 4
fieldPaths:
- metadata.name
2 changes: 1 addition & 1 deletion config/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ odh-model-controller=quay.io/opendatahub/odh-model-controller:fast
caikit-tgis-image=quay.io/opendatahub/caikit-tgis-serving:fast
caikit-standalone-image=quay.io/opendatahub/caikit-nlp:fast
tgis-image=quay.io/opendatahub/text-generation-inference:fast
ovms-image=quay.io/opendatahub/openvino_model_server:fast
ovms-image=quay.io/opendatahub/openvino_model_server:2024.3-release
vllm-image=quay.io/opendatahub/vllm:fast
6 changes: 2 additions & 4 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
bases:
resources:
- ../rbac
- ../manager
- ../webhook
- ../runtimes

resources:
- networkpolicy.yaml
- networkpolicy.yaml
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
matchLabels:
control-plane: odh-model-controller
replicas: 3
replicas: 1
template:
metadata:
annotations:
Expand Down
26 changes: 12 additions & 14 deletions config/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resources:
- ../../crd/external
- ../../default

patchesStrategicMerge:
- odh_model_controller_manager_patch.yaml
patches:
- path: odh_model_controller_manager_patch.yaml

namespace: default
configMapGenerator:
Expand All @@ -13,18 +13,16 @@ configMapGenerator:
generatorOptions:
disableNameSuffixHash: true

vars:
- fieldref:
fieldPath: metadata.namespace
name: mesh-namespace
objref:
apiVersion: v1

replacements:
- source:
kind: ConfigMap
version: v1
name: odh-model-controller-parameters
- fieldref:
fieldPath: data.monitoring-namespace
name: monitoring-namespace
objref:
apiVersion: v1
kind: ConfigMap
name: odh-model-controller-parameters
targets:
- select:
kind: Deployment
name: odh-model-controller
fieldPaths:
- spec.template.spec.containers.0.env.0.value
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: odh-model-controller
spec:
replicas: 3
replicas: 1
template:
spec:
containers:
Expand Down
8 changes: 4 additions & 4 deletions config/overlays/odh/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Kustomization
resources:
- ../../default

patchesStrategicMerge:
- odh_model_controller_manager_patch.yaml

patches:
- path: odh_model_controller_manager_patch.yaml
configurations:
- params.yaml
- params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Deployment
metadata:
name: odh-model-controller
spec:
replicas: 3
template:
spec:
containers:
Expand Down
2 changes: 1 addition & 1 deletion config/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: odh-model-controller-rolebinding-$(mesh-namespace)
name: odh-model-controller-rolebinding-$(mesh_namespace)
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
8 changes: 5 additions & 3 deletions config/runtimes/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
labels:
- pairs:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
includeSelectors: true
resources:
- ovms-mm-template.yaml
- caikit-tgis-template.yaml
Expand Down
1 change: 0 additions & 1 deletion config/runtimes/vllm-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ objects:
- "--port=8080"
- "--model=/mnt/models"
- "--served-model-name={{.Name}}"
- "--distributed-executor-backend=mp"
env:
- name: HF_HOME
value: /tmp/hf_home
Expand Down
Loading
Loading