Skip to content

[pipelines-docs-1.19] RHDEVDOCS 6421 use secret_ref: instead of secretRef: #92157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/op-custom-parameter-expansion.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can use custom parameters in the following scenarios:

[NOTE]
====
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.
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.
====

The following example shows a custom parameter named `company` in the `Repository` CR:
Expand All @@ -39,15 +39,15 @@ You can also retrieve the value for a custom parameter from a Kubernetes secret,
spec:
params:
- name: company
secretRef:
secret_ref:
name: my-secret
key: companyname
...
----

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

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

Expand Down