Skip to content

Commit

Permalink
render: perfprofile: don't annotate perfprof (#951)
Browse files Browse the repository at this point in the history
don't add weak ref to the perfprof and
don't write back an updated version in output.

Signed-off-by: Francesco Romani <fromani@redhat.com>
(cherry picked from commit fd8ea4e)
  • Loading branch information
ffromani committed Feb 20, 2024
1 parent 5308f47 commit 34926bd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/performanceprofile/cmd/render/render.go
Expand Up @@ -210,10 +210,6 @@ func render(ownerRefMode, inputDir, outputDir string) error {
if err != nil {
return err
}
err = writeObject(outputDir, fmt.Sprintf("%s_%s.yaml", pp.Name, "annotated"), pp)
if err != nil {
return err
}
}

for kind, manifest := range components.ToManifestTable() {
Expand Down Expand Up @@ -264,11 +260,6 @@ func addWeakOwnerReferenceLabel(components *manifestset.ManifestResultSet, pp *p
lab := weakOwnerReferenceNameLabel // shortcut
val := pp.Name // shortcut

if pp.Labels == nil {
pp.Labels = make(map[string]string)
}
pp.Labels[lab] = val

for _, componentObj := range components.ToObjects() {
labels := componentObj.GetLabels()
if labels == nil {
Expand Down

0 comments on commit 34926bd

Please sign in to comment.