test: refactor Kustomize utils to support delete operations#2033
test: refactor Kustomize utils to support delete operations#2033k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
Conversation
|
@AvineshTripathi: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @AvineshTripathi. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
hey @danehans can you have a look at this PR please |
|
/ok-to-test |
|
@AvineshTripathi sorry for the latest response, are you able to resolve the conflicts? |
7e5510c to
bd83c51
Compare
|
hey @ahg-g, I fixed the conflicts, PTAL! Updates: looking into why the test failed. |
|
/retest |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AvineshTripathi, kfswain The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hey @AvineshTripathi looks like we have some formatting issues, can we get this PR cleaned up and passing CI? |
Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
95ee922 to
393d5c9
Compare
|
hey @kfswain the issue is fixed. PTAL |
|
/lgtm |
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
…es-sigs/gateway-api-inference-extension#2033) * test: refactor Kustomize utils to support delete operations Added DeleteAndVerifyObjs and updated CreateCrdsFromKustomize to accept an action callback, enabling reuse for both creation and deletion workflows. Also exported CreateAndVerifyObjs for broader usage. Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com> * fix: lint error --------- Signed-off-by: AvineshTripathi <avineshtripathi1@gmail.com>
Previously, setupInfra used kustomize to create CRDs from config/crd/, but the cleanup logic only deleted specific CRDs. This left dangling CRDs in the cluster, making it difficult to re-run tests.
Refactor CreateCrdsFromKustomize to accept an action callback and introduce DeleteAndVerifyObjs. This enables using the same Kustomize configuration to properly identify and delete all created CRDs during cleanup.
/kind test