From 2fe1c73efbf7a7fad1a8625b6fef876bdc407e13 Mon Sep 17 00:00:00 2001 From: Sasha Kavalchuk Date: Thu, 7 Aug 2025 13:14:44 +0200 Subject: [PATCH] made requested changes --- _docs/promotions/promotion-components.md | 6 +++--- _docs/promotions/yaml/promotion-template-crd.md | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/_docs/promotions/promotion-components.md b/_docs/promotions/promotion-components.md index ebbaaf6cf..722a2f391 100644 --- a/_docs/promotions/promotion-components.md +++ b/_docs/promotions/promotion-components.md @@ -142,10 +142,10 @@ Code samples and internal references use `isc`. | Environments |N/A | None | | Product |`isc/resources/configuration/products` | Git user token | | Applications |Git Source associated with Runtime | Git user token | -| Promotion Flow |`isc/configuration/promotion-flows`| Git user token | -| Promotion Policy |`isc/configuration/promotion-policies`| Git user token | +| Promotion Flow |`isc/resources/configuration/promotion-flows`| Git user token | +| Promotion Policy |`isc/resources/configuration/promotion-policies`| Git user token | | Promotion Workflows |`isc/resources/control-planes/promotion-workflows` |Git user token | -| Promotion Template |`isc/configuration/promotion-templates`| N/A | +| Promotion Template |`isc/resources/configuration/promotion-templates`| N/A | diff --git a/_docs/promotions/yaml/promotion-template-crd.md b/_docs/promotions/yaml/promotion-template-crd.md index d64a8afc9..03485dfa2 100644 --- a/_docs/promotions/yaml/promotion-template-crd.md +++ b/_docs/promotions/yaml/promotion-template-crd.md @@ -25,6 +25,10 @@ kind: PromotionTemplate metadata: name: base-helm # any valid k8s name spec: + applicationSourceSelector: + matchLabels: + codefresh.io/product: loans + priority: 1 versionSource: # get release version from this file file: Chart.yaml jsonPath: $appVersion @@ -52,7 +56,7 @@ spec: | `spec.applicationSourceSelector` | The label used to match the application to which to apply the Promotion Template. Application selectors conform to Kubernetes _label selectors_, defined as `matchLabels` with `key-value` pairs, `matchExpressions` with `key-operator-value` arrays, or a combination of both. The values identify all the Promotion Template manifests that match the specific application or applications within the target environment.| - | Required| | `spec.applicationSourceSelector.matchLabels` | One or more `key-value` pairs, where each pair is equivalent to a condition in `matchExpressions`. If there are multiple `key-value` pairs, the AND operator is used.
For example:{::nomarkdown}{:/}| object | Optional | | `spec.applicationSourceSelector.matchExpressions` | List of expressions, each with a `key`, an `operator`, and a set of `values`.
The `operator` defines the relationship between the `key` and its `values`, and can be one of the following: {::nomarkdown}{:/}For example:
`key: codefresh.io/product` and `operator: Exists` applies the Promotion Template to any application containing the label `codefresh.io/product`.| string | Optional | -| `spec.priority` | The priority of the Promotion Template, determining the order in which Promotion Templates are applied when multiple Promotion Templates match the same application. The priority is ranked in ascending order, ranging from 0 or a negative number to higher values. |integer |Optional| +| `spec.priority` | The priority of the Promotion Template, determining the order in which Promotion Templates are applied when multiple Promotion Templates match the same application. The priority is ranked in ascending order, ranging from 0 or a negative number to higher values. |integer | Required | | `spec.versionSource` | The location of the file and the attribute in the file from which to extract the product's application release version. This is the version displayed in the Product, Environment, and GitOps Apps dashboards.| - |Required | | `spec.versionSource.file` | The file path relative to the application's file path from which to extract the application's release version. For example, `chart.yaml` indicates that the release version should be extracted from this file.| string | Required | | `spec.versionSource.jsonPath` | The JSON path expression pointing to the location of the attribute containing the application version within the specified `file`.
For example, `$.appVersion` indicates the value should be extracted from the field `appVersion` in `chart.yaml`.| string| Required |