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

Apply fails if the resources already exist #79

Closed
dgzlopes opened this issue Nov 14, 2022 · 1 comment · Fixed by #81
Closed

Apply fails if the resources already exist #79

dgzlopes opened this issue Nov 14, 2022 · 1 comment · Fixed by #81

Comments

@dgzlopes
Copy link
Member

Self-explanatory, I think 😄

The error:

ERRO[0003] GoError: pods "httpbin" already exists
Run     at reflect.methodValueCall (native)
base    at setup (file:///Users/dgzlopes/go/src/github.com/grafana/xk6-disruptor/examples/httpbin/disrupt-pod.js:18:14(7))
disrupt at native  hint="script exception"

I have the feeling this shouldn't fail. Same way, while using kubectl, it doesn't fail if the resources already exist.

@pablochacin
Copy link
Contributor

pablochacin commented Nov 14, 2022

This is due to the "apply" being in reality a create. Re-implementing it as suggested in #77 should solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants