-
Notifications
You must be signed in to change notification settings - Fork 440
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
Use kustomize for e2e test setup #2479
Conversation
3049f3f
to
cec256f
Compare
cec256f
to
f7a9613
Compare
- --enable-leader-election | ||
- "--metrics-addr=127.0.0.1:8080" | ||
- "--enable-leader-election" | ||
- "--zap-log-level=info" | ||
- "--zap-time-encoding=rfc3339nano" | ||
- "--feature-gates=+operator.autoinstrumentation.go,+operator.autoinstrumentation.nginx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this so I could patch these args in the manager kustomization.yaml, as opposed to the one in config/default. I don't see any reason for it not to be here.
- e2e-pdb | ||
- e2e-opampbridge | ||
- e2e-prometheuscr | ||
- e2e-multi-instrumentation | ||
include: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very slick. I like it :)
This LGTM. The operator helm chart also runs these E2E tests. Do we need to make any changes there? |
Test run by the Helm Chart should work as they are. This will let us simplify their setup, which can happen in a later change. |
* Use kustomize for setting target allocator image in E2E tests * Use kustomize for setting opamp bridge image in E2E tests * Use kustomize for setting feature gates in E2E tests * Move operator flags to manager manifest
Description:
Right now, we have a very ad-hoc and inconsistent way of doing setup for e2e tests:
This change introduces a single mechanism for e2e test setup. All the per-testsuite setup is done via kustomize, primarily through json patches on the operator args - both images and feature gates can be set this way.
As a result, we have:
prepare-e2e
make target, or its flavorsconfig/manager/kustomization.yaml
file, which makes them easy to controlTesting:
Went through a bunch of typical dev workflows manually.