Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict namespace resource when using kustomize #1399

Closed
oo00spy00oo opened this issue Sep 21, 2022 · 9 comments · Fixed by #1407
Closed

Conflict namespace resource when using kustomize #1399

oo00spy00oo opened this issue Sep 21, 2022 · 9 comments · Fixed by #1407
Labels
kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@oo00spy00oo
Copy link

What happened:

Error: accumulating resources: accumulation err='accumulating resources from 'kubernetes-gateway-api': '/workspace/bizzi-fluxcd/infrastructure/bizzi-dev/kubernetes-gateway-api' must resolve to a file': recursed accumulation of path '/workspace/bizzi-fluxcd/infrastructure/bizzi-dev/kubernetes-gateway-api': accumulating resources: accumulation err='accumulating resources from 'https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.5.0/standard-install.yaml': may not add resource with an already registered id: Namespace.v1.[noGrp]/gateway-system.[noNs]': evalsymlink failure on '/tmp/kustomize-1628085893/releases/download/v0.5.0/standard-install.yaml' : lstat /tmp/kustomize-1628085893/releases: no such file or directory

What you expected to happen:

Build with kustomize via command:

kustomize build

How to reproduce it (as minimally and precisely as possible):

kustomizaton.yaml

resources:
  - https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.5.0/standard-install.yaml  

Anything else we need to know?:

There are 2 kind: Namespace with name: gateway-system in standard-install.yaml

Remove conflict namespace resource

---
apiVersion: v1
kind: Namespace
metadata:
  name: gateway-system
---
@oo00spy00oo oo00spy00oo added the kind/bug Categorizes issue or PR as related to a bug. label Sep 21, 2022
@gyohuangxin
Copy link
Member

This bug has been fixed by #1374, are you using the latest code?

@mclayer
Copy link

mclayer commented Sep 24, 2022

I think for non-contributors latest code = latest released code :)

@gyohuangxin
Copy link
Member

@mclayer Yes, it's a good reminder. @robscott This fix was merged and cherry-picked to release-0.5, but we haven't updated it on release page.

@youngnick
Copy link
Contributor

Yes, the fix for this will be included in the v0.5.1 patch release.

@gyohuangxin
Copy link
Member

@youngnick Great, thanks!

@shaneutt shaneutt added this to the v0.5.1 milestone Sep 26, 2022
@robscott robscott linked a pull request Sep 26, 2022 that will close this issue
@gyohuangxin
Copy link
Member

@youngnick
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@youngnick: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@oo00spy00oo
Copy link
Author

oo00spy00oo commented Sep 30, 2022

@oo00spy00oo https://github.com/kubernetes-sigs/gateway-api/releases/tag/v0.5.1 was released, it fixed this issue.

It's worked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants