-
Notifications
You must be signed in to change notification settings - Fork 0
/
managedservice-schema.yaml
60 lines (60 loc) · 1.33 KB
/
managedservice-schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
$schema: "http://json-schema.org/draft-07/schema#"
title: ManagedService
$ref: "#/definitions/managedservice"
definitions:
managedservice:
type: object
properties:
apiVersion:
const: apiextensions.rapyuta.io/v1
default: apiextensions.rapyuta.io/v1
kind:
const: ManagedService
default: ManagedService
metadata:
"$ref": "#/definitions/metadata"
spec:
"$ref": "#/definitions/managedserviceSpec"
required:
- apiVersion
- kind
- metadata
- spec
metadata:
type: object
properties:
name:
type: string
guid:
"$ref": "#/definitions/uuid"
creator:
"$ref": "#/definitions/uuid"
project:
"$ref": "#/definitions/projectGUID"
labels:
"$ref": "#/definitions/stringMap"
required:
- name
projectGUID:
type: string
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
stringMap:
type: object
additionalProperties:
type: string
uuid:
type: string
pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
managedserviceSpec:
type: object
properties:
provider:
type: string
enum:
- elasticsearch
config:
type: object
required:
- provider
- config