Skip to content

Init-container for installing pip requirements#656

Open
randyoyarzabal wants to merge 8 commits intoredhat-cop:mainfrom
randyoyarzabal:installer_private
Open

Init-container for installing pip requirements#656
randyoyarzabal wants to merge 8 commits intoredhat-cop:mainfrom
randyoyarzabal:installer_private

Conversation

@randyoyarzabal
Copy link

What is this PR About?

Added an init-container to perform all pip requirements installations and support for trusting PyPI indexes (an issue we saw in a disconnected environment).

How do we test this?

To test this PR, 3 cases are suggested:

  • Use case 1: installRequiredPythonLibraries: false; This will skip installation of the pip requirements, but does require installPlanApproverAndVerifyJobsImage to be set to an image that has openshift-client, semver==2.13.0 installed.
  • Use case 2: installRequiredPythonLibraries: true (this is the default), this will invoke the init-container and install the pip requirements.
  • Use case 3: Define custom indexes and skip TLS verification on the index host.
    installRequiredPythonLibraries: true
    pythonIndexURL: https://pypi.org/simple (example)
    pythonExtraIndexURL: https://pypi.org/simple (example)
    pipTrustHosts: true <== skip any TLS verification and "trust" the index hosts defined.

cc: @redhat-cop/day-in-the-life

@itewk itewk self-assigned this Jul 31, 2025
@itewk itewk self-requested a review July 31, 2025 11:53
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.

2 participants