Skip to content

Commit

Permalink
Add patch-level version
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi committed Oct 14, 2024
1 parent bbc7623 commit fc80c19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: ReleasePlanAdmission
metadata:
name: serverless-operator-135
name: serverless-operator-135-1350
namespace: rhtap-releng-tenant
spec:
applications: [serverless-operator-135]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: ReleasePlanAdmission
metadata:
name: serverless-operator-135
name: serverless-operator-135-1350
namespace: rhtap-releng-tenant
spec:
applications: [serverless-operator-135]
Expand Down
4 changes: 2 additions & 2 deletions pkg/konfluxgen/konfluxgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ func GenerateReleasePlanAdmission(csvPath string, resourceOutputPath string, app
if err := os.MkdirAll(outputDir, 0777); err != nil {
return fmt.Errorf("failed to create release plan admissions directory: %w", err)
}
outputFilePath := filepath.Join(outputDir, fmt.Sprintf("%s-prod.yaml", Truncate(Sanitize(appName))))
outputFilePath := filepath.Join(outputDir, fmt.Sprintf("%s-%s-prod.yaml", Truncate(Sanitize(appName)), Truncate(Sanitize(csv.Spec.Version.String()))))

components, err := getComponentImageRefs(csv)
if err != nil {
Expand All @@ -739,7 +739,7 @@ func GenerateReleasePlanAdmission(csvPath string, resourceOutputPath string, app
})
}

outputFilePath = filepath.Join(outputDir, fmt.Sprintf("%s-stage.yaml", Truncate(Sanitize(appName))))
outputFilePath = filepath.Join(outputDir, fmt.Sprintf("%s-%s-stage.yaml", Truncate(Sanitize(appName)), Truncate(Sanitize(csv.Spec.Version.String()))))
if err := executeReleasePlanAdmissionTemplate(componentWithStageRepoRef, outputFilePath, appName, soVersion); err != nil {
return fmt.Errorf("failed to execute release plan admission template: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/konfluxgen/releaseplanadmission.template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: ReleasePlanAdmission
metadata:
name: {{{ truncate ( sanitize .ApplicationName ) }}}
name: {{{ truncate ( sanitize .ApplicationName ) }}}-{{{ truncate ( sanitize .Version ) }}}
namespace: rhtap-releng-tenant
spec:
applications: [{{{ truncate ( sanitize .ApplicationName ) }}}]
Expand Down

0 comments on commit fc80c19

Please sign in to comment.