File tree 2 files changed +110
-0
lines changed
.integration/artifacthub/argo-cd-order/0.2.0
2 files changed +110
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Introduction
2
+
3
+ argo-cd-order is a module for ordering argocd sync operations
4
+ For more details: https://argo-cd.readthedocs.io/en/stable/user-guide/sync-waves/
5
+
6
+
7
+ How to use
8
+
9
+ ```
10
+ kcl mod add argo-cd-order
11
+ ```
12
+
13
+ Write the code
14
+
15
+ ```
16
+ import argo_cd_order as ArgoCdOrder
17
+ import yaml
18
+ import manifests
19
+ import k8s.api.core.v1 as k8core
20
+ import file
21
+ import argoproj.v1alpha1 as argoproj
22
+
23
+ testApp = argoCdOrder.make({
24
+ # PreSync, PostSync and other phases works in the same way
25
+ Sync = [
26
+ # wave 0
27
+ [
28
+ k8core.Namespace {
29
+ metadata.name = "test"
30
+ }
31
+ k8core.Namespace {
32
+ metadata.name = "test2"
33
+ }
34
+ ]
35
+ # wave 1
36
+ [
37
+ k8core.Namespace {
38
+ metadata.name = "test3"
39
+ }
40
+ k8core.Namespace {
41
+ metadata.name = "test4"
42
+ }
43
+ ]
44
+ ]
45
+ })
46
+
47
+ manifests.yaml_stream([
48
+ testApp
49
+ ])
50
+
51
+
52
+ ```
53
+
54
+ Result yaml
55
+
56
+ ```
57
+ apiVersion: v1
58
+ kind: Namespace
59
+ metadata:
60
+ annotations:
61
+ argocd.argoproj.io/sync-wave: '0'
62
+ name: test
63
+ ---
64
+ apiVersion: v1
65
+ kind: Namespace
66
+ metadata:
67
+ annotations:
68
+ argocd.argoproj.io/sync-wave: '0'
69
+ name: test2
70
+ ---
71
+ apiVersion: v1
72
+ kind: Namespace
73
+ metadata:
74
+ annotations:
75
+ argocd.argoproj.io/sync-wave: '1'
76
+ name: test3
77
+ ---
78
+ apiVersion: v1
79
+ kind: Namespace
80
+ metadata:
81
+ annotations:
82
+ argocd.argoproj.io/sync-wave: '1'
83
+ name: test4
84
+ ```
85
+
Original file line number Diff line number Diff line change
1
+ version : 0.2.0
2
+ name : argo-cd-order
3
+ displayName : argo-cd-order
4
+ createdAt : " 2024-05-07T17:29:43Z"
5
+ description : This is a KCL package
6
+ links :
7
+ - name : KCL homepage
8
+ url : https://kcl-lang.io/
9
+ - name : KCL repo
10
+ url : https://github.com/kcl-lang/kcl
11
+ install : |
12
+ #### Add `argo-cd-order` with tag `0.2.0` as dependency
13
+ ```
14
+ kcl mod add argo-cd-order:0.2.0
15
+ ```
16
+
17
+ #### Pull `argo-cd-order` with tag `0.2.0` to local
18
+ ```
19
+ kcl mod pull argo-cd-order:0.2.0
20
+ ```
21
+ maintainers :
22
+ - name : kcl-lang.io
23
+
24
+ provider :
25
+ name : kcl-lang.io
You can’t perform that action at this time.
0 commit comments