Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-4927

Add pipeline annotation to Secrets which are created for a private repo

XMLWordPrintable

    • 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

      1. Create the Secret lazy similar to most (all?) other resources
      2. Add the annotation above to the Secret if the "Add Pipeline" option is selected
      3. Add the secret name also to the ServiceAccount "pipeline"

      Additional Details:

      Similar issue can be found here: https://github.com/openshift/console/issues/8999

            mdsaud Mohammed Saud (Inactive)
            cjerolim Christoph Jerolimov
            Gajanan More Gajanan More (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: