-
Bug
-
Resolution: Done
-
Major
-
None
-
False
-
False
-
Undefined
-
Not Supported
-
-
ODC Sprint 202
-
Medium
Description
As a user, I want to import a Deployment also from a private git repository when enable pipelines. The "Import from Git" supports an option to add a secret to access the private git repository, but this secret was currently not used when starting a Pipeline right after finishing the import.
To support a directly created PipelineRun or lazy started PipelineRun this Secret should be added an additional annotation, similar to the Secrets which are created in the "Start Pipeline" modal.
The annotation tekton.dev/git-0 should link to the used git hostname, for example:
kind: Secret apiVersion: v1 metadata: name: anothersshsecret namespace: christoph-test annotations: tekton.dev/git-0: github.com
It is also required that this secret was added to the ServiceAccount "pipeline" secret list:
kind: ServiceAccount apiVersion: v1 metadata: name: pipeline namespace: christoph-test secrets: - name: asecret - name: anothersshsecret imagePullSecrets: - name: pipeline-dockercfg-c6nkx
Acceptance Criteria
- Create the Secret lazy similar to most (all?) other resources
- Add the annotation above to the Secret if the "Add Pipeline" option is selected
- Add the secret name also to the ServiceAccount "pipeline"
Additional Details:
Similar issue can be found here: https://github.com/openshift/console/issues/8999
- links to