-
Notifications
You must be signed in to change notification settings - Fork 2
/
git-nested-subscription-e2e.yaml
60 lines (60 loc) · 1.09 KB
/
git-nested-subscription-e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
apiVersion: v1
kind: Namespace
metadata:
name: ch-git
---
apiVersion: apps.open-cluster-management.io/v1
kind: Channel
metadata:
name: git
namespace: ch-git
spec:
type: Git
pathname: https://github.com/philipwu08/testrepo
---
apiVersion: apps.open-cluster-management.io/v1
kind: Channel
metadata:
name: mychannel
namespace: ch-git
spec:
type: Git
pathname: https://github.com/rokej/testrepo.git
---
apiVersion: v1
kind: Namespace
metadata:
name: git-sub-ns
---
apiVersion: v1
data:
path: stable/ibm-mongodb-dev
kind: ConfigMap
metadata:
name: ibm-mongodb-dev-cm
namespace: git-sub-ns
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: towhichcluster
namespace: git-sub-ns
spec:
clusterSelector:
matchLabels:
local-cluster: "true"
---
apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
name: git-sub
namespace: git-sub-ns
annotations:
apps.open-cluster-management.io/cluster-admin: "true"
spec:
channel: ch-git/git
placement:
placementRef:
name: towhichcluster
kind: PlacementRule