-
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(crds): Define ClusterVulnerabilityReport resource (#723)
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
- Loading branch information
1 parent
f7c4b28
commit 2627cfe
Showing
16 changed files
with
686 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: clustervulnerabilityreports.aquasecurity.github.io | ||
labels: | ||
app.kubernetes.io/managed-by: starboard | ||
spec: | ||
group: aquasecurity.github.io | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
schema: | ||
openAPIV3Schema: | ||
description: | | ||
ClusterVulnerabilityReport summarizes vulnerabilities in application dependencies and operating system packages | ||
built into container images. | ||
type: object | ||
required: | ||
- apiVersion | ||
- kind | ||
- metadata | ||
- report | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
report: | ||
type: object | ||
required: | ||
- updateTimestamp | ||
- scanner | ||
- artifact | ||
- summary | ||
- vulnerabilities | ||
properties: | ||
updateTimestamp: | ||
type: string | ||
format: date-time | ||
scanner: | ||
type: object | ||
required: | ||
- name | ||
- vendor | ||
- version | ||
properties: | ||
name: | ||
type: string | ||
vendor: | ||
type: string | ||
version: | ||
type: string | ||
registry: | ||
type: object | ||
properties: | ||
server: | ||
type: string | ||
artifact: | ||
type: object | ||
properties: | ||
repository: | ||
type: string | ||
digest: | ||
type: string | ||
tag: | ||
type: string | ||
mimeType: | ||
type: string | ||
summary: | ||
type: object | ||
required: | ||
- criticalCount | ||
- highCount | ||
- mediumCount | ||
- lowCount | ||
- unknownCount | ||
properties: | ||
criticalCount: | ||
type: integer | ||
minimum: 0 | ||
highCount: | ||
type: integer | ||
minimum: 0 | ||
mediumCount: | ||
type: integer | ||
minimum: 0 | ||
lowCount: | ||
type: integer | ||
minimum: 0 | ||
unknownCount: | ||
type: integer | ||
minimum: 0 | ||
vulnerabilities: | ||
type: array | ||
items: | ||
type: object | ||
required: | ||
- vulnerabilityID | ||
- resource | ||
- installedVersion | ||
- fixedVersion | ||
- severity | ||
- title | ||
properties: | ||
vulnerabilityID: | ||
type: string | ||
resource: | ||
type: string | ||
installedVersion: | ||
type: string | ||
fixedVersion: | ||
type: string | ||
score: | ||
type: number | ||
severity: | ||
type: string | ||
enum: | ||
- CRITICAL | ||
- HIGH | ||
- MEDIUM | ||
- LOW | ||
- UNKNOWN | ||
title: | ||
type: string | ||
description: | ||
type: string | ||
primaryLink: | ||
type: string | ||
links: | ||
type: array | ||
items: | ||
type: string | ||
additionalPrinterColumns: | ||
- jsonPath: .report.artifact.repository | ||
type: string | ||
name: Repository | ||
description: The name of image repository | ||
- jsonPath: .report.artifact.tag | ||
type: string | ||
name: Tag | ||
description: The name of image tag | ||
- jsonPath: .report.scanner.name | ||
type: string | ||
name: Scanner | ||
description: The name of the vulnerability scanner | ||
- jsonPath: .metadata.creationTimestamp | ||
type: date | ||
name: Age | ||
description: The age of the report | ||
- jsonPath: .report.summary.criticalCount | ||
type: integer | ||
name: Critical | ||
description: The number of critical vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.highCount | ||
type: integer | ||
name: High | ||
description: The number of high vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.mediumCount | ||
type: integer | ||
name: Medium | ||
description: The number of medium vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.lowCount | ||
type: integer | ||
name: Low | ||
description: The number of low vulnerabilities | ||
priority: 1 | ||
- jsonPath: .report.summary.unknownCount | ||
type: integer | ||
name: Unknown | ||
description: The number of unknown vulnerabilities | ||
priority: 1 | ||
scope: Cluster | ||
names: | ||
singular: clustervulnerabilityreport | ||
plural: clustervulnerabilityreports | ||
kind: ClusterVulnerabilityReport | ||
listKind: ClusterVulnerabilityReportList | ||
categories: | ||
- all | ||
shortNames: | ||
- clustervuln | ||
- clustervulns |
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.
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.