Skip to content

Commit efd71d6

Browse files
committed
Fixes and Corrections
1 parent 3fe4ec6 commit efd71d6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/user-guide/global-configurations/image-promotion-policy.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ Therefore, Devtron offers a feature called 'Image Promotion Policy' that allows
2525
Users need to have super-admin permission to create an image promotion policy.
2626
{% endhint %}
2727

28-
You can create a policy using our APIs or through [Devtron CLI](https://github.com/devtron-labs/devtron-cli). Here is the CLI approach:
28+
You can create a policy using our APIs or through Devtron CLI. To get the latest version of the **devtctl** binary, please contact your enterprise POC or reach out to us directly for further assistance.
29+
30+
Here is the CLI approach:
2931

3032
**Syntax**:
3133
```
32-
devtron-cli create imagePromotionPolicy \
33-
--name="policyName" \
34-
--description="desc" \
34+
devtctl create imagePromotionPolicy \
35+
--name="example-policy" \
36+
--description="This is a sample policy that promotes an image to production environment" \
3537
--passCondition="true" \
3638
--failCondition="false" \
3739
--approverCount=0 \
@@ -44,7 +46,7 @@ devtron-cli create imagePromotionPolicy \
4446
**Arguments**:
4547

4648
* `--name` (required): The name of the image promotion policy.
47-
* `--description` (required): A brief description of the policy, preferably explaining what it does.
49+
* `--description` (optional): A brief description of the policy, preferably explaining what it does.
4850
* `--passCondition` (optional): Specify a condition using [Common Expression Language (CEL)](https://github.com/google/cel-spec/blob/master/doc/langdef.md). Images that match this condition will be eligible for promotion to the target environment.
4951
* `--failCondition` (optional): Images that match this condition will NOT be eligible for promotion to the target environment.
5052
* `--approverCount` (optional): The number of approvals required to promote an image (0-6). Defaults to 0 (no approvals).
@@ -151,7 +153,7 @@ You can apply a policy using our APIs or through [Devtron CLI](https://github.co
151153
apiVersion: v1
152154
kind: artifactPromotionPolicy
153155
spec:
154-
payload:
156+
payload:
155157
applicationEnvironments:
156158
- appName: "app1"
157159
envName: "env-demo"
@@ -168,7 +170,7 @@ You can apply a policy using our APIs or through [Devtron CLI](https://github.co
168170
* Apply the policy using the following CLI command:
169171

170172
```
171-
devtron-cli apply policy -p="path/to/applyPolicy.yaml"
173+
devtctl apply policy -p="path/to/applyPolicy.yaml"
172174
```
173175

174176

0 commit comments

Comments
 (0)