Make VPA Crds compliant with OpenAPIV3

This commit is contained in:
root 2020-03-06 13:07:58 +00:00
parent 850fd0feaf
commit f70c910ba3
4 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -23,6 +23,7 @@ spec:
validation:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
type: object
properties:
spec:
type: object

View File

@ -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

View File

@ -26,6 +26,7 @@ spec:
validation:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
type: object
properties:
spec:
type: object