Skip to content

Commit

Permalink
Update supervisor crd
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Jan 19, 2023
1 parent 6364507 commit 9e9b92e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,56 @@ spec:
- kind
- name
type: object
x-kubernetes-map-type: atomic
vulnerabilityReport:
description: VulnerabilityReport specifies any kind vulnerability
report like cve fixed information
properties:
fixed:
description: Fixed represents the list of CVEs fixed if the recommendation
is applied
properties:
count:
additionalProperties:
type: integer
type: object
vulnerabilities:
items:
properties:
primaryURL:
type: string
severity:
type: string
vulnerabilityID:
type: string
type: object
type: array
type: object
known:
description: Known represents the list of CVEs known to exist
after the recommendation is applied
properties:
count:
additionalProperties:
type: integer
type: object
vulnerabilities:
items:
properties:
primaryURL:
type: string
severity:
type: string
vulnerabilityID:
type: string
type: object
type: array
type: object
message:
type: string
status:
type: string
type: object
required:
- operation
- recommender
Expand Down Expand Up @@ -270,6 +320,7 @@ spec:
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
x-kubernetes-map-type: atomic
failedAttempt:
default: 0
description: FailedAttempt holds the number of times the operation
Expand Down Expand Up @@ -357,6 +408,7 @@ spec:
- kind
- name
type: object
x-kubernetes-map-type: atomic
type: object
type: object
served: true
Expand Down
4 changes: 2 additions & 2 deletions hack/scripts/import-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ crd-importer \
--group=catalog.kubedb.com

crd-importer \
--input=https://github.com/kmodules/custom-resources/raw/release-1.25/crds/metrics.appscode.com_metricsconfigurations.yaml \
--input=https://github.com/kmodules/custom-resources/raw/v0.25.1/crds/metrics.appscode.com_metricsconfigurations.yaml \
--out=./charts/kubedb-metrics/crds

crd-importer \
Expand All @@ -95,5 +95,5 @@ crd-importer \
--out=./charts/kubedb-grafana-dashboards/crds

crd-importer \
--input=https://github.com/kubeops/supervisor/raw/v0.0.1/crds/supervisor.appscode.com_recommendations.yaml \
--input=https://github.com/kubeops/supervisor/raw/v0.0.2/crds/supervisor.appscode.com_recommendations.yaml \
--out=./charts/kubedb-ops-manager/crds

0 comments on commit 9e9b92e

Please sign in to comment.