Skip to content

Commit

Permalink
Migrate KFServing to new test-infra (kubeflow#881)
Browse files Browse the repository at this point in the history
* Add Dockerfile for daily-worker periodic job

* Migrate kfserving to new test-infra
  • Loading branch information
Yao Xiao authored Jan 30, 2021
1 parent d5cfb2b commit 2501a34
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 34 deletions.
7 changes: 7 additions & 0 deletions aws-images/daily-worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM amazon/aws-cli

COPY ./update-iam-assume-role-policy.sh /usr/local/bin/

RUN chmod a+x /usr/local/bin/*.sh

ENTRYPOINT ["/usr/local/bin/update-iam-assume-role-policy.sh"]
26 changes: 26 additions & 0 deletions aws-images/daily-worker/update-iam-assume-role-policy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This shell script is used to sync Assume-role Policy from upstream to AWS IAM

set -o errexit
set -o nounset
set -o pipefail

echo "Downloading Trust-policy.json"
curl ${TRUST_POLICY} -o trust-policy.json
echo "Update AWS IAM role ${ROLE_NAME} assume role policy"
aws iam update-assume-role-policy --role-name ${ROLE_NAME} --policy-document file://trust-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,6 @@ data:
value: v1.2-branch
presubmits:
kubeflow/kfserving:
- name: kubeflow-kfserving-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
- master
decorate: false
labels:
preset-aws-cred: "true"
always_run: true
spec:
containers:
- image: 527798164940.dkr.ecr.us-west-2.amazonaws.com/aws-kubeflow-ci/test-worker:v1.2-branch
imagePullPolicy: Always
command: ["/usr/local/bin/run_workflows.sh"]
kubeflow/tf-operator:
- name: kubeflow-tf-operator-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ data:
join_org_url: "https://github.com/kubeflow/kubeflow/blob/master/CONTRIBUTING.md"
only_org_members: true
plugins:
kubeflow/kfserving:
- trigger
kubeflow/tf-operator:
- trigger
kind: ConfigMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@ data:
imagePullPolicy: Always
command: ["/usr/local/bin/run_workflows.sh"]
kubeflow/kfserving:
- name: kubeflow-kfserving-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
- master
decorate: false
labels:
preset-aws-cred: "true"
always_run: true
spec:
containers:
- image: public.ecr.aws/j1r0q0g6/kubeflow-testing:latest
imagePullPolicy: Always
command: ["/usr/local/bin/run_workflows.sh"]
kubeflow/manifests:
- name: kubeflow-manifests-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ data:
- trigger
kubeflow/kfctl:
- trigger
kubeflow/kfserving:
- trigger
kubeflow/kubeflow:
- trigger
kubeflow/manifests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,6 @@ periodics:
value: v1.2-branch

presubmits:

kubeflow/kfserving:
- name: kubeflow-kfserving-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
- master
decorate: false
labels:
preset-aws-cred: "true"
always_run: true
spec:
containers:
- image: 527798164940.dkr.ecr.us-west-2.amazonaws.com/aws-kubeflow-ci/test-worker:v1.2-branch
imagePullPolicy: Always
command: ["/usr/local/bin/run_workflows.sh"]

kubeflow/tf-operator:
- name: kubeflow-tf-operator-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ triggers:
join_org_url: "https://github.com/kubeflow/kubeflow/blob/master/CONTRIBUTING.md"
only_org_members: true
plugins:
kubeflow/kfserving:
- trigger
kubeflow/tf-operator:
- trigger
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,20 @@ presubmits:
imagePullPolicy: Always
command: ["/usr/local/bin/run_workflows.sh"]

kubeflow/kfserving:
- name: kubeflow-kfserving-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
- master
decorate: false
labels:
preset-aws-cred: "true"
always_run: true
spec:
containers:
- image: public.ecr.aws/j1r0q0g6/kubeflow-testing:latest
imagePullPolicy: Always
command: ["/usr/local/bin/run_workflows.sh"]

kubeflow/manifests:
- name: kubeflow-manifests-presubmit # convention: (job type)-(repo name)-(suite name)-(test type)
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins:
- trigger
kubeflow/kfctl:
- trigger
kubeflow/kfserving:
- trigger
kubeflow/kubeflow:
- trigger
kubeflow/manifests:
Expand Down

0 comments on commit 2501a34

Please sign in to comment.