Skip to content

Commit 842e4c8

Browse files
authored
Merge pull request #15 from vidispine/release-1.21
add k8s JSON schema for v1.21
2 parents f3bb137 + 790331d commit 842e4c8

File tree

636 files changed

+413950
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

636 files changed

+413950
-0
lines changed

kubernetes-json-schema/v1.21.0-standalone-strict/_definitions.json

Lines changed: 20538 additions & 0 deletions
Large diffs are not rendered by default.

kubernetes-json-schema/v1.21.0-standalone-strict/affinity-core-v1.json

Lines changed: 876 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
3+
"properties": {
4+
"clusterRoleSelectors": {
5+
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
6+
"items": {
7+
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
8+
"properties": {
9+
"matchExpressions": {
10+
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
11+
"items": {
12+
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
13+
"properties": {
14+
"key": {
15+
"description": "key is the label key that the selector applies to.",
16+
"type": "string",
17+
"x-kubernetes-patch-merge-key": "key",
18+
"x-kubernetes-patch-strategy": "merge"
19+
},
20+
"operator": {
21+
"description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
22+
"type": "string"
23+
},
24+
"values": {
25+
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
26+
"items": {
27+
"type": [
28+
"string",
29+
"null"
30+
]
31+
},
32+
"type": [
33+
"array",
34+
"null"
35+
]
36+
}
37+
},
38+
"required": [
39+
"key",
40+
"operator"
41+
],
42+
"type": "object",
43+
"additionalProperties": false
44+
},
45+
"type": [
46+
"array",
47+
"null"
48+
]
49+
},
50+
"matchLabels": {
51+
"additionalProperties": {
52+
"type": [
53+
"string",
54+
"null"
55+
]
56+
},
57+
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
58+
"type": "object"
59+
}
60+
},
61+
"type": "object",
62+
"x-kubernetes-map-type": "atomic",
63+
"additionalProperties": false
64+
},
65+
"type": [
66+
"array",
67+
"null"
68+
]
69+
}
70+
},
71+
"type": "object",
72+
"additionalProperties": false,
73+
"$schema": "http://json-schema.org/schema#"
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
3+
"properties": {
4+
"clusterRoleSelectors": {
5+
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
6+
"items": {
7+
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
8+
"properties": {
9+
"matchExpressions": {
10+
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
11+
"items": {
12+
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
13+
"properties": {
14+
"key": {
15+
"description": "key is the label key that the selector applies to.",
16+
"type": "string",
17+
"x-kubernetes-patch-merge-key": "key",
18+
"x-kubernetes-patch-strategy": "merge"
19+
},
20+
"operator": {
21+
"description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
22+
"type": "string"
23+
},
24+
"values": {
25+
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
26+
"items": {
27+
"type": [
28+
"string",
29+
"null"
30+
]
31+
},
32+
"type": [
33+
"array",
34+
"null"
35+
]
36+
}
37+
},
38+
"required": [
39+
"key",
40+
"operator"
41+
],
42+
"type": "object",
43+
"additionalProperties": false
44+
},
45+
"type": [
46+
"array",
47+
"null"
48+
]
49+
},
50+
"matchLabels": {
51+
"additionalProperties": {
52+
"type": [
53+
"string",
54+
"null"
55+
]
56+
},
57+
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
58+
"type": "object"
59+
}
60+
},
61+
"type": "object",
62+
"x-kubernetes-map-type": "atomic",
63+
"additionalProperties": false
64+
},
65+
"type": [
66+
"array",
67+
"null"
68+
]
69+
}
70+
},
71+
"type": "object",
72+
"additionalProperties": false,
73+
"$schema": "http://json-schema.org/schema#"
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
3+
"properties": {
4+
"clusterRoleSelectors": {
5+
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
6+
"items": {
7+
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
8+
"properties": {
9+
"matchExpressions": {
10+
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
11+
"items": {
12+
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
13+
"properties": {
14+
"key": {
15+
"description": "key is the label key that the selector applies to.",
16+
"type": "string",
17+
"x-kubernetes-patch-merge-key": "key",
18+
"x-kubernetes-patch-strategy": "merge"
19+
},
20+
"operator": {
21+
"description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
22+
"type": "string"
23+
},
24+
"values": {
25+
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
26+
"items": {
27+
"type": [
28+
"string",
29+
"null"
30+
]
31+
},
32+
"type": [
33+
"array",
34+
"null"
35+
]
36+
}
37+
},
38+
"required": [
39+
"key",
40+
"operator"
41+
],
42+
"type": "object",
43+
"additionalProperties": false
44+
},
45+
"type": [
46+
"array",
47+
"null"
48+
]
49+
},
50+
"matchLabels": {
51+
"additionalProperties": {
52+
"type": [
53+
"string",
54+
"null"
55+
]
56+
},
57+
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
58+
"type": "object"
59+
}
60+
},
61+
"type": "object",
62+
"x-kubernetes-map-type": "atomic",
63+
"additionalProperties": false
64+
},
65+
"type": [
66+
"array",
67+
"null"
68+
]
69+
}
70+
},
71+
"type": "object",
72+
"additionalProperties": false,
73+
"$schema": "http://json-schema.org/schema#"
74+
}

0 commit comments

Comments
 (0)