mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
522 more missing changes from circleci
This commit is contained in:
parent
db95002828
commit
29bb74c537
1 changed files with 2 additions and 8 deletions
|
@ -230,16 +230,10 @@ func generateEmptyResource(kindSchema *openapi_v2.Schema) interface{} {
|
|||
return 0
|
||||
case "boolean":
|
||||
if kindSchema.GetDefault() != nil {
|
||||
if string(kindSchema.GetDefault().Value.Value) == "true" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return string(kindSchema.GetDefault().Value.Value) == "true"
|
||||
}
|
||||
if kindSchema.GetExample() != nil {
|
||||
if string(kindSchema.GetExample().GetValue().Value) == "true" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return string(kindSchema.GetExample().GetValue().Value) == "true"
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue