Add Plank configuration for pod utilities.
The cluster configuration is currently missing necessary details to
run jobs / report results, specifically the container images that facilitate
this and the GCS bucket to which result logs/artifacts are uploaded.
Change-Id: I46906eed69c4df6896ba1a670bb8f6e0a92a4d4b
Signed-off-by: Avi Kondareddy <avikr@google.com>
diff --git a/README.md b/README.md
index e14ca9c..a8d3369 100644
--- a/README.md
+++ b/README.md
@@ -153,9 +153,18 @@
container. We found that running the container privileged and mounting a
emptydir at /dev/shm fixed KUnit build errors. There may be more secure methods,
but as prow doesn't expose job containers to external resources, this solution
-results in the cleanest Dockerfile. We are using the decorated prow job which is
+results in the cleanest Dockerfile.
+
+We are using the decorated prow job which is
recommended for all new prowjobs and detailed at
[test-infra/prow/pod-utilities.md](https://github.com/kubernetes/test-infra/blob/master/prow/pod-utilities.md).
+These utilities perform setup and capture output from the job container.
+This requires specifying a GCS Cloud Bucket in the Plank configuration
+in order to upload logs / artifacts from job container. Fill in the TODO's in
+[config.yaml](config.yaml) with your bucket details. See Prow API documentation
+under [DecorationConfig](https://godoc.org/k8s.io/test-infra/prow/apis/prowjobs/v1#DecorationConfig)
+and test-infra's [default config.yaml](https://github.com/kubernetes/test-infra/blob/master/prow/config.yaml)
+for details.
## Job Script
diff --git a/config.yaml b/config.yaml
index aaa8ae2..67fbdfb 100644
--- a/config.yaml
+++ b/config.yaml
@@ -12,6 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+plank:
+ default_decoration_config:
+ utility_images:
+ clonerefs: "gcr.io/k8s-prow/clonerefs:v20181203-6a1345b"
+ initupload: "gcr.io/k8s-prow/initupload:v20181203-6a1345b"
+ entrypoint: "gcr.io/k8s-prow/entrypoint:v20181203-6a1345b"
+ sidecar: "gcr.io/k8s-prow/sidecar:v20181203-6a1345b"
+ gcs_configuration:
+ bucket: "TODO"
+ path_strategy: "TODO"
+ default_org: "TODO"
+ default_repo: "TODO"
+ gcs_credentials_secret: "TODO"
+
presubmits:
https://kunit.googlesource.com/linux:
- name: kunit-test-presubmit