Skip to content

Conversation

timflannagan
Copy link
Member

@timflannagan timflannagan commented May 26, 2022

Home for any commits that are needed in order to get a basic e2e testing suite introduced.

# 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
Copy link
Member Author

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).

Comment on lines +117 to +118
// TODO(tflannag): properly handle multiple catalogsources in a cluster
cs := css.Items[0]
Copy link
Member Author

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.

@timflannagan timflannagan changed the title Refactor Dockerfile to copy locally built executables ci: Ensure the platform operator stack is deployed before running e2e tests May 26, 2022
@timflannagan timflannagan changed the title ci: Ensure the platform operator stack is deployed before running e2e tests Ensure the platform operator stack is deployed before running e2e tests May 26, 2022
@timflannagan timflannagan merged commit 37b84b2 into main May 26, 2022
@timflannagan timflannagan deleted the update-dockerfile branch May 26, 2022 22:38
awgreene pushed a commit to awgreene/operator-controller that referenced this pull request Oct 13, 2023
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.

1 participant