You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/global-configurations/image-promotion-policy.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,15 @@ Therefore, Devtron offers a feature called 'Image Promotion Policy' that allows
25
25
Users need to have super-admin permission to create an image promotion policy.
26
26
{% endhint %}
27
27
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:
29
31
30
32
**Syntax**:
31
33
```
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" \
*`--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.
48
50
*`--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.
49
51
*`--failCondition` (optional): Images that match this condition will NOT be eligible for promotion to the target environment.
50
52
*`--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
151
153
apiVersion: v1
152
154
kind: artifactPromotionPolicy
153
155
spec:
154
-
payload:
156
+
payload:
155
157
applicationEnvironments:
156
158
- appName: "app1"
157
159
envName: "env-demo"
@@ -168,7 +170,7 @@ You can apply a policy using our APIs or through [Devtron CLI](https://github.co
168
170
* Apply the policy using the following CLI command:
0 commit comments