Make VPA Crds compliant with OpenAPIV3
This commit is contained in:
parent
850fd0feaf
commit
f70c910ba3
|
|
@ -16,21 +16,27 @@ spec:
|
|||
validation:
|
||||
# openAPIV3Schema is the schema for validating custom objects.
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
required:
|
||||
- selector
|
||||
properties:
|
||||
selector:
|
||||
type: object
|
||||
updatePolicy:
|
||||
type: object
|
||||
properties:
|
||||
updateMode:
|
||||
type: string
|
||||
resourcePolicy:
|
||||
type: object
|
||||
properties:
|
||||
containerPolicies:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1beta1
|
||||
kind: CustomResourceDefinition
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ spec:
|
|||
validation:
|
||||
# openAPIV3Schema is the schema for validating custom objects.
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
|
|
|
|||
|
|
@ -16,21 +16,27 @@ spec:
|
|||
validation:
|
||||
# openAPIV3Schema is the schema for validating custom objects.
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
required:
|
||||
- selector
|
||||
properties:
|
||||
selector:
|
||||
type: object
|
||||
updatePolicy:
|
||||
type: object
|
||||
properties:
|
||||
updateMode:
|
||||
type: string
|
||||
resourcePolicy:
|
||||
type: object
|
||||
properties:
|
||||
containerPolicies:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1beta1
|
||||
kind: CustomResourceDefinition
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ spec:
|
|||
validation:
|
||||
# openAPIV3Schema is the schema for validating custom objects.
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
|
|
|
|||
Loading…
Reference in New Issue