Skip to content

Commit

Permalink
chore: Upgrade CRD apiVersion from apiextensions.k8s.io/v1beta1 to ap…
Browse files Browse the repository at this point in the history
…iextensions.k8s.io/v1 (#411)

Resolves: #371

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak committed Feb 25, 2021
1 parent 001ee2c commit 8325cb2
Show file tree
Hide file tree
Showing 16 changed files with 619 additions and 549 deletions.
52 changes: 28 additions & 24 deletions deploy/crd/ciskubebenchreports.crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: ciskubebenchreports.aquasecurity.github.io
Expand All @@ -10,6 +10,33 @@ spec:
- name: v1alpha1
served: true
storage: true
additionalPrinterColumns:
- jsonPath: .report.scanner.name
type: string
name: Scanner
- jsonPath: .metadata.creationTimestamp
type: date
name: Age
- jsonPath: .report.summary.failCount
type: integer
name: Fail
priority: 1
- jsonPath: .report.summary.warnCount
type: integer
name: Warn
priority: 1
- jsonPath: .report.summary.infoCount
type: integer
name: Info
priority: 1
- jsonPath: .report.summary.passCount
type: integer
name: Pass
priority: 1
schema:
openAPIV3Schema:
x-kubernetes-preserve-unknown-fields: true
type: "object"
scope: Cluster
names:
singular: ciskubebenchreport
Expand All @@ -20,26 +47,3 @@ spec:
- all
shortNames:
- kubebench
additionalPrinterColumns:
- JSONPath: .report.scanner.name
type: string
name: Scanner
- JSONPath: .metadata.creationTimestamp
type: date
name: Age
- JSONPath: .report.summary.passCount
type: integer
name: Pass
priority: 1
- JSONPath: .report.summary.infoCount
type: integer
name: Info
priority: 1
- JSONPath: .report.summary.warnCount
type: integer
name: Warn
priority: 1
- JSONPath: .report.summary.failCount
type: integer
name: Fail
priority: 1
54 changes: 29 additions & 25 deletions deploy/crd/configauditreports.crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: configauditreports.aquasecurity.github.io
Expand All @@ -10,6 +10,34 @@ spec:
- 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: Namespaced
names:
singular: configauditreport
Expand All @@ -20,27 +48,3 @@ spec:
- all
shortNames:
- configaudit
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.passCount
type: integer
name: Pass
priority: 1
description: The number of checks that passed
- 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
25 changes: 24 additions & 1 deletion deploy/crd/kubehunterreports.crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: kubehunterreports.aquasecurity.github.io
Expand All @@ -10,6 +10,29 @@ spec:
- name: v1alpha1
served: true
storage: true
additionalPrinterColumns:
- jsonPath: ".report.scanner.name"
name: "Scanner"
type: "string"
- jsonPath: ".metadata.creationTimestamp"
name: "Age"
type: "date"
- jsonPath: ".report.summary.highCount"
name: "High"
type: "integer"
priority: 1
- jsonPath: ".report.summary.mediumCount"
name: "Medium"
type: "integer"
priority: 1
- jsonPath: ".report.summary.lowCount"
name: "Low"
type: "integer"
priority: 1
schema:
openAPIV3Schema:
x-kubernetes-preserve-unknown-fields: true
type: "object"
scope: Cluster
names:
singular: kubehunterreport
Expand Down

0 comments on commit 8325cb2

Please sign in to comment.