Skip to content

Commit

Permalink
add openapiv3 validation schema
Browse files Browse the repository at this point in the history
  • Loading branch information
igoihman committed Nov 9, 2018
1 parent bc73d4f commit 9a4dde9
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions manifests/templates/cdi-controller.yaml.in
Expand Up @@ -111,6 +111,63 @@ spec:
- dvs
singular: datavolume
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata: {}
spec:
properties:
source:
properties:
http:
properties:
url:
type: string
secretRef:
type: string
required:
- url
s3:
properties:
url:
type: string
secretRef:
type: string
required:
- url
pvc:
properties:
namespace:
type: string
name:
type: string
required:
- namespace
- name
upload:
pvc:
properties:
resources:
properties:
requests:
properties:
storage:
type: string
required:
- storage
required:
- requests
storageClassName:
type: string
accessModes:
type: array
required:
- resources

version: v1alpha1
---
kind: ServiceAccount
Expand Down

0 comments on commit 9a4dde9

Please sign in to comment.