Skip to content

Commit

Permalink
Sync kubeflow katib manifests v0.13.0 (#2156)
Browse files Browse the repository at this point in the history
* hack: Update katib script to update the README

Signed-off-by: Kimonas Sotirchos <[email protected]>

* Update kubeflow/katib manifests from v0.13.0
  • Loading branch information
kimwnasptd committed Mar 4, 2022
1 parent 74dc2cd commit 889d786
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This repo periodically syncs all official Kubeflow components from their respect
| Jupyter Web App | apps/jupyter/jupyter-web-app/upstream | [v1.5.0-rc.1](https://github.com/kubeflow/kubeflow/tree/v1.5.0-rc.1/components/crud-web-apps/jupyter/manifests) |
| Tensorboards Web App | apps/tensorboard/tensorboards-web-app/upstream | [v1.5.0-rc.1](https://github.com/kubeflow/kubeflow/tree/v1.5.0-rc.1/components/crud-web-apps/tensorboards/manifests) |
| Volumes Web App | apps/volumes-web-app/upstream | [v1.5.0-rc.1](https://github.com/kubeflow/kubeflow/tree/v1.5.0-rc.1/components/crud-web-apps/volumes/manifests) |
| Katib | apps/katib/upstream | [v0.13.0-rc.1](https://github.com/kubeflow/katib/tree/v0.13.0-rc.1/manifests/v1beta1) |
| Katib | apps/katib/upstream | [v0.13.0](https://github.com/kubeflow/katib/tree/v0.13.0/manifests/v1beta1) |
| KFServing | apps/kfserving/upstream | [v0.6.1](https://github.com/kubeflow/kfserving/releases/tag/v0.6.1) |
| KServe | contrib/kserve/upstream | [v0.7.0](https://github.com/kserve/kserve/tree/v0.7.0) |
| Kubeflow Pipelines | apps/pipeline/upstream | [1.8.1](https://github.com/kubeflow/pipelines/tree/1.8.1/manifests/kustomize) |
Expand Down
28 changes: 14 additions & 14 deletions apps/katib/upstream/components/controller/katib-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ data:
metrics-collector-sidecar: |-
{
"StdOut": {
"image": "docker.io/kubeflowkatib/file-metrics-collector:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/file-metrics-collector:v0.13.0"
},
"File": {
"image": "docker.io/kubeflowkatib/file-metrics-collector:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/file-metrics-collector:v0.13.0"
},
"TensorFlowEvent": {
"image": "docker.io/kubeflowkatib/tfevent-metrics-collector:v0.13.0-rc.1",
"image": "docker.io/kubeflowkatib/tfevent-metrics-collector:v0.13.0",
"resources": {
"limits": {
"memory": "1Gi"
Expand All @@ -24,44 +24,44 @@ data:
suggestion: |-
{
"random": {
"image": "docker.io/kubeflowkatib/suggestion-hyperopt:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-hyperopt:v0.13.0"
},
"tpe": {
"image": "docker.io/kubeflowkatib/suggestion-hyperopt:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-hyperopt:v0.13.0"
},
"grid": {
"image": "docker.io/kubeflowkatib/suggestion-chocolate:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-chocolate:v0.13.0"
},
"hyperband": {
"image": "docker.io/kubeflowkatib/suggestion-hyperband:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-hyperband:v0.13.0"
},
"bayesianoptimization": {
"image": "docker.io/kubeflowkatib/suggestion-skopt:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-skopt:v0.13.0"
},
"cmaes": {
"image": "docker.io/kubeflowkatib/suggestion-goptuna:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-goptuna:v0.13.0"
},
"sobol": {
"image": "docker.io/kubeflowkatib/suggestion-goptuna:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-goptuna:v0.13.0"
},
"multivariate-tpe": {
"image": "docker.io/kubeflowkatib/suggestion-optuna:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-optuna:v0.13.0"
},
"enas": {
"image": "docker.io/kubeflowkatib/suggestion-enas:v0.13.0-rc.1",
"image": "docker.io/kubeflowkatib/suggestion-enas:v0.13.0",
"resources": {
"limits": {
"memory": "200Mi"
}
}
},
"darts": {
"image": "docker.io/kubeflowkatib/suggestion-darts:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/suggestion-darts:v0.13.0"
}
}
early-stopping: |-
{
"medianstop": {
"image": "docker.io/kubeflowkatib/earlystopping-medianstop:v0.13.0-rc.1"
"image": "docker.io/kubeflowkatib/earlystopping-medianstop:v0.13.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
spec:
containers:
- name: training-container
image: docker.io/kubeflowkatib/mxnet-mnist:v0.13.0-rc.1
image: docker.io/kubeflowkatib/mxnet-mnist:v0.13.0
command:
- "python3"
- "/opt/mxnet-mnist/mnist.py"
Expand All @@ -32,7 +32,7 @@ data:
spec:
containers:
- name: training-container
image: docker.io/kubeflowkatib/enas-cnn-cifar10-cpu:v0.13.0-rc.1
image: docker.io/kubeflowkatib/enas-cnn-cifar10-cpu:v0.13.0
command:
- python3
- -u
Expand All @@ -53,7 +53,7 @@ data:
spec:
containers:
- name: pytorch
image: docker.io/kubeflowkatib/pytorch-mnist:v0.13.0-rc.1
image: docker.io/kubeflowkatib/pytorch-mnist:v0.13.0
imagePullPolicy: Always
command:
- "python3"
Expand All @@ -68,7 +68,7 @@ data:
spec:
containers:
- name: pytorch
image: docker.io/kubeflowkatib/pytorch-mnist:v0.13.0-rc.1
image: docker.io/kubeflowkatib/pytorch-mnist:v0.13.0
imagePullPolicy: Always
command:
- "python3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ resources:
images:
- name: docker.io/kubeflowkatib/katib-controller
newName: docker.io/kubeflowkatib/katib-controller
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-db-manager
newName: docker.io/kubeflowkatib/katib-db-manager
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-ui
newName: docker.io/kubeflowkatib/katib-ui
newTag: v0.13.0-rc.1
newTag: v0.13.0

patchesStrategicMerge:
- patches/katib-cert-injection.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ resources:
images:
- name: docker.io/kubeflowkatib/katib-controller
newName: docker.io/kubeflowkatib/katib-controller
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-db-manager
newName: docker.io/kubeflowkatib/katib-db-manager
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-ui
newName: docker.io/kubeflowkatib/katib-ui
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/cert-generator
newName: docker.io/kubeflowkatib/cert-generator
newTag: v0.13.0-rc.1
newTag: v0.13.0
patchesStrategicMerge:
- patches/db-manager.yaml
# Modify katib-mysql-secrets with parameters for the DB.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ resources:
images:
- name: docker.io/kubeflowkatib/katib-controller
newName: docker.io/kubeflowkatib/katib-controller
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-db-manager
newName: docker.io/kubeflowkatib/katib-db-manager
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-ui
newName: docker.io/kubeflowkatib/katib-ui
newTag: v0.13.0-rc.1
newTag: v0.13.0

patchesJson6902:
# Annotate Service to delegate TLS-secret generation to OpenShift service controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ resources:
images:
- name: docker.io/kubeflowkatib/katib-controller
newName: docker.io/kubeflowkatib/katib-controller
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-db-manager
newName: docker.io/kubeflowkatib/katib-db-manager
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-ui
newName: docker.io/kubeflowkatib/katib-ui
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/cert-generator
newName: docker.io/kubeflowkatib/cert-generator
newTag: v0.13.0-rc.1
newTag: v0.13.0
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ resources:
images:
- name: docker.io/kubeflowkatib/katib-controller
newName: docker.io/kubeflowkatib/katib-controller
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-db-manager
newName: docker.io/kubeflowkatib/katib-db-manager
newTag: v0.13.0-rc.1
newTag: v0.13.0
- name: docker.io/kubeflowkatib/katib-ui
newName: docker.io/kubeflowkatib/katib-ui
newTag: v0.13.0-rc.1
newTag: v0.13.0

patchesStrategicMerge:
- patches/remove-namespace.yaml
Expand Down
7 changes: 7 additions & 0 deletions hack/sync-katib-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,15 @@ cp $SRC_DIR/manifests/v1beta1 $DST_DIR -r

echo "Successfully copied all manifests."

echo "Updating README..."
SRC_TXT="\[.*\](https://github.com/kubeflow/katib/tree/.*/manifests/v1beta1)"
DST_TXT="\[$COMMIT\](https://github.com/kubeflow/katib/tree/$COMMIT/manifests/v1beta1)"

sed -i "s|$SRC_TXT|$DST_TXT|g" ${MANIFESTS_DIR}/README.md

# DEV: Comment out these commands when local testing
echo "Committing the changes..."
cd $MANIFESTS_DIR
git add apps
git add README.md
git commit -m "Update kubeflow/katib manifests from ${COMMIT}"

0 comments on commit 889d786

Please sign in to comment.