Skip to content

Commit 4317838

Browse files
authored
Merge pull request kubernetes#2904 from onesolpark/openapi-v3
Make VPA Crds compliant with OpenAPIV3
2 parents ab64923 + f70c910 commit 4317838

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

vertical-pod-autoscaler/deploy/vpa-beta-crd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,27 @@ spec:
1616
validation:
1717
# openAPIV3Schema is the schema for validating custom objects.
1818
openAPIV3Schema:
19+
type: object
1920
properties:
2021
spec:
22+
type: object
2123
required:
2224
- selector
2325
properties:
2426
selector:
2527
type: object
2628
updatePolicy:
29+
type: object
2730
properties:
2831
updateMode:
2932
type: string
3033
resourcePolicy:
34+
type: object
3135
properties:
3236
containerPolicies:
3337
type: array
38+
items:
39+
type: object
3440
---
3541
apiVersion: apiextensions.k8s.io/v1beta1
3642
kind: CustomResourceDefinition

vertical-pod-autoscaler/deploy/vpa-beta2-crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spec:
2323
validation:
2424
# openAPIV3Schema is the schema for validating custom objects.
2525
openAPIV3Schema:
26+
type: object
2627
properties:
2728
spec:
2829
type: object

vertical-pod-autoscaler/deploy/vpa-crd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,27 @@ spec:
1616
validation:
1717
# openAPIV3Schema is the schema for validating custom objects.
1818
openAPIV3Schema:
19+
type: object
1920
properties:
2021
spec:
22+
type: object
2123
required:
2224
- selector
2325
properties:
2426
selector:
2527
type: object
2628
updatePolicy:
29+
type: object
2730
properties:
2831
updateMode:
2932
type: string
3033
resourcePolicy:
34+
type: object
3135
properties:
3236
containerPolicies:
3337
type: array
38+
items:
39+
type: object
3440
---
3541
apiVersion: apiextensions.k8s.io/v1beta1
3642
kind: CustomResourceDefinition

vertical-pod-autoscaler/deploy/vpa-v1-crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ spec:
2626
validation:
2727
# openAPIV3Schema is the schema for validating custom objects.
2828
openAPIV3Schema:
29+
type: object
2930
properties:
3031
spec:
3132
type: object

0 commit comments

Comments
 (0)