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

Removed deprecated API #71

Closed
wants to merge 1 commit into from

Conversation

pablochacin
Copy link
Contributor

Remove from the extension the deprecated API.

Signed-off-by: Pablo Chacin [email protected]

Signed-off-by: Pablo Chacin <[email protected]>
@pablochacin pablochacin marked this pull request as draft September 29, 2022 15:10
@javaducky
Copy link
Contributor

This should NOT be merged until folks have the warning and time to update their scripts.

@javaducky
Copy link
Contributor

Also, while many of the example scripts will be superfluous and could therefore be removed, others are useful and should be updated to use the new APIs rather than simply deleting them.

@pablochacin
Copy link
Contributor Author

@javaducky I agree some example scripts may be useful, but the bulk just show how to use the API and I think those have little value. Have you identified some you consider more useful?

@javaducky
Copy link
Contributor

@pablochacin, just from a quick review, things like apply-deployment-service-ingress.js, add-ephemeral.js, create-job.js, create-job-by-nodename.js, to name a few. These are more than simple CRUD examples.

I realize that many of these may overlap with things you're adding with the xk6-disruptor project, but we should not force folks to include yet another extension if their needs don't require it, so leaving them an example would be nice. As the person wishing to remove these existing scripts, you should justify why they are not necessary. I feel this was originally a simple global delete.

@pablochacin
Copy link
Contributor Author

@javaducky The problem I see with some examples, such as create-job-by-nodename.js is that they rely on the functionality we are removing. Eventually we could re-introduce some of these functions as helpers (I think creating a job in node is a good candidate for such helper) and then we would provide the required example.

With respect of other cases such as create-job.js But, given that we are basically allowing users to use yaml manifests for creating any resources, I don't see how these examples add value, we can simply point to the proper Kubernetes documentation.

With respect of the add-ephemeral.js as per this issue, we should remove these functionality from the xk6-kubernetes because it is too specialized and makes sense only in the context of the xk6-disruptor.

@pablochacin pablochacin mentioned this pull request Jan 27, 2023
4 tasks
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 this pull request may close these issues.

2 participants