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

Support configuring images via RELATED_IMAGE_ environment variables #2325

Conversation

andreasgerstmayr
Copy link
Contributor

@andreasgerstmayr andreasgerstmayr commented Nov 8, 2023

Description:
For disconnected environments, various tools expect the image location to be set in RELATED_IMAGE_ environment variables:
https://redhat-connect.gitbook.io/certified-operator-guide/troubleshooting-and-resources/offline-enabled-operators#golang-operators
https://docs.openshift.com/container-platform/4.14/operators/operator_sdk/osdk-generating-csvs.html#olm-enabling-operator-for-restricted-network_osdk-generating-csvs

This change allows setting the image locations with the RELATED_IMAGE_ environment variables. It's fully backwards compatible, and the precedence is: flag > env var > default value.

Link to tracking Issue:
Resolves #2326

Testing:
I tested the change locally, not sure if this small change warrants a unit test, and if so, where to put it (afaics there is no unit test for main.go right now).

Documentation:

@andreasgerstmayr andreasgerstmayr requested a review from a team November 8, 2023 18:04
@andreasgerstmayr andreasgerstmayr force-pushed the support-related-images-env-var branch from dddd7f9 to b1af9a2 Compare November 8, 2023 18:13
@andreasgerstmayr andreasgerstmayr force-pushed the support-related-images-env-var branch from b1af9a2 to 3e1d8c5 Compare November 8, 2023 18:16
Copy link
Member

@frzifus frzifus left a comment

Choose a reason for hiding this comment

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

@pavolloffay pavolloffay merged commit b549933 into open-telemetry:main Nov 13, 2023
26 checks passed
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.

Support configuring images via RELATED_IMAGE_ environment variables
4 participants