Fix response class schema (#11510)

Fixes #11483

Service profile's response class schema indicates that a `not` response match should be an array.  This is incorrect and parsing of the response class will fail if an array is provided.  

Update the schema to properly indicate that `not`'s value should be an object.

Signed-off-by: Alex Leong <alex@buoyant.io>
This commit is contained in:
Alex Leong 2023-10-20 15:17:16 -07:00 committed by GitHub
parent 810de29028
commit cca3cf8005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 32 deletions

View File

@ -126,8 +126,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
@ -252,8 +250,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:

View File

@ -5980,8 +5980,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
@ -6106,8 +6104,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:

View File

@ -5994,8 +5994,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
@ -6120,8 +6118,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:

View File

@ -5994,8 +5994,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
@ -6120,8 +6118,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
not:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
status: