https://github.com/looztra/kustomize-multibase-multiple-match-error
https://github.com/looztra/kustomize-multibase-multiple-match-error
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/looztra/kustomize-multibase-multiple-match-error
- Owner: looztra
- Created: 2019-03-06T16:40:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T16:28:35.000Z (almost 7 years ago)
- Last Synced: 2025-02-09T05:45:35.251Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kustomize Test Case
## What?
- Test case for something not working like expected with `kustomize`
## Structure
- `base` declares a `ServiceAccount`, no namespace is specified
- `overlays/integration` declares a `ClusterRoleBinding` refering the `ServiceAccount` in the `apps-integration` namespace
- `overlays/demo` declares a `ClusterRoleBinding` refering the `ServiceAccount` in the `apps-demo` namespace
- `overlays/both` is a composition of the two previous overlays
## What works
- `kustomize build overlays/integration`
- `kustomize build overlays/demo`
## What fails but is expected to work
- `kustomize build overlays/both`
Error message :
```bash
╰─» asdf global kustomize v2.0.3
╰─» kustomize build overlays/both/
Error: Multiple matches for name ~G_v1_ServiceAccount|apps-integration|~P|faros|~S:
[~G_v1_ServiceAccount|apps-integration|~P|faros|~S ~G_v1_ServiceAccount|apps-demo|~P|faros|~S]
╰─» asdf global kustomize v2.1.0
╰─» kustomize build overlays/both/
Error: string case - multiple matches for ~G_v1_ServiceAccount|~X|faros:
[~G_v1_ServiceAccount|apps-demo|faros
~G_v1_ServiceAccount|apps-integration|faros
]
╰─» asdf global kustomize v3.0.2
╰─» kustomize build overlays/both/
Error: string case - multiple matches for ~G_v1_ServiceAccount|~X|faros:
[~G_v1_ServiceAccount|apps-demo|faros
~G_v1_ServiceAccount|apps-integration|faros
]
```