Creating a release plan
A ReleasePlan (RP) CR is created for a specific Application. It defines the the process to release a specific Application Snapshot in a target workspace, whether automatic releases are enabled, as well as additional data to pass to a corresponding RPA.
Creating a ReleasePlan
object
The development team creates a ReleasePlan
object in the developer workspace. The ReleasePlan
object includes a reference to the application that the development team wants to release, along with workspace where the application is supposed to be released.
-
You have an existing Development workspace.
-
You have completed the steps listed in the Getting started in the CLI page.
-
Create a
ReleasePlan.yaml
object locally.Example
ReleasePlan.yaml
objectapiVersion: appstudio.redhat.com/v1alpha1 kind: ReleasePlan metadata: labels: release.appstudio.openshift.io/auto-release: 'true' release.appstudio.openshift.io/standing-attribution: 'true' release.appstudio.openshift.io/releasePlanAdmission: 'rpa-name' (1) name: sre-production (2) namespace: dev-workspace (3) spec: application: <application-name> (4) data: <key> (5) pipelineRef: <pipeline-ref> (6) serviceAccont: <service-account> (7) target: managed-workspace (8)
1 Optional: The name of the RPA to use if more than one RPA references the specified application. 2 The name of the release plan. 3 The development team’s workspace. 4 The name of the application that you want to deploy to the managed workspace. 5 Optional: An unstructured key used for providing data for the managed Pipeline. 6 Optional: Reference to the Pipeline to be executed by the release service. 7 Optional: The name of the service account to use in the Pipeline to gain elevated privileges. It’s used only if you have defined the pipelineRef
value.8 The workspace to which the system deploys the application. This workspace is created by the Managed environment team (for example, your organization’s SRE team) -
In the development workspace, apply the
ReleasePlan.yaml
file and add the resource to your cluster by running the following command:$ kubectl apply -f ReleasePlan.yaml -n dev
-
In the Konflux UI, select the Release services > Release plan tab.
-
Review the Release plan object that you just added. Using the Release plan tab, you can update or delete the selected Release plan object.
-
When a ReleasePlan is correctly configured to be paired with a ReleasePlanAdmission, its Status will display as being
Matched
.