use v1 crds for vpa
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2020-06-29 20:33:59 +02:00
parent 39e7dbb724
commit 56186c31c5
1 changed files with 27 additions and 2 deletions

View File

@ -3,6 +3,8 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: verticalpodautoscalers.autoscaling.k8s.io
annotations:
"api-approved.kubernetes.io": "https://github.com/kubernetes/kubernetes/pull/63797"
spec:
group: autoscaling.k8s.io
scope: Namespaced
@ -15,11 +17,14 @@ spec:
version: v1beta1
versions:
- name: v1beta1
served: true
served: false
storage: false
- name: v1beta2
served: true
storage: true
- name: v1
served: true
storage: false
validation:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
@ -43,11 +48,28 @@ spec:
type: array
items:
type: object
properties:
containerName:
type: string
mode:
type: string
enum: ["Auto", "Off"]
minAllowed:
type: object
maxAllowed:
type: object
controlledResources:
type: array
items:
type: string
enum: ["cpu", "memory"]
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: verticalpodautoscalercheckpoints.autoscaling.k8s.io
annotations:
"api-approved.kubernetes.io": "https://github.com/kubernetes/kubernetes/pull/63797"
spec:
group: autoscaling.k8s.io
scope: Namespaced
@ -60,8 +82,11 @@ spec:
version: v1beta1
versions:
- name: v1beta1
served: true
served: false
storage: false
- name: v1beta2
served: true
storage: true
- name: v1
served: true
storage: false