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
change resource-verification-mode to verification-no-match-policy
This commits changes trusted resources feature flag from
resource-verification-mode to verification-no-match-policy. This is a
backward imcompatiable change as discussed in TEP--0091. Before this
commit the feature flag is used to skip/enforce the verification. This
commit changes this to check the existence of matched
VerificationPolicy. So to enable the verification, users just need to
apply VerificationPolicy to match the resources. To disable the
verification, users need to remove the policies and set the
verification-no-match-policy to allow (by default).
Signed-off-by: Yongxuan Zhang [email protected]
Copy file name to clipboardExpand all lines: docs/additional-configs.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
---
3
3
title: "Additional Configuration Options"
4
4
linkTitle: "Additional Configuration Options"
5
-
weight: 109
5
+
weight: 109
6
6
description: >
7
7
Additional configurations when installing Tekton Pipelines
8
8
---
9
9
-->
10
-
10
+
11
11
This document describes additional options to configure your Tekton Pipelines
12
12
installation.
13
13
@@ -98,7 +98,7 @@ Environment variables can be configured in the following ways, mentioned in orde
98
98
3. Environment variables specified via a `default` `PodTemplate`.
99
99
4. Environment variables specified via a `PodTemplate`.
100
100
101
-
The environment variables specified by a `PodTemplate` supercedes all other ways of specifying environment variables. However, there exists a configuration i.e. `default-forbidden-env`, the environment variable specified in this list cannot be updated via a `PodTemplate`.
101
+
The environment variables specified by a `PodTemplate` supercedes all other ways of specifying environment variables. However, there exists a configuration i.e. `default-forbidden-env`, the environment variable specified in this list cannot be updated via a `PodTemplate`.
102
102
103
103
For example:
104
104
@@ -238,7 +238,7 @@ The default is `false`. For more information, see the [associated issue](https:/
238
238
most stable features to be used. Set it to "alpha" to allow [alpha
239
239
features](#alpha-features) to be used.
240
240
241
-
- `resource-verification-mode`: Setting this flag to "enforce" will enforce verification of tasks/pipeline. Failing to verify will fail the taskrun/pipelinerun. "warn" will only log the err message and "skip" will skip the whole verification.
241
+
- `verification-no-match-policy`: Setting this flag to "enforce" will enforce verification of tasks/pipeline. Failing to verify will fail the taskrun/pipelinerun. "warn" will only log the err message and "skip" will skip the whole verification.
242
242
- `results-from`: set this flag to "termination-message" to use the container's termination message to fetch results from. This is the default method of extracting results. Set it to "sidecar-logs" to enable use of a results sidecar logs to extract results instead of termination message.
243
243
244
244
- `enable-provenance-in-status`: set this flag to "true" to enable recording
@@ -285,7 +285,7 @@ Features currently in "alpha" are:
@@ -313,7 +313,7 @@ To exceed this limit of 4096 bytes, you can enable larger results using sidecar
313
313
314
314
**Note**: to enable this feature, you need to grant `get` access to all `pods/log` to the `Tekton pipeline controller`. This means that the tekton pipeline controller has the ability to access the pod logs.
315
315
316
-
1. Create a cluster role and rolebinding by applying the following spec to provide log access to `tekton-pipelines-controller`.
316
+
1. Create a cluster role and rolebinding by applying the following spec to provide log access to `tekton-pipelines-controller`.
3. If you want the size per result to be something other than 4096 bytes, you can set the `max-result-size` feature flag in bytes by setting `max-result-size: 8192(whatever you need here)`. **Note:** The value you can set here cannot exceed the size of the CRD limit of 1.5 MB.
329
-
329
+
330
330
```
331
331
kubectl patch cm feature-flags -n tekton-pipelines -p '{"data":{"max-result-size":"<VALUE-IN-BYTES>"}}'
Copy file name to clipboardExpand all lines: pkg/apis/config/feature_flags.go
+27-20Lines changed: 27 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,14 @@ const (
33
33
AlphaAPIFields="alpha"
34
34
// BetaAPIFields is the value used for "enable-api-fields" when beta APIs should be usable as well.
35
35
BetaAPIFields="beta"
36
-
// EnforceResourceVerificationMode is the value used for "resource-verification-mode" when verification is applied and fail the
36
+
// DenyNoMatchPolicy is the value used for "verification-no-match-policy" when verification is applied and fail the
37
37
// TaskRun or PipelineRun when verification fails
38
-
EnforceResourceVerificationMode="enforce"
39
-
// WarnResourceVerificationMode is the value used for "resource-verification-mode" when verification is applied but only log
38
+
DenyNoMatchPolicy="deny"
39
+
// WarnNoMatchPolicy is the value used for "verification-no-match-policy" when verification is applied but only log
40
40
// the warning when verification fails
41
-
WarnResourceVerificationMode="warn"
42
-
// SkipResourceVerificationMode is the value used for "resource-verification-mode" when verification is skipped
43
-
SkipResourceVerificationMode="skip"
41
+
WarnNoMatchPolicy="warn"
42
+
// AllowNoMatchPolicy is the value used for "verification-no-match-policy" when verification is skipped
43
+
AllowNoMatchPolicy="allow"
44
44
// ResultExtractionMethodTerminationMessage is the value used for "results-from" as a way to extract results from tasks using kubernetes termination message.
0 commit comments