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
This commit introduces a new `default-resolver-type` field to the `config-defaults` ConfigMap, which configures the default resolver type to be used when the `resolver` is not explicitly provided in the input.
Supporting the default resolver type improves simplicity at the authoring time. More details can be found in [TEP-0113: Conifgure Default Resolver].
/kind feature
[TEP-0113: Conifgure Default Resolver]: https://github.com/tektoncd/community/blob/main/teps/0133-configure-default-resolver.md
Copy file name to clipboardExpand all lines: docs/additional-configs.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ _In the above example the environment variable `TEST_TEKTON` will not be overrid
147
147
148
148
## Customizing basic execution parameters
149
149
150
-
You can specify your own values that replace the default service account (`ServiceAccount`), timeout (`Timeout`), and Pod template (`PodTemplate`) values used by Tekton Pipelines in `TaskRun` and `PipelineRun` definitions. To do so, modify the ConfigMap `config-defaults` with your desired values.
150
+
You can specify your own values that replace the default service account (`ServiceAccount`), timeout (`Timeout`), resolver (`Resolver`), and Pod template (`PodTemplate`) values used by Tekton Pipelines in `TaskRun` and `PipelineRun` definitions. To do so, modify the ConfigMap `config-defaults` with your desired values.
151
151
152
152
The example below customizes the following:
153
153
@@ -156,9 +156,10 @@ The example below customizes the following:
156
156
- the default `app.kubernetes.io/managed-by` label is applied to all Pods created to execute `TaskRuns`.
157
157
- the default Pod template to include a node selector to select the node where the Pod will be scheduled by default. A list of supported fields is available [here](https://github.com/tektoncd/pipeline/blob/main/docs/podtemplates.md#supported-fields).
158
158
For more information, see [`PodTemplate` in `TaskRuns`](./taskruns.md#specifying-a-pod-template) or [`PodTemplate` in `PipelineRuns`](./pipelineruns.md#specifying-a-pod-template).
159
-
- the default `Workspace` configuration can be set for any `Workspaces` that a Task declares but that a TaskRun does not explicitly provide
159
+
- the default `Workspace` configuration can be set for any `Workspaces` that a Task declares but that a TaskRun does not explicitly provide.
160
160
- the default maximum combinations of `Parameters` in a `Matrix` that can be used to fan out a `PipelineTask`. For
161
161
more information, see [`Matrix`](matrix.md).
162
+
- the default resolver type to `git`.
162
163
163
164
```yaml
164
165
apiVersion: v1
@@ -175,6 +176,7 @@ data:
175
176
default-task-run-workspace-binding: |
176
177
emptyDir: {}
177
178
default-max-matrix-combinations-count: "1024"
179
+
default-resolver-type: "git"
178
180
```
179
181
180
182
**Note:** The `_example` key in the provided [config-defaults.yaml](./../config/config-defaults.yaml)
@@ -288,6 +290,7 @@ Features currently in "alpha" are:
Copy file name to clipboardExpand all lines: docs/resolution.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ For new users getting started with Tekton Pipeline remote resolution, check out
21
21
These resolvers are enabled by setting the appropriate feature flag in the `resolvers-feature-flags`
22
22
ConfigMap in the `tekton-pipelines-resolvers` namespace. See the [section in install.md](install.md#configuring-built-in-remote-task-and-pipeline-resolution) for details.
23
23
24
+
The default resolver type can be configured by the `default-resolver-type` field in the `config-defaults` ConfigMap (`alpha` feature). See [additional-configs.md](./additional-configs.md) for details.
25
+
24
26
## Developer Howto: Writing a Resolver From Scratch
25
27
26
28
For a developer getting started with writing a new Resolver, see
0 commit comments