From 61d58c72c93e0be7901ededfd455096e535232a8 Mon Sep 17 00:00:00 2001 From: Christie Wilson Date: Wed, 8 Apr 2020 10:02:56 -0400 Subject: [PATCH] Update dev docs with inverted resources/inputs/outputs With https://github.com/tektoncd/pipeline/issues/1185 we resolved a lot of confusion and inconsistency around how we nested things with input/output, but we didn't update our developer docs :( In #2319 we pointed someone toward these docs and the person ended up using the old syntax and being confused :( --- docs/developers/README.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/developers/README.md b/docs/developers/README.md index 40e400f0f89..6655a6141e7 100644 --- a/docs/developers/README.md +++ b/docs/developers/README.md @@ -59,8 +59,8 @@ expected in directory path `/workspace/output/resource_name`. name: get-gcs-task namespace: default spec: - outputs: - resources: + resources: + outputs: - name: gcs-workspace type: storage ``` @@ -76,8 +76,8 @@ expected in directory path `/workspace/output/resource_name`. name: get-gcs-task namespace: default spec: - outputs: - resources: + resources: + outputs: - name: gcs-workspace type: storage targetPath: /workspace/outputstuff @@ -95,13 +95,12 @@ expected in directory path `/workspace/output/resource_name`. name: get-gcs-task namespace: default spec: - inputs: - resources: + resources: + inputs: - name: gcs-workspace type: storage targetPath: random-space - outputs: - resources: + outputs: - name: gcs-workspace type: storage ``` @@ -117,12 +116,11 @@ expected in directory path `/workspace/output/resource_name`. name: get-gcs-task namespace: default spec: - inputs: - resources: + resources: + inputs: - name: gcs-workspace type: storage - outputs: - resources: + outputs: - name: gcs-workspace type: storage ```