Skip to content

Commit

Permalink
Merge branch 'community-master' into odh-master
Browse files Browse the repository at this point in the history
  • Loading branch information
spolti committed Dec 18, 2023
2 parents 7146558 + 27f13d0 commit e3c4caa
Show file tree
Hide file tree
Showing 54 changed files with 13,040 additions and 12,064 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down Expand Up @@ -407,7 +407,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down Expand Up @@ -460,7 +460,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down Expand Up @@ -512,7 +512,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand All @@ -524,14 +524,6 @@ jobs:
run: |
./test/scripts/gh-actions/build-qpext-image.sh
docker image ls
- name: Upload qpext image
uses: ishworkh/docker-image-artifact-upload@v1
with:
image: "kserve/qpext:${{ github.sha }}"
- name: Download qpext image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/qpext:${{ github.sha }}"
- name: Download sklearn server image
uses: ishworkh/docker-image-artifact-download@v1
with:
Expand Down Expand Up @@ -565,7 +557,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down Expand Up @@ -627,7 +619,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down Expand Up @@ -666,7 +658,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down Expand Up @@ -709,7 +701,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.20"
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: "1.20"
go-version: "1.21"
id: go

- name: Check out code into the Go module directory
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/qpext-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
docker-compose --file docker-compose.test.yml build
docker-compose --file docker-compose.test.yml run sut
else
cd qpext
docker buildx build . --file qpext.Dockerfile
docker buildx build . --file qpext/qpext.Dockerfile
fi
# Push image to GitHub Packages.
Expand Down Expand Up @@ -86,7 +85,7 @@ jobs:
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
context: "{{defaultContext}}:qpext"
file: qpext.Dockerfile
context: "."
file: qpext/qpext.Dockerfile
push: true
tags: ${{ env.IMAGE_ID }}:${{ env.VERSION }}
2 changes: 1 addition & 1 deletion .github/workflows/verify-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21

- name: Checkout source code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.20 as builder
FROM golang:1.21 as builder

# Copy in the go src
WORKDIR /go/src/github.com/kserve/kserve
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ALIBI_IMG ?= alibi-explainer
AIF_IMG ?= aiffairness
ART_IMG ?= art-explainer
STORAGE_INIT_IMG ?= storage-initializer
QPEXT_IMG ?= qpext
QPEXT_IMG ?= qpext:latest
CRD_OPTIONS ?= "crd:maxDescLen=0"
KSERVE_ENABLE_SELF_SIGNED_CA ?= false
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
Expand Down Expand Up @@ -296,11 +296,14 @@ docker-push-storageInitializer: docker-build-storageInitializer
docker push ${KO_DOCKER_REPO}/${STORAGE_INIT_IMG}

docker-build-qpext:
cd qpext && docker buildx build -t ${KO_DOCKER_REPO}/${QPEXT_IMG} -f qpext.Dockerfile .
docker buildx build -t ${KO_DOCKER_REPO}/${QPEXT_IMG} -f qpext/qpext.Dockerfile .

docker-build-push-qpext: docker-build-qpext
docker push ${KO_DOCKER_REPO}/${QPEXT_IMG}

deploy-dev-qpext: docker-build-push-qpext
kubectl patch cm config-deployment -n knative-serving --type merge --patch '{"data": {"queue-sidecar-image": "${KO_DOCKER_REPO}/${QPEXT_IMG}"}}'

docker-build-success-200-isvc:
cd python && docker buildx build -t ${KO_DOCKER_REPO}/${SUCCESS_200_ISVC_IMG} -f success_200_isvc.Dockerfile .

Expand Down
2 changes: 1 addition & 1 deletion agent.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the inference-agent binary
FROM golang:1.20 as builder
FROM golang:1.21 as builder

# Copy in the go src
WORKDIR /go/src/github.com/kserve/kserve
Expand Down
17 changes: 11 additions & 6 deletions cmd/router/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func callService(serviceUrl string, input []byte, headers http.Header) ([]byte,
defer timeTrack(time.Now(), "step", serviceUrl)
log.Info("Entering callService", "url", serviceUrl)
req, err := http.NewRequest("POST", serviceUrl, bytes.NewBuffer(input))
if err != nil {
log.Error(err, "An error occurred while preparing request object with serviceUrl.", "serviceUrl", serviceUrl)
return nil,500, err
if err != nil {
log.Error(err, "An error occurred while preparing request object with serviceUrl.", "serviceUrl", serviceUrl)
return nil, 500, err
}
for _, h := range headersToPropagate {
if values, ok := headers[h]; ok {
Expand Down Expand Up @@ -281,14 +281,19 @@ func graphHandler(w http.ResponseWriter, req *http.Request) {
log.Error(err, "failed to process request")
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(statusCode)
w.Write(prepareErrorResponse(err, "Failed to process request"))
_, writeErr := w.Write(prepareErrorResponse(err, "Failed to process request"))
if writeErr != nil {
log.Error(writeErr, "failed to write graphHandler response")
}
} else {
if json.Valid(response) {
w.Header().Set("Content-Type", "application/json")
}
w.WriteHeader(statusCode)
w.Write(response)

_, writeErr := w.Write(response)
if writeErr != nil {
log.Error(writeErr, "failed to write graphHandler response")
}
}
}

Expand Down
16 changes: 13 additions & 3 deletions config/configmap/inferenceservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
# EXAMPLE CONFIGURATION #
# #
################################
# This block is not actually functional configuration,
# but serves to illustrate the available configuration
# options and document them in a way that is accessible
Expand All @@ -19,7 +19,7 @@ data:
# These sample configuration options may be copied out of
# this example block and unindented to be in the data block
# to actually change the configuration.
# ====================================== EXPLAINERS CONFIGURATION ======================================
# Example
explainers: |-
Expand Down Expand Up @@ -63,7 +63,9 @@ data:
"memoryLimit": "1Gi",
"cpuRequest": "100m",
"cpuLimit": "1",
"enableDirectPvcVolumeMount": false
"caBundleConfigMapName": "",
"caBundleVolumeMountPath": "/etc/ssl/custom-certs",
"enableDirectPvcVolumeMount": false,
}
storageInitializer: |-
{
Expand All @@ -82,6 +84,12 @@ data:
# cpuLimit is the limits.cpu to set for the storage initializer init container.
"cpuLimit": "1",
# caBundleConfigMapName is the ConfigMap will be copied to a user namespace for the storage initializer init container.
"caBundleConfigMapName": "",
# caBundleVolumeMountPath is the mount point for the configmap set by caBundleConfigMapName for the storage initializer init container.
"caBundleVolumeMountPath": "/etc/ssl/custom-certs",
# enableDirectPvcVolumeMount controls whether users can mount pvc volumes directly.
# if pvc volume is provided in storageuri then the pvc volume is directly mounted to /mnt/models in the user container.
# rather than symlink it to a shared volume. For more info see https://github.com/kserve/kserve/issues/2737
Expand Down Expand Up @@ -417,6 +425,8 @@ data:
"memoryLimit": "1Gi",
"cpuRequest": "100m",
"cpuLimit": "1",
"caBundleConfigMapName": "",
"caBundleVolumeMountPath": "/etc/ssl/custom-certs",
"enableDirectPvcVolumeMount": false
}
Expand Down
Loading

0 comments on commit e3c4caa

Please sign in to comment.