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
@@ -108,6 +115,57 @@ If the custom task controller knows how to interpret the parameter value, it
108
115
will do so. It might enforce that some parameter values must be specified, or
109
116
reject unknown parameter values.
110
117
118
+
### Specifying Workspaces, Service Account, and Pod Template
119
+
120
+
A `Run` object can specify workspaces, a service account name, or a pod template.
121
+
These are intended to be used with custom tasks that create Pods or other resources that embed a Pod specification.
122
+
The custom task can use these specifications to construct the Pod specification.
123
+
Not all custom tasks will support these values.
124
+
Consult the documentation of the custom task that you are using to determine whether these values apply.
125
+
126
+
#### Specifying workspaces
127
+
128
+
If the custom task supports it, you can provide [`Workspaces`](workspaces.md) to share data with the custom task.
129
+
130
+
```yaml
131
+
spec:
132
+
workspaces:
133
+
- name: my-workspace
134
+
emptyDir: {}
135
+
```
136
+
137
+
Consult the documentation of the custom task that you are using to determine whether it supports workspaces and how to name them.
138
+
139
+
#### Specifying a ServiceAccount
140
+
141
+
If the custom task supports it, you can execute the `Run` with a specific set of credentials by
142
+
specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `Run`
143
+
definition. If you do not explicitly specify this, the `Run` executes with the service account
144
+
specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `Runs`
145
+
will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
146
+
set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
147
+
148
+
```yaml
149
+
spec:
150
+
serviceAccountName: my-account
151
+
```
152
+
153
+
Consult the documentation of the custom task that you are using to determine whether it supports a service account name.
154
+
155
+
#### Specifying a pod template
156
+
157
+
If the custom task supports it, you can specify a [`Pod` template](podtemplates.md) configuration that the custom task will
158
+
use to configure Pods (or other resources that embed a Pod specification) that it creates.
159
+
160
+
```yaml
161
+
spec:
162
+
podTemplate:
163
+
securityContext:
164
+
runAsUser: 1001
165
+
```
166
+
167
+
Consult the documentation of the custom task that you are using to determine whether it supports a pod template.
168
+
111
169
## Monitoring execution status
112
170
113
171
As your `Run` executes, its `status` field accumulates information on the
0 commit comments