Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-6448

Onboard cli on konflux

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Critical Critical
    • Pipelines 1.17.0
    • None
    • p12n
    • None
    • 3

      This issues tracks the initial work to be done to onboard cli on konflux.

      • Repository: openshift-pipelines/tektoncd-cli
      • konflux resources present (application, components, test, …)
      • tekton resources present (push/pull-request pipelinerun and pipelines)
      • GitHub workflows present (update upstream, …)

      Requirements

      • Builds are green
      • Ideally, tests are green (entreprise-contract) one
      • Fork the repository you want
      • Reset the `main' branch
        ┌────
        │ git clone git@github.com:openshift-pipelines/tektoncd-cli
        │ git checkout -b old-main
        │ git branch --delete main
        │ git checkout --orphan main
        │ git rm --cached -r .
        │ git commit --allow-empty -m "[openshift-pipelines/tektoncd-cli] Initial commit"
        │ rm -fR * # Clean everything (but .git)
        | rm -rf .github/ .gitignore  .golangci.yml  .goreleaser.yml .pre-commit-config.yaml  .yamllint
        │ # Create a README
        │ mkdir -p patches openshift/dockerfiles .tekton .github/workflows .konflux
        │ cat > openshift/README.md <<EOF
        │ # \`openshift\` specific files
        │ EOF
        │ cat > .konflux/README.md <<EOF
        │ # \`konflux-ci\` manifests
        │ 
        │ This folder contains [\`konflux-ci\`](konfluxci) configuration that is synced with the konflux-ci cluster.
        │ 
        │ [konfluxci]: https://konflux-ci.dev/
        │ EOF
        | cat > README.md <<EOF
        | # \`openshift-pipelines/tektoncd-cli\` *fork*
        |
        | This is a "managed" fork of [\`tektoncd/cli\`](tektoncdcli) that is used in OpenShift Pipelines.
        | It is merely some patches and automation, and doesn't contains any specific code.
        |
        | [tektoncdcli]: https://github.com/tektoncd/cli
        | EOF   
        │ touch openshift/dockerfiles/.placeholder patches/.placeholder .tekton/.placeholder .github/workflows/.placeholder
        │ git add README.md patches openshift .tekton .github .konflux
        │ git commit -s -m "Bootstrap the repository structure"
        │ git push -fu origin main
        │ 
        │ # Fetch the sources
        │ git clone https://github.com/tektoncd/cli upstream
        │ pushd upstream
        │ git rev-parse HEAD > ../head
        │ popd
        │ rm -fR upstream/.git
        |
        │ git add head-tkn head-tkn-pac upstream/cli upstream/tkn-pac   
        │ git commit -s -m "Fetch tektoncd/cli at $(cat head)"
        │ git push origin main
        └────
      • Create a pull-request with the configuration See
        <https://github.com/openshift-pipelines/hack/pull/13>
      • Add `openshift-pipelines-bot' as a maintainer of the repository
      • Install the konflux application on the repository
      • Merge the pull-request from `hack'
      • Merge the pull-request that `hack' created in your repository
        (`tektoncd-cli')
      • Apply `.konflux' in the cluster
      • Adjust the dockerfiles, …
      

              sashture Savita .
              vdemeest Vincent Demeester
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: