Skip to content

Commit a5a560a

Browse files
committed
fix script to update boilerplate
1 parent 9646f0f commit a5a560a

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

examples/v1beta1/kubeflow-pipelines/mpi-job-horovod.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1+
# Copyright 2022 The Kubeflow Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Kubeflow Pipeline with Katib component.
216

317
# In this example you will create Katib Experiment using Bayesian optimization algorithm.
418
# As a Trial template you will use Kubeflow MPIJob with Horovod MNIST training container.
519
# After that, you will compile a Kubeflow Pipeline with your Katib Experiment.
620
# Use Kubeflow Pipelines UI to upload the Pipeline and create the Experiment and Run.
721

8-
# This Experiment is similar to this: https://github.com/kubeflow/katib/blob/master/examples/v1beta1/kubeflow-training-operator/mpijob-horovod.yaml
22+
# This Experiment is similar to this:
23+
# https://github.com/kubeflow/katib/blob/master/examples/v1beta1/kubeflow-training-operator/mpijob-horovod.yaml
924
# Check the training container source code here: https://github.com/kubeflow/mpi-operator/tree/master/examples/horovod.
1025

1126
# Note: To run this example, your Kubernetes cluster should run MPIJob operator.

hack/boilerplate/update-boilerplate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done
5454
# ------------------ Python files ------------------
5555
# Exclude gRPC manager and __init__.py files from the search.
5656
find_python_files=$(
57-
find ./cmd ./pkg ./hack ./test ./examples/v1beta1/trial-images -name "*.py" \
57+
find ./cmd ./pkg ./hack ./test ./examples -name "*.py" \
5858
! -path "./pkg/apis/manager/*" \
5959
! -path "*__init__.py" \
6060
! -path "./examples/v1beta1/trial-images/mxnet-mnist/*"
@@ -75,7 +75,7 @@ for i in ${find_python_files}; do
7575
done
7676

7777
# ------------------ Shell files ------------------
78-
find_shell_files=$(find ./pkg ./hack ./scripts ./test ./examples/v1beta1/kind-cluster -name "*.sh")
78+
find_shell_files=$(find ./pkg ./hack ./scripts ./test ./examples -name "*.sh")
7979

8080
for i in ${find_shell_files}; do
8181
# If the 3rd line starts with "# Copyright", remove the boilerplate.

0 commit comments

Comments
 (0)