-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Need better e2e tests around injected sidecars #1687
Comments
/area testing |
I wonder if we could leverage https://github.com/tumblr/k8s-sidecar-injector to make testing this easier. I think that'll do the hard work of registering the mutating webhook but I haven't used it before and need to read more. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In 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/test-infra repository. |
@vdemeester: Reopened this issue. In 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/test-infra repository. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale I think this is still something we'd benefit from. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In 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/test-infra repository. |
Expected Behavior
Handling of injected sidecars is covered by e2e tests, regressions are caught quickly (even proactively) and confidence around changes to this behavior is high.
Actual Behavior
We have no e2e tests that cover the case of injected sidecars. We can write unit tests and comments, and reason about injected sidecars in theory, but we have no concrete test cases governing their behavior.
Additional Info
To add this to our e2e test suite, we'd probably have to have some kind of test Mutating Admission Controller that injects sidecars into Pods created during e2e tests, but not during normal operation.
The injector could look for an annotation or label on a Pod and inject containers into Pods based on that. Mutating Admission Controllers require secrets and SSL certs, which knative/pkg thankfully makes somewhat easier.
Cases we could cover if we had better e2e test support:
The text was updated successfully, but these errors were encountered: