Skip to content

Commit 21f2a03

Browse files
mramendiopenshift-cherrypick-robot
authored and
openshift-cherrypick-robot
committed
RHDEVDOCS 6421 use secret_ref: instead of secretRef:
1 parent d6fed52 commit 21f2a03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/op-custom-parameter-expansion.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can use custom parameters in the following scenarios:
1414
1515
[NOTE]
1616
====
17-
Use the custom parameter expansion feature only when you cannot use the Tekton `PipelineRun` parameters because Tekton parameters are defined in a `Pipeline` resource and customized alongside it inside a Git repository. However, custom parameters are defined and customized where the `Repository` CR is located. So, you cannot manage your CI/CD pipeline from a single point.
17+
Use the custom parameter expansion feature only when you cannot use the Tekton `PipelineRun` parameters because Tekton parameters are defined in a `Pipeline` resource and customized alongside it inside a Git repository. However, custom parameters are defined and customized where the `Repository` CR is located. Therefore, you cannot manage your CI/CD pipeline from a single point.
1818
====
1919

2020
The following example shows a custom parameter named `company` in the `Repository` CR:
@@ -39,15 +39,15 @@ You can also retrieve the value for a custom parameter from a Kubernetes secret,
3939
spec:
4040
params:
4141
- name: company
42-
secretRef:
42+
secret_ref:
4343
name: my-secret
4444
key: companyname
4545
...
4646
----
4747

4848
{pac} parses and uses custom parameters in the following manner:
4949

50-
* If you have a `value` and a `secretRef` defined, {pac} uses the `value`.
50+
* If you have a `value` and a `secret_ref` defined, {pac} uses the `value`.
5151
* If you do not have a `name` in the `params` section, {pac} does not parse the parameter.
5252
* If you have multiple `params` with the same `name`, {pac} uses the last parameter.
5353

0 commit comments

Comments
 (0)