Using PyPI Connector in Tekton Tasks enables centralized management of tool integration information and secure access to PyPI registry during Tekton Task execution.
Not all Tekton Tasks can use PyPI Connector.
PyPI Connector essentially injects temporary PyPI credentials through a Connector CSI Driver. It provides a configuration named pip.conf and pypirc that generates a pip.conf and .pypirc file with temporary authentication for trust the connector proxy server.
Therefore, Tekton Tasks must meet the following requirements to use PyPI Connector:
Support mounting a pip.conf and pypirc file via Workspace
After confirming that your Tekton Task can use PyPI Connector, you can add PyPI Connector to the TaskRun YAML file:
For example:
After mounting, the configuration needs to be moved to ~/.pip/pip.conf and ~/.pypirc to take effect by default.
For workspaces parameters, please refer to Using Connectors CSI Driver to mount pip.conf and pypirc file in PyPI Connector Concepts document.
For more information about Connectors CSI Driver, please refer to Connectors CSI Configuration.