Skip to content

Commit e34bacd

Browse files
committed
fix: totalRisk and group fields
Signed-off-by: Ondrej Pokorny <[email protected]>
1 parent d29ee57 commit e34bacd

File tree

9 files changed

+22
-15
lines changed

9 files changed

+22
-15
lines changed

insights/v1/types_insights.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ type HealthCheck struct {
359359
Description string `json:"description,omitempty"`
360360
// totalRisk is the required field of the healthcheck.
361361
// It is indicator of the total risk posed by the detected issue; combination of impact and likelihood.
362-
// Allowed values are Low, Medium, Important and Critical.
362+
// Allowed values are Low, Moderate, Important and Critical.
363363
// The value represents the severity of the issue.
364364
// +required
365365
TotalRisk TotalRisk `json:"totalRisk,omitempty"`
@@ -391,10 +391,10 @@ type ObjectReference struct {
391391
// It must be at most 253 characters in length, and must consist only of lower case alphanumeric characters, '-' and '.', and must start with an alphabetic character and end with an alphanumeric character.
392392
// Example: "", "apps", "build.openshift.io", etc.
393393
// +kubebuilder:validation:XValidation:rule="self.size() == 0 || !format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start with an alphabetic character and end with an alphanumeric character."
394-
// +kubebuilder:validation:MinLength=1
394+
// +kubebuilder:validation:MinLength=0
395395
// +kubebuilder:validation:MaxLength=253
396396
// +required
397-
Group string `json:"group,omitempty"`
397+
Group *string `json:"group,omitempty"`
398398
// resource is required field of the type that is being referenced and follows the DNS1035 format.
399399
// It is normally the plural form of the resource kind in lowercase.
400400
// It must be at most 63 characters in length, and must must consist of only lowercase alphanumeric characters and hyphens, and must start with an alphabetic character and end with an alphanumeric character.

insights/v1/zz_generated.crd-manifests/0000_10_insights_01_datagathers-CustomNoUpgrade.crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ spec:
476476
description: |-
477477
totalRisk is the required field of the healthcheck.
478478
It is indicator of the total risk posed by the detected issue; combination of impact and likelihood.
479-
Allowed values are Low, Medium, Important and Critical.
479+
Allowed values are Low, Moderate, Important and Critical.
480480
The value represents the severity of the issue.
481481
enum:
482482
- Low
@@ -533,7 +533,7 @@ spec:
533533
It must be at most 253 characters in length, and must consist only of lower case alphanumeric characters, '-' and '.', and must start with an alphabetic character and end with an alphanumeric character.
534534
Example: "", "apps", "build.openshift.io", etc.
535535
maxLength: 253
536-
minLength: 1
536+
minLength: 0
537537
type: string
538538
x-kubernetes-validations:
539539
- message: a lowercase RFC 1123 subdomain must consist of lower

insights/v1/zz_generated.crd-manifests/0000_10_insights_01_datagathers-DevPreviewNoUpgrade.crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ spec:
476476
description: |-
477477
totalRisk is the required field of the healthcheck.
478478
It is indicator of the total risk posed by the detected issue; combination of impact and likelihood.
479-
Allowed values are Low, Medium, Important and Critical.
479+
Allowed values are Low, Moderate, Important and Critical.
480480
The value represents the severity of the issue.
481481
enum:
482482
- Low
@@ -533,7 +533,7 @@ spec:
533533
It must be at most 253 characters in length, and must consist only of lower case alphanumeric characters, '-' and '.', and must start with an alphabetic character and end with an alphanumeric character.
534534
Example: "", "apps", "build.openshift.io", etc.
535535
maxLength: 253
536-
minLength: 1
536+
minLength: 0
537537
type: string
538538
x-kubernetes-validations:
539539
- message: a lowercase RFC 1123 subdomain must consist of lower

insights/v1/zz_generated.crd-manifests/0000_10_insights_01_datagathers-TechPreviewNoUpgrade.crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ spec:
476476
description: |-
477477
totalRisk is the required field of the healthcheck.
478478
It is indicator of the total risk posed by the detected issue; combination of impact and likelihood.
479-
Allowed values are Low, Medium, Important and Critical.
479+
Allowed values are Low, Moderate, Important and Critical.
480480
The value represents the severity of the issue.
481481
enum:
482482
- Low
@@ -533,7 +533,7 @@ spec:
533533
It must be at most 253 characters in length, and must consist only of lower case alphanumeric characters, '-' and '.', and must start with an alphabetic character and end with an alphanumeric character.
534534
Example: "", "apps", "build.openshift.io", etc.
535535
maxLength: 253
536-
minLength: 1
536+
minLength: 0
537537
type: string
538538
x-kubernetes-validations:
539539
- message: a lowercase RFC 1123 subdomain must consist of lower

insights/v1/zz_generated.deepcopy.go

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

insights/v1/zz_generated.featuregated-crd-manifests/datagathers.insights.openshift.io/InsightsOnDemandDataGather.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ spec:
476476
description: |-
477477
totalRisk is the required field of the healthcheck.
478478
It is indicator of the total risk posed by the detected issue; combination of impact and likelihood.
479-
Allowed values are Low, Medium, Important and Critical.
479+
Allowed values are Low, Moderate, Important and Critical.
480480
The value represents the severity of the issue.
481481
enum:
482482
- Low
@@ -533,7 +533,7 @@ spec:
533533
It must be at most 253 characters in length, and must consist only of lower case alphanumeric characters, '-' and '.', and must start with an alphabetic character and end with an alphanumeric character.
534534
Example: "", "apps", "build.openshift.io", etc.
535535
maxLength: 253
536-
minLength: 1
536+
minLength: 0
537537
type: string
538538
x-kubernetes-validations:
539539
- message: a lowercase RFC 1123 subdomain must consist of lower

insights/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16136,7 +16136,7 @@
1613616136
"type": "string"
1613716137
},
1613816138
"totalRisk": {
16139-
"description": "totalRisk is the required field of the healthcheck. It is indicator of the total risk posed by the detected issue; combination of impact and likelihood. Allowed values are Low, Medium, Important and Critical. The value represents the severity of the issue.",
16139+
"description": "totalRisk is the required field of the healthcheck. It is indicator of the total risk posed by the detected issue; combination of impact and likelihood. Allowed values are Low, Moderate, Important and Critical. The value represents the severity of the issue.",
1614016140
"type": "string"
1614116141
}
1614216142
}

0 commit comments

Comments
 (0)