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

Python script to create n number of desired resources #5257

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shaun-nx
Copy link
Contributor

Proposed changes

Adds a python test file that will create n number of resources.
This is useful in scenarios where we want to test a feature that interacts with many different k8s resources (e.g. Telemetry Collection)

By default this script will create 65 of each resource.
Each resource will also be in their own namespace.

Each Namespace will be numbered as ns-1, ns-2, ... ns-65

To create resources:

pytest -v -s -m create

To remove resources:

pytest -v -s -m delete

TODO:

  • Make number of created resources configurable

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@github-actions github-actions bot added the tests Pull requests that update tests label Mar 15, 2024
@shaun-nx shaun-nx changed the title Utils/create k8s resources Python script to create n number of desired resources Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Pull requests that update tests
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

None yet

1 participant