Skip to content

Commit

Permalink
Add multibases test with namereference conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Liujingfang1 committed Sep 5, 2018
1 parent 21ff81b commit 7811d9f
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
@@ -0,0 +1,4 @@
resources:
- serviceaccount.yaml
- rolebinding.yaml
namePrefix: base-
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: role
subjects:
- kind: ServiceAccount
name: serviceaccount
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: serviceaccount
@@ -0,0 +1,3 @@
bases:
- ../overlays/a
- ../overlays/b
@@ -0,0 +1,7 @@
bases:
- ../../base/

namePrefix: a-

resources:
- serviceaccount.yaml
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: serviceaccount
@@ -0,0 +1,4 @@
bases:
- ../../base/

namePrefix: b-
4 changes: 4 additions & 0 deletions pkg/commands/testdata/testcase-multibases-conflict/test.yaml
@@ -0,0 +1,4 @@
description: multibases with name reference
args: []
filename: testdata/testcase-multibases-conflict/combined
expectedError: detected conflicts when resolving name references serviceaccount

0 comments on commit 7811d9f

Please sign in to comment.