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

Integrate LitmusChaos - Pod Memory Hog experiment #2014

Merged
merged 6 commits into from Jun 23, 2021

Conversation

mhmohona
Copy link
Contributor

Signed-off-by: Mahfuza mhmohona@gmail.com

Related issue: #1622

What type of PR is this

/kind feature

Proposed Changes

Litmus provides a large number of experiments for testing containers, pods, nodes, as well as specific platforms and tools. The advantage of chaos engineering is that one can quickly figure out issues that other testing layers cannot easily capture. This can save a lot of time in the future and will help to find the loopholes in the system and fix them.

In this PR, I integrated LitmusChaos experiment to test Kyverno pod to check it's behavior.

Proof Manifests

  • Tested it out locally with the Alpine Docker image.
  • The Docker image needs to be pulled - docker pull ghcr.io/kyverno/kyverno:test-litmuschaos
  • Kyverno pod needs to be restarted - kubectl -n kyverno delete pod --all
  • Run the Chaos Experiment - go test ./litmuschaos/pod_cpu_hog -v

A successful Test should be passed like this -

image

Checklist

  • I have read the contributing guidelines.
  • I have added tests that prove my fix is effective or that my feature works.
  • My PR contains new or altered behavior to Kyverno and
    • [] I have added or changed the documentation myself in an existing PR and the link is:
    • [] I have raised an issue in kyverno/website to track the doc update and the link is:
    • [] I have read the PR documentation guide and followed the process including adding proof manifests to this PR.

@realshuting realshuting self-assigned this Jun 22, 2021
@realshuting
Copy link
Member

@mhmohona - can you please fix Ci errors?

test/e2e/utils.go Outdated Show resolved Hide resolved
Signed-off-by: Mahfuza Humayra Mohona <mhmohona@gmail.com>
Signed-off-by: Mahfuza Mohona <mahfuza.mohona@LEADSOFT.BIZ>
Signed-off-by: Mahfuza Humayra Mohona <mhmohona@gmail.com>
Signed-off-by: Mahfuza Mohona <mahfuza.mohona@LEADSOFT.BIZ>
Signed-off-by: Mahfuza Humayra Mohona <mhmohona@gmail.com>
Signed-off-by: Mahfuza Mohona <mahfuza.mohona@LEADSOFT.BIZ>
Signed-off-by: Mahfuza Humayra Mohona <mhmohona@gmail.com>
Signed-off-by: Mahfuza Mohona <mahfuza.mohona@LEADSOFT.BIZ>
Signed-off-by: Mahfuza Mohona <mahfuza.mohona@LEADSOFT.BIZ>
Signed-off-by: Mahfuza Mohona <mahfuza.mohona@LEADSOFT.BIZ>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants