-
Notifications
You must be signed in to change notification settings - Fork 0
/
secret-schema.yaml
90 lines (90 loc) · 1.9 KB
/
secret-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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
$schema: http://json-schema.org/draft-07/schema#
title: Secret
$ref: "#/definitions/secret"
definitions:
secret:
type: object
properties:
apiVersion:
const: apiextensions.rapyuta.io/v1
default: apiextensions.rapyuta.io/v1
kind:
const: Secret
metadata:
"$ref": "#/definitions/metadata"
spec:
"$ref": "#/definitions/secretSpec"
required:
- apiVersion
- kind
- metadata
- spec
metadata:
type: object
properties:
name:
type: string
minLength: 3
maxLength: 253
guid:
"$ref": "#/definitions/secretGUID"
creator:
"$ref": "#/definitions/uuid"
project:
"$ref": "#/definitions/projectGUID"
labels:
"$ref": "#/definitions/stringMap"
uniqueItems: true
required:
- name
projectGUID:
type: string
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
secretGUID:
type: string
pattern: "^secret-([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}$"
secretSpec:
type: object
properties:
type:
type: string
default: Docker
enum:
- Docker
required:
- type
dependencies:
type:
oneOf:
- properties:
type:
enum:
- Docker
docker:
type: object
"$ref": "#/definitions/docker"
docker:
type: object
properties:
registry:
type: string
default: "https://index.docker.io/v1/"
username:
type: string
password:
type: string
email:
type: string
required:
- registry
- username
- password
- email