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

feat(testing): use kustomize to patch deployments before deploy #11294

Conversation

CarterFendley
Copy link
Contributor

@CarterFendley CarterFendley commented Oct 14, 2024

Description of your changes:

This PR is a followup to #11284 which removes the kubectl patch commands by introducing a kustomization. This is in attempt to solve #11293, although does not yet address the Tekton side of things.

Feedback wanted:

Checklist:

Copy link

Hi @CarterFendley. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

Copy link
Contributor

@hbelmiro hbelmiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test

Thank you for working on this @CarterFendley.
Looks good. I just left a small suggestion to rename a variable.

Feedback wanted:

Should this new kustomization.yaml be moved to manifests/kustomize/env?

I don't have a strong opinion. In case we decide to move, we should move it to a new test directory and include this directory in the paths that trigger tests. If we leave them where they are, we don't need to change anything else?

@HumairAK @DharmitD thoughts?

scripts/deploy/github/deploy-kfp.sh Outdated Show resolved Hide resolved
@DharmitD
Copy link
Contributor

I don't have a strong opinion. In case we decide to move, we should move it to a new test directory and include this directory in the paths that trigger tests. If we leave them where they are, we don't need to change anything else?

+1, no need to move as such, but if we decide to move it, make sure to create a new test directory and also move the overlays directory too.

@CarterFendley CarterFendley force-pushed the carter/patch-integration-testing-2 branch from 35d93c0 to 054d629 Compare October 15, 2024 20:30
@google-oss-prow google-oss-prow bot added size/L and removed size/M labels Oct 15, 2024
@CarterFendley CarterFendley force-pushed the carter/patch-integration-testing-2 branch 3 times, most recently from c9e6bc2 to aa6d552 Compare October 15, 2024 21:53
@CarterFendley
Copy link
Contributor Author

The recent additions to the PR move the contents of scripts/deploy/github to .github/resources/ manifests have been seperated in to two different directories. This structure was suggested in slack here.

  • .github/resources/manifests/argo
  • .github/resources/manifests/tekton

There is some similarity between the Argo testing kustomization and the Tekton ones, but as per discussion in that slack thread, tekton will be tracked by #11292 and not handled in this PR.

@rimolive
Copy link
Member

/rerun-all

@hbelmiro
Copy link
Contributor

@CarterFendley can you please rebase?

Signed-off-by: carter.fendley <carter.fendley@gmail.com>
Signed-off-by: carter.fendley <carter.fendley@gmail.com>
@CarterFendley CarterFendley force-pushed the carter/patch-integration-testing-2 branch from aa6d552 to 04bd528 Compare October 16, 2024 14:29
Copy link
Contributor

@hbelmiro hbelmiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@rimolive @DharmitD can you take another look?

@google-oss-prow google-oss-prow bot added the lgtm label Oct 16, 2024
@github-actions github-actions bot added the ci-passed All CI tests on a pull request have passed label Oct 16, 2024
@rimolive
Copy link
Member

/lgtm

The tests passed in the new paths

Copy link
Contributor

@DharmitD DharmitD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/Approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DharmitD

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit be863a8 into kubeflow:master Oct 17, 2024
17 of 18 checks passed
VaniHaripriya pushed a commit to VaniHaripriya/data-science-pipelines that referenced this pull request Oct 17, 2024
…flow#11294)

* Use kustomize to patch deployments before deploy

Signed-off-by: carter.fendley <carter.fendley@gmail.com>

* Relocate scripts / manifests to github directory

Signed-off-by: carter.fendley <carter.fendley@gmail.com>

---------

Signed-off-by: carter.fendley <carter.fendley@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed All CI tests on a pull request have passed lgtm ok-to-test size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants