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

Created resources not cleaned up when TestRun is deleted #400

Closed
petermajn opened this issue May 2, 2024 · 2 comments
Closed

Created resources not cleaned up when TestRun is deleted #400

petermajn opened this issue May 2, 2024 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@petermajn
Copy link

petermajn commented May 2, 2024

Brief summary

I installed the operator as described in the README using the bundle (https://github.com/grafana/k6-operator?tab=readme-ov-file#bundle-deployment).
I am able to run a test, but when the TestRun resource is deleted (either manually or using cleanup: "post") the corresponding Jobs, Pods and Services are not deleted.

k6-operator version or image

ghcr.io/grafana/k6-operator:controller-v0.0.14

Helm chart version (if applicable)

No response

TestRun / PrivateLoadZone YAML

apiVersion: k6.io/v1alpha1
kind: TestRun
metadata:
  name: k6-example-test
  namespace: k6-tests
spec:
  parallelism: 3
  script:
    configMap:
      name: k6-example-test
      file: k6-test.js
  cleanup: "post"

Other environment details (if applicable)

No response

Steps to reproduce the problem

Apply the TestRun and wait for the created jobs to finish.

Expected behaviour

The operator deletes all created resources when the TestRun resource is deleted.

Actual behaviour

Created Jobs, Pods and Services do not get deleted. TestRun resource is deleted.

@petermajn petermajn added the bug Something isn't working label May 2, 2024
@yorugac
Copy link
Collaborator

yorugac commented May 9, 2024

Hi @petermajn, I cannot repeat this with controller-v0.0.14 image and this yaml. I.e. everything is being deleted after the test is finished. Could you please check the logs of the controller to see if there is any error? How to do that is described here:
https://grafana.com/docs/k6/latest/set-up/set-up-distributed-k6/troubleshooting/#k6-operator

@yorugac yorugac added the question Further information is requested label May 24, 2024
@yorugac
Copy link
Collaborator

yorugac commented Aug 21, 2024

Closing the issue. Feel free to re-open if there's a repeatable bug or ask on the forum in case of a question!

@yorugac yorugac closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants