Creating a release
A Release CR is created to submit a specific Application Snapshot to be processed according to the 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.
-
You have an existing Development workspace.
-
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.
-
Create a
Release.yaml
object locally.Example
Release.yaml
objectapiVersion: 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. -
In the development workspace, apply the
Release.yaml
file and add the resource to your cluster by running the following command:$ kubectl apply -f Release.yaml -n dev
-
In the Konflux UI, select the Applications tab
-
Click on the application that is being released
-
Click on the Releases tab
-
See the recent releases that have been created for the application.
-
You can find a link to the release pipeline run by clicking on the name of the release that you created.