Creating a release

A Release CR is created to submit a specific Application Snapshot to be processed according to teh referenced ReleasePlan.

Creating a Release object

The development team creates a Release object in the developer workspace. The Release object includes a reference to the application snapshot that the development team wants to release, along with release plan that will be used to release the application.

Prerequisites
  • You have an existing Development workspace.

  • Ensure you have installed oc.

  • You have completed the steps listed in the Getting started in the CLI page.

  • You have completed the steps for creating a ReleasePlanAdmission and a matching ReleasePlan.

Procedures
  1. Create a Release.yaml object locally.

    Example Release.yaml object

    apiVersion: appstudio.redhat.com/v1alpha1
    kind: Release
    metadata:
     name: <name-of-this-release> (1)
     namespace: dev-workspace (2)
    spec:
     releasePlan: <release-plan-name> (3)
     snapshot: <application-snapshot-name> (4)
     data: <key> (5)
    1 The name of the release.
    2 The development team’s workspace.
    3 The name of the release plan specifying the pipeline to run.
    4 The name of the application snapshot that you want to release.
    5 Optional: An unstructured key used for providing data for the managed Pipeline.
  2. In the development workspace, apply the Release.yaml file and add the resource to your cluster by running the following command:

    $ oc apply -f Release.yaml -n dev
Verification
  1. In the Konflux UI, select the Applications tab

  2. Click on the application that is being released

  3. Click on the Releases tab

  4. See the recent releases that have been created for the application.

  5. You can find a link to the release pipeline run by clicking on the name of the release that you created.