Skip to content

Commit 01dc64a

Browse files
authored
Merge pull request #2689 from joejstuart/EC-1371
Remove hardcoded worker count
2 parents 54692c3 + f755589 commit 01dc64a

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

docs/modules/ROOT/pages/verify-conforma-konflux-ta.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ paths can be provided by using the `:` separator.
5555
*EXTRA_RULE_DATA* (`string`):: Merge additional Rego variables into the policy data. Use syntax "key=value,key2=value2..."
5656
*TIMEOUT* (`string`):: This param is deprecated and will be removed in future. Its value is ignored. EC will be run without a timeout. (If you do want to apply a timeout use the Tekton task timeout.)
5757

58-
*WORKERS* (`string`):: Number of parallel workers to use for policy evaluation. This parameter is currently not used. All policy evaluations are run with 35 workers.
58+
*WORKERS* (`string`):: Number of parallel workers to use for policy evaluation.
5959

6060
+
61-
*Default*: `35`
61+
*Default*: `4`
6262
*SINGLE_COMPONENT* (`string`):: Reduce the Snapshot to only the component whose build caused the Snapshot to be created
6363
+
6464
*Default*: `false`

tasks/verify-conforma-konflux-ta/0.1/verify-conforma-konflux-ta.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ spec:
128128
- name: WORKERS
129129
type: string
130130
description: >
131-
Number of parallel workers to use for policy evaluation. This parameter is currently not used. All
132-
policy evaluations are run with 35 workers.
133-
default: "35"
131+
Number of parallel workers to use for policy evaluation.
132+
default: "4"
134133

135134
- name: SINGLE_COMPONENT
136135
description: Reduce the Snapshot to only the component whose build caused the Snapshot to be created
@@ -275,8 +274,7 @@ spec:
275274
- "$(params.REKOR_HOST)"
276275
- "--ignore-rekor=$(params.IGNORE_REKOR)"
277276
- "--workers"
278-
# NOTE: This value is temporarily hardcoded instead of using the WORKERS parameter.
279-
- "35"
277+
- "$(params.WORKERS)"
280278
# NOTE: The syntax below is required to negate boolean parameters
281279
- "--info=$(params.INFO)"
282280
# Fresh versions of ec support "--timeout=0" to indicate no timeout, but this would break
@@ -322,9 +320,9 @@ spec:
322320
computeResources:
323321
requests:
324322
cpu: 250m
325-
memory: 8Gi
323+
memory: 2Gi
326324
limits:
327-
memory: 8Gi
325+
memory: 2Gi
328326
volumeMounts:
329327
- name: trusted-ca
330328
mountPath: /etc/pki/tls/certs/ca-custom-bundle.crt

0 commit comments

Comments
 (0)