You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We hope Fluid users could represent the above YAML file by the following line.
126
126
127
127
```python
128
-
skaffold_image_leeroy_web = fluid.Image(
128
+
skaffold_image_leeroy_web = fluid.image_resource(
129
129
url="gcr.io/wangkuiyi/leeroy-web")
130
130
```
131
131
@@ -142,7 +142,7 @@ According to the [document](https://github.com/tektoncd/pipeline/blob/master/doc
142
142
The following example from the [Tekton tutorial](https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md#task-inputs-and-outputs) takes an input resource, an output resource, and two input parameters.
143
143
144
144
```yaml
145
-
goapiVersion: tekton.dev/v1alpha1
145
+
apiVersion: tekton.dev/v1alpha1
146
146
kind: Task
147
147
metadata:
148
148
name: build-docker-image-from-git-source
@@ -185,28 +185,30 @@ We hope Fluid users could represent it by the following Python/Fluid code.
A Pipeline in Tekton defined an ordered series of Tasks. A valid Pipeline declearation
195
-
must include a reference to at last one `Task`, for example:
196
-
197
-
``` yaml
198
-
tasks:
199
-
- name: build-the-image
200
-
taskRef:
201
-
name: build-push
202
-
```
203
+
A Pipeline object is like function declaration.
203
204
204
-
The `Pipeline Tasks` in a Pipeline can be connected and run as a Directed Acyclic Graph(DAG), each of the Pipeline Tasks is a node, which can be connected with:
205
+
A Pipeline in Tekton defined an ordered series of Tasks. A valid Pipeline declaration
206
+
must include a reference to at last one `Task`, The `Pipeline Tasks` in a Pipeline can be connected and run as a Directed Acyclic Graph(DAG), each of the Pipeline Tasks is a node, which can be connected with:
205
207
206
208
- `runAfter`clauses on the `Pipeline Tasks`.
207
209
- `from`clauses on the `PipelineResources` needed by a `Task`.
208
210
209
-
For an example `Pipeline` spec with `runAfter`:
211
+
The following example `Pipeline` spec comes from [Tekton's Pipeline tutorial](https://github.com/tektoncd/pipeline/blob/master/docs/pipelines.md):
210
212
211
213
``` yaml
212
214
- name: lint-repo
@@ -279,44 +281,82 @@ build-app build-frontend
279
281
In Python, a function is like a node of the DAG, which connected by the input
280
282
and of output of the functions.
281
283
282
-
We hope Fluid users can write the following program to express a DAG with `fluid.pipeline`:
284
+
We hope Fluid users can write the following program to express a DAG with `fluid.pipeline` as the following code:
A PipelineRun object is like a function invocation:
330
+
A PipelineRun object is like a function invocation.
331
+
332
+
A PipelineRun object defines a call to a Pipeline. The following is a PipelineRun example from [Tekton's tutorial](https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md#creating-and-running-a-pipeline):
0 commit comments