Navigation Menu

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

Add e2e tests for depends-on functionality #2416

Merged
merged 1 commit into from Jul 29, 2021

Conversation

mortent
Copy link
Contributor

@mortent mortent commented Jul 27, 2021

This adds e2e tests to verify the depends-on behavior during apply and prune.

return
}
t.Log("Applying resources in pre-apply directory")
cmd := exec.Command("kubectl", "apply", "-f", preApplyDir)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is more of a note to self: It will be good to not depend on kubectl for just applying resources. kpt live apply should support this mode with a flag or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using kubectl here is useful, since it allows us to set up specific scenarios for testing that might be difficult to do using kpt itself.

@phanimarupaka
Copy link
Contributor

Can be in a follow up PR, but we should have a test for destroy as well where the resources are deleted in reverse order.

@mortent mortent merged commit a8cc70e into kptdev:main Jul 29, 2021
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.

None yet

3 participants