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

Ubi docker file change #98

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
945a5ae
re-establish ODH OWNERS file (#1)
tarilabs Feb 19, 2024
ba720dc
py: update project version to v0.1.1
tarilabs Feb 20, 2024
4734750
Merge pull request #2 from tarilabs/tarilabs-20240220-py011
openshift-merge-bot[bot] Feb 20, 2024
6c0a59f
This commit will add Neha to model-registry OWNERS file
tonyxrmdavidson Feb 20, 2024
9ba89a3
fix: GHA kind test update following MRO update (#6)
tarilabs Feb 21, 2024
4658d0b
Merge branch 'main' into tarilabs-20240221-testSync2
tarilabs Feb 21, 2024
af4b2c2
drop: "kubeflow: remove operator test in pr check (#16)"
tarilabs Feb 21, 2024
7cf49f7
drop: "kubeflow: disable codecov reporting GHA step (#14)"
tarilabs Feb 21, 2024
70b6579
Merge pull request #7 sync: upstream kubeflow main to midstream odh main
tarilabs Feb 22, 2024
6616c3e
Merge pull request #3 from tonyxrmdavidson/addNehaToOwners
openshift-merge-bot[bot] Feb 22, 2024
4546567
This commit will deploy model-registry to the openshift-ci deployment
tonyxrmdavidson Feb 22, 2024
d58b22b
This commit adds the required files needed for the openshift-ci model…
tonyxrmdavidson Feb 22, 2024
771a124
Merge pull request #10 from tonyxrmdavidson/openshiftCIModelRegistryD…
openshift-merge-bot[bot] Feb 22, 2024
d1be55d
ci: configure Pull GH App bot to use tide label
tarilabs Feb 26, 2024
022a263
Merge pull request #12 from tarilabs/tarilabs-20240226-pullBotConfigL…
rkubis Feb 26, 2024
6ae59f5
sync upstream KF into midstream ODH (#15)
tarilabs Mar 4, 2024
7c4a7a7
Revert "sync upstream KF into midstream ODH (opendatahub-io#15)"
tarilabs Mar 4, 2024
f754d6d
Merge sync remote-tracking branch 'upstream/main' into tarilabs-20240…
tarilabs Mar 4, 2024
da342c7
Merge pull request #18 from tarilabs/tarilabs-20240304-syncUpstream2
tarilabs Mar 4, 2024
9101aef
py: update project version to v0.1.2 (#19)
tarilabs Mar 5, 2024
f149df6
Merge pull request #20 from kubeflow/main
openshift-merge-bot[bot] Mar 6, 2024
7e767c4
fix Pull GH app default tide label (#21)
tarilabs Mar 6, 2024
5368a4d
Merge pull request #22 from kubeflow/main
openshift-merge-bot[bot] Mar 8, 2024
37385f0
[pull] main from kubeflow:main (#23)
pull[bot] Mar 8, 2024
7afd28b
Merge pull request #24 from kubeflow/main
openshift-merge-bot[bot] Mar 11, 2024
ffa5c3f
Openshift-ci model-registry deployment configuration and testing (#26)
tonyxrmdavidson Mar 18, 2024
e9167d9
Revert skip "add testing of KF MR Manifests (kubeflow#36)"
tarilabs Mar 18, 2024
aa831d5
Merge branch 'odh-main' into tarilabs-20240318-midstreamsync
tarilabs Mar 18, 2024
18d77fa
This commit will update the iib for odh-nightly build (#29)
tonyxrmdavidson Mar 20, 2024
0585c3d
This commit removes the source command as it is not needed. (#31)
tonyxrmdavidson Mar 22, 2024
bb0a432
Merge pull request #27 from tarilabs/tarilabs-20240318-midstreamsync
openshift-merge-bot[bot] Mar 25, 2024
cbb2751
Merge sync branch 'main' into tarilabs-20240326-sync
tarilabs Mar 26, 2024
0ebf88d
adapt CI and script values from upstream KF to ODH midstream
tarilabs Mar 26, 2024
dd093b7
Merge pull request #32 from tarilabs/tarilabs-20240326-sync
openshift-merge-bot[bot] Mar 26, 2024
5612bee
Merge pull request #33 from kubeflow/main
openshift-merge-bot[bot] Mar 26, 2024
785e8f1
This commit makes changes to use the comminuty ODH operator from the …
tonyxrmdavidson Mar 27, 2024
164d7dc
Added DSCI config (#35)
tonyxrmdavidson Mar 28, 2024
65cd8d8
Add yq script (#36)
tonyxrmdavidson Mar 28, 2024
316bb85
This commit removes servicemesh references in the DSCI file. It also …
tonyxrmdavidson Mar 28, 2024
c0d2ee0
Merge pull request #37 from tonyxrmdavidson/fixDSCI
tonyxrmdavidson Mar 28, 2024
765a07d
This commit removes the need to clone model-registry-operator by crea…
tonyxrmdavidson Mar 29, 2024
665903d
Merge branch 'main' into removeGitClone
tonyxrmdavidson Mar 29, 2024
7d467e3
Merge pull request #38 from tonyxrmdavidson/removeGitClone
tonyxrmdavidson Mar 29, 2024
57a918b
Adding wait between deployments (#39)
tonyxrmdavidson Mar 29, 2024
f47598f
This commit adds crds monitoring (#40)
tonyxrmdavidson Apr 1, 2024
aeb1024
Merge pull request #41 from kubeflow/main
dhirajsb Apr 4, 2024
f624e57
This commit adds rest api testing to the openshift-ci deployment
tonyxrmdavidson Apr 10, 2024
76e7721
Merge pull request #42 from kubeflow/main
tarilabs Apr 11, 2024
8341ef2
This commit adds a README.md for openshift-ci usage
tonyxrmdavidson Apr 11, 2024
5dbd792
Update openshift-ci/README.md
tonyxrmdavidson Apr 11, 2024
ca3e449
rebasing
tonyxrmdavidson Apr 11, 2024
dc30932
Merge branch 'main' into updateRestScript
tonyxrmdavidson Apr 11, 2024
37138e2
Update openshift-ci/README.md
tonyxrmdavidson Apr 11, 2024
77fc4a9
Merge pull request #43 from tonyxrmdavidson/updateRestScript
tonyxrmdavidson Apr 12, 2024
a1ee20b
Merge pull request #44 from tonyxrmdavidson/addOCIReadme
tonyxrmdavidson Apr 12, 2024
6f72a00
Merge pull request #45 from kubeflow/main
openshift-merge-bot[bot] Apr 16, 2024
4e2a58c
[pull] main from kubeflow:main (#46)
pull[bot] Apr 17, 2024
34bcfbc
This commit explicitly puts model-registry resources into the opendat…
tonyxrmdavidson Apr 17, 2024
7ee172e
Revert "[pull] main from kubeflow:main (#46)" due to squash
tarilabs Apr 18, 2024
2948874
Merge remote-tracking branch 'upstream/main' into tarilabs-20240418-o…
tarilabs Apr 18, 2024
71cd7e8
Merge pull request #49 from tarilabs/tarilabs-20240418-odh-sync
openshift-merge-bot[bot] Apr 18, 2024
38755cc
Merge pull request #50 from kubeflow/main
openshift-merge-bot[bot] Apr 22, 2024
896910e
This commit will remove Trusty-ai from the deployment
tonyxrmdavidson Apr 22, 2024
8b5da49
Merge pull request #51 from tonyxrmdavidson/removetrustyAI
rkubis Apr 23, 2024
33dc210
Update(scripts): Increase API version of Model Registry (#52)
rkubis Apr 23, 2024
5eca863
This commit will change the success label for a 404 (#53)
tonyxrmdavidson Apr 23, 2024
d6808e5
resolve merge conflict
tarilabs Apr 30, 2024
3fe072e
adapt manifests/kustomize/OWNERS to ODH midstream
tarilabs Apr 30, 2024
4945e13
This commit adds a script that will push data to model-registry-db fo…
tonyxrmdavidson Apr 30, 2024
1bd60d9
Merge pull request #56 from tonyxrmdavidson/addTestDataScript
tonyxrmdavidson Apr 30, 2024
d645fea
Merge pull request #55 from tarilabs/tarilabs-20240430-sync
openshift-merge-bot[bot] Apr 30, 2024
dc8f145
This commit will remove the source script for coloured text (#59)
tonyxrmdavidson May 3, 2024
96637a9
Merge pull request #58 from kubeflow/main
openshift-merge-bot[bot] May 5, 2024
bf8393c
Merge pull request #60 from kubeflow/main
openshift-merge-bot[bot] May 13, 2024
7f770ba
Merge sync 'upstream/main' into tarilabs-20240516-sync
tarilabs May 16, 2024
fccaf54
Merge pull request #62 from tarilabs/tarilabs-20240516-sync
openshift-merge-bot[bot] May 16, 2024
3abbcf0
This commit updates the ubi image reference to latest
tonyxrmdavidson May 16, 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
5 changes: 5 additions & 0 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "1"
rules:
- base: main
upstream: kubeflow:main
label: "tide/merge-method-merge"
10 changes: 5 additions & 5 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:
- '.github/dependabot.yml'
- 'docs/**'
env:
IMG_ORG: kubeflow
IMG_ORG: opendatahub
IMG_REPO: model-registry
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PWD: ${{ secrets.DOCKERHUB_TOKEN }}
DOCKER_USER: ${{ secrets.QUAY_USERNAME }}
DOCKER_PWD: ${{ secrets.QUAY_PASSWORD }}
PUSH_IMAGE: true
jobs:
build-image:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
if: env.BUILD_CONTEXT == 'main'
shell: bash
env:
IMG: ${{ env.IMG_ORG }}/${{ env.IMG_REPO }}
IMG: quay.io/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}
BUILD_IMAGE: false # image is already built in "Build and Push Image" step
run: |
docker tag ${{ env.IMG }}:$VERSION ${{ env.IMG }}:latest
Expand All @@ -60,7 +60,7 @@ jobs:
if: env.BUILD_CONTEXT == 'main'
shell: bash
env:
IMG: ${{ env.IMG_ORG }}/${{ env.IMG_REPO }}
IMG: quay.io/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}
BUILD_IMAGE: false # image is already built in "Build and Push Image" step
run: |
docker tag ${{ env.IMG }}:$VERSION ${{ env.IMG }}:main
Expand Down
32 changes: 13 additions & 19 deletions .github/workflows/build-image-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- "docs/**"
- "clients/python/docs/**"
env:
IMG_ORG: kubeflow
IMG_ORG: opendatahub
IMG_REPO: model-registry
PUSH_IMAGE: false
BRANCH: ${{ github.base_ref }}
Expand All @@ -38,29 +38,23 @@ jobs:
node_image: "kindest/node:v1.27.11"
- name: Load Local Registry Test Image
env:
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"
IMG: "quay.io/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"
run: |
kind load docker-image -n chart-testing ${IMG}
- name: Create Test Registry
- name: Deploy Operator With Test Image
env:
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"
IMG: "quay.io/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"
run: |
echo "Deploying operator from model-registry-operator branch ${BRANCH}"
kubectl apply -k "https://github.com/opendatahub-io/model-registry-operator.git/config/default?ref=${BRANCH}"
kubectl set env -n model-registry-operator-system deployment/model-registry-operator-controller-manager REST_IMAGE="${IMG}"
- name: Create Test Registry
run: |
echo "Download kustomize 5.2.1"
mkdir $GITHUB_WORKSPACE/kustomize
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s "5.2.1" "$GITHUB_WORKSPACE/kustomize"
PATH=$GITHUB_WORKSPACE/kustomize:$PATH
echo "Display Kustomize version"
kustomize version
echo "Deploying Model Registry using Manifests; branch ${BRANCH}"
kubectl create namespace kubeflow
cd manifests/kustomize/overlays/db
kustomize edit set image kubeflow/model-registry:latest $IMG
kustomize build | kubectl apply -f -
kubectl apply -k "https://github.com/opendatahub-io/model-registry-operator.git/config/samples/postgres?ref=${BRANCH}"
kubectl get mr
- name: Wait for Test Registry Deployment
run: |
kubectl wait --for=condition=available -n kubeflow deployment/model-registry-db --timeout=5m
kubectl wait --for=condition=available -n kubeflow deployment/model-registry-deployment --timeout=5m
kubectl logs -n kubeflow deployment/model-registry-deployment
kubectl wait --for=condition=Available=true modelregistries/modelregistry-sample --timeout=5m
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -80,6 +74,6 @@ jobs:
pip install dist/*.whl
- name: Connect with Python client
run: |
kubectl port-forward -n kubeflow service/model-registry-service 9090:9090 &
kubectl port-forward service/modelregistry-sample 9090:9090 &
sleep 5
python test/python/test_mr_conn.py localhost 9090
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ jobs:
fi
- name: Unit tests
run: make test-cover
- name: Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.txt
fail_ci_if_error: true
8 changes: 8 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ jobs:
else
nox --python=${{ matrix.python }}
fi
- name: Upload coverage report
uses: codecov/[email protected]
if: always() && matrix.session == 'tests'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.xml
fail_ci_if_error: true
- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ DOCKER ?= docker
# default Dockerfile
DOCKERFILE ?= Dockerfile
# container registry, default to empty (dockerhub) if not explicitly set
IMG_REGISTRY ?=
IMG_REGISTRY ?= quay.io
# container image organization
IMG_ORG ?= kubeflow
IMG_ORG ?= opendatahub
# container image version
IMG_VERSION ?= main
# container image repository
Expand Down
30 changes: 23 additions & 7 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/opendatahub-io/codeflare-operator root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- andreyvelich
- ckadner
- tarilabs
- rareddy
- Tomcli
- zijianjoy
- dhirajsb
- isinyaaa
- lampajr
- nehachopra27
- rareddy
- rkubis
- tarilabs
- tonyxrmdavidson
options: {}
reviewers:
- andreyvelich
- dhirajsb
- isinyaaa
- lampajr
- nehachopra27
- rareddy
- rkubis
- tarilabs
- tonyxrmdavidson
2 changes: 1 addition & 1 deletion csi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 make build

# Use distroless as minimal base image to package the model-registry storage initializer binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
WORKDIR /
# copy the storage initializer binary
COPY --from=builder /workspace/bin/mr-storage-initializer .
Expand Down
2 changes: 0 additions & 2 deletions manifests/kustomize/OWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
approvers:
- tarilabs
- rareddy
- Tomcli
reviewers:
- tarilabs
- rareddy
- Tomcli
2 changes: 1 addition & 1 deletion manifests/kustomize/base/model-registry-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
command:
- /model-registry
- proxy
image: kubeflow/model-registry:latest
image: quay.io/opendatahub/model-registry:latest
# empty placeholder environment for patching
env: []
ports:
Expand Down
34 changes: 34 additions & 0 deletions openshift-ci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Model Registry Deployment and Deployment Test

This deployment of model-registry is deployed via Opendatahub and used the ODH nightly images deployed to an openshfit cluster.

The script will do the following:
* Create a catalogue source pointing to the latest successful nightly ODH image.
* Deploy the opendatahub operator using the catalogue source.
* Deploy a Data Science Cluster.
* Test the model-registry-operator-contoller-manager pods are running.
* Clone the model-registry-operator repository.
* Deploy model-registry using config/samples/mysql configuration files.
* Test the model-registry-db mysql database pod is running
* Test the modelregistry-sample pods are running

## Pre-requisites:

You will need to have an openshift cluster deployed and be oc logged into you cluster as admin.

## Runing the script:

From the root of the repository
```
./openshift-ci/scripts/oc-model-registry-deploy.sh
```

## Runing the openshift-ci

You can start the openshift-ci job to test changes in your Pull Request. To do so put the following command into a comment in your Pull Request
```
/test e2e-odh-mro-optional
```

Previous jobs can be seen [here](https://prow.ci.openshift.org/job-history/gs/test-platform-results/pr-logs/directory/rehearse-49999-pull-ci-opendatahub-io-model-registry-main-e2e-odh-mro-optional)

16 changes: 16 additions & 0 deletions openshift-ci/resources/model-registry-DSCInitialization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: dscinitialization.opendatahub.io/v1
kind: DSCInitialization
metadata:
creationTimestamp: '2024-03-27T16:16:55Z'
finalizers:
- dscinitialization.opendatahub.io/finalizer
generation: 1
labels:
app.kubernetes.io/created-by: opendatahub-operator
app.kubernetes.io/instance: default
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: dscinitialization
app.kubernetes.io/part-of: opendatahub-operator
name: default-dsci
spec:
applicationsNamespace: opendatahub
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: modelregistry.opendatahub.io/v1alpha1
kind: ModelRegistry
metadata:
labels:
app.kubernetes.io/name: modelregistry
app.kubernetes.io/instance: modelregistry-sample
app.kubernetes.io/part-of: model-registry-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: model-registry-operator
name: modelregistry-sample
spec:
# TODO(user): Add fields here
grpc:
port: 9090
rest:
port: 8080
serviceRoute: enabled
mysql:
host: model-registry-db
database: model_registry
username: mlmduser
passwordSecret:
name: model-registry-db
key: database-password
126 changes: 126 additions & 0 deletions openshift-ci/resources/model-registry-operator/mysql-db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
template.openshift.io/expose-uri: mysql://{.spec.clusterIP}:{.spec.ports[?(.name==\mysql\)].port}
name: model-registry-db
spec:
ports:
- name: mysql
nodePort: 0
port: 3306
protocol: TCP
targetPort: 3306
selector:
name: model-registry-db
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: model-registry-db
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
name: model-registry-db
spec:
replicas: 1
revisionHistoryLimit: 0
selector:
matchLabels:
name: model-registry-db
strategy:
type: Recreate
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
name: model-registry-db
spec:
containers:
- env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: database-user
name: model-registry-db
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: database-password
name: model-registry-db
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: database-password
name: model-registry-db
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: database-name
name: model-registry-db
args:
- --datadir
- /var/lib/mysql/datadir
- --default-authentication-plugin=mysql_native_password
image: mysql:8.3.0
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- /bin/bash
- -c
- mysqladmin -u${MYSQL_USER} -p${MYSQL_ROOT_PASSWORD} ping
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
name: mysql
ports:
- containerPort: 3306
protocol: TCP
readinessProbe:
exec:
command:
- /bin/bash
- -c
- mysql -D ${MYSQL_DATABASE} -u${MYSQL_USER} -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'
initialDelaySeconds: 10
timeoutSeconds: 5
securityContext:
capabilities: {}
privileged: false
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /var/lib/mysql
name: model-registry-db-data
dnsPolicy: ClusterFirst
restartPolicy: Always
volumes:
- name: model-registry-db-data
persistentVolumeClaim:
claimName: model-registry-db
- apiVersion: v1
kind: Secret
metadata:
annotations:
template.openshift.io/expose-database_name: '{.data[''database-name'']}'
template.openshift.io/expose-password: '{.data[''database-password'']}'
template.openshift.io/expose-username: '{.data[''database-user'']}'
name: model-registry-db
stringData:
database-name: "model_registry"
database-password: "TheBlurstOfTimes"
database-user: "mlmduser"
kind: List
metadata: {}
Loading
Loading