-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Define ClusterConfigAuditReport (#622)
We could not associate ConfigAuditReports with cluster-scoped resources such as ClusterRole or CustomResourceDefinition. Therefore, this commit defines cluster-scoped equivalent to ConfigAuditReport called ClusterConfigAuditReport. Signed-off-by: Daniel Pacak <[email protected]>
- Loading branch information
1 parent
0f11ca6
commit 7f590ba
Showing
16 changed files
with
567 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: clusterconfigauditreports.aquasecurity.github.io | ||
labels: | ||
app.kubernetes.io/managed-by: starboard | ||
spec: | ||
group: aquasecurity.github.io | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
additionalPrinterColumns: | ||
- jsonPath: .report.scanner.name | ||
type: string | ||
name: Scanner | ||
description: The name of the config audit scanner | ||
- jsonPath: .metadata.creationTimestamp | ||
type: date | ||
name: Age | ||
description: The age of the report | ||
- jsonPath: .report.summary.dangerCount | ||
type: integer | ||
name: Danger | ||
priority: 1 | ||
description: The number of checks that failed with Danger status | ||
- jsonPath: .report.summary.warningCount | ||
type: integer | ||
name: Warning | ||
priority: 1 | ||
description: The number of checks that failed with Warning status | ||
- jsonPath: .report.summary.passCount | ||
type: integer | ||
name: Pass | ||
priority: 1 | ||
description: The number of checks that passed | ||
schema: | ||
openAPIV3Schema: | ||
x-kubernetes-preserve-unknown-fields: true | ||
type: object | ||
scope: Cluster | ||
names: | ||
singular: clusterconfigauditreport | ||
plural: clusterconfigauditreports | ||
kind: ClusterConfigAuditReport | ||
listKind: ClusterConfigAuditReportList | ||
categories: | ||
- all | ||
shortNames: | ||
- clusterconfigaudit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
pkg/generated/clientset/versioned/typed/aquasecurity/v1alpha1/aquasecurity_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.