Add basic validation to VPA CRD.
This commit is contained in:
parent
14e6923ef8
commit
38cb991577
|
|
@ -12,3 +12,42 @@ spec:
|
|||
kind: VerticalPodAutoscaler
|
||||
shortNames:
|
||||
- vpa
|
||||
validation:
|
||||
# openAPIV3Schema is the schema for validating custom objects.
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
required:
|
||||
- selector
|
||||
properties:
|
||||
selector:
|
||||
type: object
|
||||
updatePolicy:
|
||||
properties:
|
||||
updateMode:
|
||||
type: string
|
||||
enum:
|
||||
- "Off"
|
||||
- "Initial"
|
||||
- "Auto"
|
||||
resourcePolicy:
|
||||
properties:
|
||||
containerPolicies:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- "On"
|
||||
- "Off"
|
||||
minAllowed:
|
||||
type: object
|
||||
maxAllowed:
|
||||
type: object
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue