Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit ed0a5e7

Browse files
committed
Add printerColoums for ParseDefinition
1 parent a51672d commit ed0a5e7

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

operator/apis/execution/v1/parsedefinition_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ type ParseDefinitionStatus struct {
4040
}
4141

4242
// +kubebuilder:object:root=true
43+
// +kubebuilder:printcolumn:name="Handles Type",type=string,JSONPath=`.spec.handlesResultsType`,description="Which result file type the parser is able to handle"
44+
// +kubebuilder:printcolumn:name="Image",type=string,JSONPath=`.spec.image`,description="Scanner Container Image"
4345

4446
// ParseDefinition is the Schema for the parsedefinitions API
4547
type ParseDefinition struct {

operator/config/crd/bases/execution.experimental.securecodebox.io_parsedefinitions.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@ metadata:
88
creationTimestamp: null
99
name: parsedefinitions.execution.experimental.securecodebox.io
1010
spec:
11+
additionalPrinterColumns:
12+
- JSONPath: .spec.handlesResultsType
13+
description: Which result file type the parser is able to handle
14+
name: Handles Type
15+
type: string
16+
- JSONPath: .spec.image
17+
description: Scanner Container Image
18+
name: Image
19+
type: string
1120
group: execution.experimental.securecodebox.io
1221
names:
1322
kind: ParseDefinition
1423
listKind: ParseDefinitionList
1524
plural: parsedefinitions
1625
singular: parsedefinition
1726
scope: Namespaced
27+
subresources: {}
1828
validation:
1929
openAPIV3Schema:
2030
description: ParseDefinition is the Schema for the parsedefinitions API

operator/crds/execution.experimental.securecodebox.io_parsedefinitions.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@ metadata:
88
creationTimestamp: null
99
name: parsedefinitions.execution.experimental.securecodebox.io
1010
spec:
11+
additionalPrinterColumns:
12+
- JSONPath: .spec.handlesResultsType
13+
description: Which result file type the parser is able to handle
14+
name: Handles Type
15+
type: string
16+
- JSONPath: .spec.image
17+
description: Scanner Container Image
18+
name: Image
19+
type: string
1120
group: execution.experimental.securecodebox.io
1221
names:
1322
kind: ParseDefinition
1423
listKind: ParseDefinitionList
1524
plural: parsedefinitions
1625
singular: parsedefinition
1726
scope: Namespaced
27+
subresources: {}
1828
validation:
1929
openAPIV3Schema:
2030
description: ParseDefinition is the Schema for the parsedefinitions API

0 commit comments

Comments
 (0)