Skip to content

Commit 21ff81b

Browse files
committed
Add multibases test with namereference nonconflict
1 parent 485bbdd commit 21ff81b

File tree

8 files changed

+67
-0
lines changed

8 files changed

+67
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resources:
2+
- serviceaccount.yaml
3+
- rolebinding.yaml
4+
namePrefix: base-
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: rbac.authorization.k8s.io/v1beta1
2+
kind: RoleBinding
3+
metadata:
4+
name: rolebinding
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: Role
8+
name: role
9+
subjects:
10+
- kind: ServiceAccount
11+
name: serviceaccount
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: serviceaccount
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bases:
2+
- ../overlays/a
3+
- ../overlays/b
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: a-base-serviceaccount
5+
---
6+
apiVersion: v1
7+
kind: ServiceAccount
8+
metadata:
9+
name: b-base-serviceaccount
10+
---
11+
apiVersion: rbac.authorization.k8s.io/v1beta1
12+
kind: RoleBinding
13+
metadata:
14+
name: a-base-rolebinding
15+
roleRef:
16+
apiGroup: rbac.authorization.k8s.io
17+
kind: Role
18+
name: role
19+
subjects:
20+
- kind: ServiceAccount
21+
name: a-base-serviceaccount
22+
---
23+
apiVersion: rbac.authorization.k8s.io/v1beta1
24+
kind: RoleBinding
25+
metadata:
26+
name: b-base-rolebinding
27+
roleRef:
28+
apiGroup: rbac.authorization.k8s.io
29+
kind: Role
30+
name: role
31+
subjects:
32+
- kind: ServiceAccount
33+
name: b-base-serviceaccount
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bases:
2+
- ../../base/
3+
4+
namePrefix: a-
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bases:
2+
- ../../base/
3+
4+
namePrefix: b-
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
description: multibases with name reference
2+
args: []
3+
filename: testdata/testcase-multibases-nonconflict/combined
4+
expectedStdout: testdata/testcase-multibases-nonconflict/expected.yaml

0 commit comments

Comments
 (0)