-
Notifications
You must be signed in to change notification settings - Fork 66
Ensure the platform operator stack is deployed before running e2e tests #21
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
Conversation
Signed-off-by: timflannagan <timflannagan@gmail.com>
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:nonroot | ||
FROM gcr.io/distroless/static:debug-nonroot |
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.
Update from the debug tag that matched the rukpak container image to debug-nonroot as I ran into the following error locally:
container has runasnonroot and image will run as root
And that's because kubebuilder/operator-sdk automatically scaffold out that securityContext for our manager resources by default (and we didn't use that SDK tooling in rukpak).
// TODO(tflannag): properly handle multiple catalogsources in a cluster | ||
cs := css.Items[0] |
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 a super short term hack that's needed in order to work with the basic e2e tests that I have sitting locally, which deploy a magic catalog instance, so hardcoding the CatalogSource reference, and even worse hardcode that logic at the main.go level as it fails the container at startup, wouldn't work with that setup.
b25879f
to
19acd4d
Compare
…-limits UPSTREAM: 290: Remove Resource Limits (operator-framework#290)
Home for any commits that are needed in order to get a basic e2e testing suite introduced.