Skip to content

Commit 6cf51f7

Browse files
authored
fix(attestation): material annotations output (#2502)
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 7b6fbd4 commit 6cf51f7

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

app/cli/cmd/attestation_add.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"github.com/chainloop-dev/chainloop/app/cli/cmd/output"
3030
"github.com/chainloop-dev/chainloop/app/cli/pkg/action"
3131
schemaapi "github.com/chainloop-dev/chainloop/app/controlplane/api/workflowcontract/v1"
32-
"github.com/chainloop-dev/chainloop/pkg/attestation/crafter/materials"
3332
"github.com/chainloop-dev/chainloop/pkg/resourceloader"
3433
)
3534

@@ -195,9 +194,6 @@ func displayMaterialInfo(status *action.AttestationStatusMaterial, policyEvaluat
195194
if len(status.Material.Annotations) > 0 {
196195
mt.AppendRow(table.Row{"Annotations", "------"})
197196
for _, a := range status.Material.Annotations {
198-
if materials.IsLegacyAnnotation(a.Name) {
199-
continue
200-
}
201197
value := a.Value
202198
if value == "" {
203199
value = NotSet

app/cli/cmd/attestation_status.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030

3131
"github.com/chainloop-dev/chainloop/app/cli/cmd/output"
3232
"github.com/chainloop-dev/chainloop/app/cli/pkg/action"
33-
"github.com/chainloop-dev/chainloop/pkg/attestation/crafter/materials"
3433
"github.com/chainloop-dev/chainloop/pkg/attestation/renderer/chainloop"
3534
)
3635

@@ -115,9 +114,6 @@ func attestationStatusTableOutput(status *action.AttestationStatusResult, w io.W
115114
if len(status.Annotations) > 0 {
116115
gt.AppendRow(table.Row{"Annotations", "------"})
117116
for _, a := range status.Annotations {
118-
if materials.IsLegacyAnnotation(a.Name) {
119-
continue
120-
}
121117
value := a.Value
122118
if value == "" {
123119
value = NotSet
@@ -224,9 +220,6 @@ func materialsTable(status *action.AttestationStatusResult, w io.Writer, full bo
224220
if len(m.Annotations) > 0 {
225221
mt.AppendRow(table.Row{"Annotations", "------"})
226222
for _, a := range m.Annotations {
227-
if materials.IsLegacyAnnotation(a.Name) {
228-
continue
229-
}
230223
value := a.Value
231224
if value == "" {
232225
value = NotSet

0 commit comments

Comments
 (0)