-
Notifications
You must be signed in to change notification settings - Fork 0
/
static_route-schema.yaml
74 lines (74 loc) · 1.76 KB
/
static_route-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
---
$schema: http://json-schema.org/draft-07/schema#
title: Static Route
description: A named route for the Deployment endpoint
$ref: "#/definitions/staticRoute"
definitions:
staticRoute:
type: object
properties:
apiVersion:
const: apiextensions.rapyuta.io/v1
default: apiextensions.rapyuta.io/v1
kind:
const: StaticRoute
metadata:
"$ref": "#/definitions/metadata"
spec:
"$ref": "#/definitions/staticRouteSpec"
status:
"$ref": "#/definitions/staticRouteStatus"
required:
- apiVersion
- kind
- metadata
metadata:
type: object
properties:
name:
type: string
guid:
"$ref": "#/definitions/staticRouteGUID"
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})$"
staticRouteGUID:
type: string
pattern: "^staticroute-([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}$"
ipRange:
type: string
pattern: '^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}(?:/([1-9]|1\d|2\d|3[0-2]))?$'
staticRouteSpec:
type: object
properties:
url:
type: string
sourceIPRange:
type: array
items:
"$ref": "#/definitions/ipRange"
staticRouteStatus:
type: object
properties:
status:
type: string
packageID:
type: string
deploymentID:
type: string