mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +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
|
return 0
|
||||||
case "boolean":
|
case "boolean":
|
||||||
if kindSchema.GetDefault() != nil {
|
if kindSchema.GetDefault() != nil {
|
||||||
if string(kindSchema.GetDefault().Value.Value) == "true" {
|
return string(kindSchema.GetDefault().Value.Value) == "true"
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
if kindSchema.GetExample() != nil {
|
if kindSchema.GetExample() != nil {
|
||||||
if string(kindSchema.GetExample().GetValue().Value) == "true" {
|
return string(kindSchema.GetExample().GetValue().Value) == "true"
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue