Skip to content

Commit

Permalink
chore: compliance crd output wide support (#1193)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan authored May 3, 2023
1 parent e866712 commit 4c3ea53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ spec:
name: Age
type: date
- description: The number of checks that failed
jsonPath: .status.totalCounts.failCount
jsonPath: .status.summary.failCount
name: Fail
priority: 1
type: integer
- description: The number of checks that passed
jsonPath: .status.totalCounts.passCount
jsonPath: .status.summary.passCount
name: Pass
priority: 1
type: integer
Expand Down
4 changes: 2 additions & 2 deletions deploy/static/trivy-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ spec:
name: Age
type: date
- description: The number of checks that failed
jsonPath: .status.totalCounts.failCount
jsonPath: .status.summary.failCount
name: Fail
priority: 1
type: integer
- description: The number of checks that passed
jsonPath: .status.totalCounts.passCount
jsonPath: .status.summary.passCount
name: Pass
priority: 1
type: integer
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/aquasecurity/v1alpha1/compliance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
// +kubebuilder:resource:scope=Cluster,shortName={compliance}
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="The age of the report"
// +kubebuilder:printcolumn:name="Fail",type=integer,JSONPath=`.status.totalCounts.failCount`,priority=1,description="The number of checks that failed"
// +kubebuilder:printcolumn:name="Pass",type=integer,JSONPath=`.status.totalCounts.passCount`,priority=1,description="The number of checks that passed"
// +kubebuilder:printcolumn:name="Fail",type=integer,JSONPath=`.status.summary.failCount`,priority=1,description="The number of checks that failed"
// +kubebuilder:printcolumn:name="Pass",type=integer,JSONPath=`.status.summary.passCount`,priority=1,description="The number of checks that passed"

// ClusterComplianceReport is a specification for the ClusterComplianceReport resource.
type ClusterComplianceReport struct {
Expand Down

0 comments on commit 4c3ea53

Please sign in to comment.