File tree Expand file tree Collapse file tree 2 files changed +37
-8
lines changed
tests/k8s/1-046_validate_application_tracking Expand file tree Collapse file tree 2 files changed +37
-8
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,14 @@ data:
40
40
installationID : " instance-2"
41
41
resource.tracking.method : " annotation"
42
42
---
43
- # Check first namespace labels
43
+ # Check first namespace
44
44
apiVersion : v1
45
45
kind : Namespace
46
46
metadata :
47
47
name : source-ns-1
48
- labels :
49
- argocd.argoproj.io/managed-by : test-1-046-argocd-1
50
- argocd.argoproj.io/tracking-id : instance-1
51
48
---
52
- # Check second namespace labels
49
+ # Check second namespace
53
50
apiVersion : v1
54
51
kind : Namespace
55
52
metadata :
56
53
name : source-ns-2
57
- labels :
58
- argocd.argoproj.io/managed-by : test-1-046-argocd-2
59
- argocd.argoproj.io/tracking-id : instance-2
Original file line number Diff line number Diff line change
1
+ apiVersion : kuttl.dev/v1beta1
2
+ kind : TestStep
3
+ delete :
4
+ # Delete test namespaces
5
+ - apiVersion : v1
6
+ kind : Namespace
7
+ name : test-1-046-argocd-1
8
+ - apiVersion : v1
9
+ kind : Namespace
10
+ name : test-1-046-argocd-2
11
+ - apiVersion : v1
12
+ kind : Namespace
13
+ name : source-ns-1
14
+ - apiVersion : v1
15
+ kind : Namespace
16
+ name : source-ns-2
17
+ # Delete ArgoCD instances
18
+ - apiVersion : argoproj.io/v1beta1
19
+ kind : ArgoCD
20
+ name : argocd-1
21
+ namespace : test-1-046-argocd-1
22
+ - apiVersion : argoproj.io/v1beta1
23
+ kind : ArgoCD
24
+ name : argocd-2
25
+ namespace : test-1-046-argocd-2
26
+ # Delete Applications
27
+ - apiVersion : argoproj.io/v1alpha1
28
+ kind : Application
29
+ name : test-app
30
+ namespace : test-1-046-argocd-1
31
+ - apiVersion : argoproj.io/v1alpha1
32
+ kind : Application
33
+ name : test-app
34
+ namespace : test-1-046-argocd-2
35
+ timeout : 120 # Give enough time for cascade deletion
You can’t perform that action at this time.
0 commit comments