diff --git a/config/samples/projctl_v1beta1_pds_w_relpln_exp_results.yaml b/config/samples/projctl_v1beta1_pds_w_relpln_exp_results.yaml index 6fe19ca..b6d88c4 100644 --- a/config/samples/projctl_v1beta1_pds_w_relpln_exp_results.yaml +++ b/config/samples/projctl_v1beta1_pds_w_relpln_exp_results.yaml @@ -104,6 +104,7 @@ metadata: release.appstudio.openshift.io/author: system_serviceaccount_remote-argocd_remote-argocd release.appstudio.openshift.io/auto-release: 'true' release.appstudio.openshift.io/standing-attribution: 'true' + release.appstudio.openshift.io/releasePlanAdmission: cool-rpa-4-4-0 spec: application: "cool-app-4-4-0" releaseGracePeriodDays: 7 diff --git a/config/samples/projctl_v1beta1_pdst_w_relpln.yaml b/config/samples/projctl_v1beta1_pdst_w_relpln.yaml index a1a4b19..ca0f51d 100644 --- a/config/samples/projctl_v1beta1_pdst_w_relpln.yaml +++ b/config/samples/projctl_v1beta1_pdst_w_relpln.yaml @@ -84,6 +84,7 @@ spec: release.appstudio.openshift.io/author: system_serviceaccount_remote-argocd_remote-argocd release.appstudio.openshift.io/auto-release: 'true' release.appstudio.openshift.io/standing-attribution: 'true' + release.appstudio.openshift.io/releasePlanAdmission: cool-rpa-{{.versionName}} spec: application: "cool-app-{{.versionName}}" releaseGracePeriodDays: 7 diff --git a/internal/template/resources.go b/internal/template/resources.go index 86858b1..b1ce4f3 100644 --- a/internal/template/resources.go +++ b/internal/template/resources.go @@ -118,6 +118,7 @@ var supportedResourceTypes = []struct { }, templateAbleNameFields: [][]string{ {"metadata", "name"}, + {"metadata", "labels", "release.appstudio.openshift.io/releasePlanAdmission"}, {"spec", "application"}, }, ownerNameField: []string{"spec", "application"},