Closed looztra closed 5 years ago
This seems to be fixed by this PR
kustomize build overlays/both/
apiVersion: v1
kind: ServiceAccount
metadata:
name: faros
namespace: apps-demo
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: faros
namespace: apps-integration
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: faros-clustergittrackobjects-viewer--apps-demo
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: faros-clustergittrackobjects-viewer
subjects:
- kind: ServiceAccount
name: faros
namespace: apps-demo
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: faros-clustergittrackobjects-viewer--apps-integration
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: faros-clustergittrackobjects-viewer
subjects:
- kind: ServiceAccount
name: faros
namespace: apps-integration
I will give it a try asap, thanks!
I checked and it works, great job, thanks!
fixed in v3.0.3
thank you!
Structure
base
declares aServiceAccount
, no namespace is specifiedoverlays/integration
declares aClusterRoleBinding
refering theServiceAccount
in theapps-integration
namespaceoverlays/demo
declares aClusterRoleBinding
refering theServiceAccount
in theapps-demo
namespaceoverlays/both
is a composition of the two previous overlaysGit repository with test files : https://github.com/looztra/kustomize-multibase-multiple-match-error
What works
kustomize build overlays/integration
kustomize build overlays/demo
What fails but is expected to work
kustomize build overlays/both
Error message :
Context
Looked like #557 that has been fixed by #1344 but still fails with
v3.0.2
(no namePrefix/Suffix in my usecase)Any idea?