Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Hamon committed Oct 31, 2023
1 parent 554704e commit b51cca2
Show file tree
Hide file tree
Showing 120 changed files with 11,935 additions and 0 deletions.
606 changes: 606 additions & 0 deletions master-local/_definitions.json

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions master-local/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,75 @@
{
"$ref": "_definitions.json#/definitions/io.k8s.api.events.v1.EventSeries"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaCondition"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.GroupSubject"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.LimitResponse"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.QueuingConfiguration"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.ResourcePolicyRule"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.ServiceAccountSubject"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.Subject"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.UserSubject"
},
{
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1beta2.ExemptPriorityLevelConfiguration"
},
Expand Down
6 changes: 6 additions & 0 deletions master-local/deleteoptions-meta-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"events.k8s.io/v1",
"events.k8s.io/v1beta1",
"extensions/v1beta1",
"flowcontrol.apiserver.k8s.io/v1",
"flowcontrol.apiserver.k8s.io/v1beta1",
"flowcontrol.apiserver.k8s.io/v1beta2",
"flowcontrol.apiserver.k8s.io/v1beta3",
Expand Down Expand Up @@ -289,6 +290,11 @@
"kind": "DeleteOptions",
"version": "v1beta1"
},
{
"group": "flowcontrol.apiserver.k8s.io",
"kind": "DeleteOptions",
"version": "v1"
},
{
"group": "flowcontrol.apiserver.k8s.io",
"kind": "DeleteOptions",
Expand Down
5 changes: 5 additions & 0 deletions master-local/deleteoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@
"kind": "DeleteOptions",
"version": "v1beta1"
},
{
"group": "flowcontrol.apiserver.k8s.io",
"kind": "DeleteOptions",
"version": "v1"
},
{
"group": "flowcontrol.apiserver.k8s.io",
"kind": "DeleteOptions",
Expand Down
23 changes: 23 additions & 0 deletions master-local/exemptprioritylevelconfiguration-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.",
"properties": {
"lendablePercent": {
"description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )",
"format": "int32",
"type": [
"integer",
"null"
]
},
"nominalConcurrencyShares": {
"description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.",
"format": "int32",
"type": [
"integer",
"null"
]
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
17 changes: 17 additions & 0 deletions master-local/flowdistinguishermethod-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.",
"properties": {
"type": {
"description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.",
"type": [
"string",
"null"
]
}
},
"required": [
"type"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
46 changes: 46 additions & 0 deletions master-local/flowschema-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": [
"string",
"null"
],
"enum": [
"flowcontrol.apiserver.k8s.io/v1"
]
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"FlowSchema"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
},
"spec": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaSpec",
"description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
},
"status": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaStatus",
"description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "flowcontrol.apiserver.k8s.io",
"kind": "FlowSchema",
"version": "v1"
}
],
"$schema": "http://json-schema.org/schema#"
}
39 changes: 39 additions & 0 deletions master-local/flowschemacondition-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"description": "FlowSchemaCondition describes conditions for a FlowSchema.",
"properties": {
"lastTransitionTime": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "`lastTransitionTime` is the last time the condition transitioned from one status to another."
},
"message": {
"description": "`message` is a human-readable message indicating details about last transition.",
"type": [
"string",
"null"
]
},
"reason": {
"description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.",
"type": [
"string",
"null"
]
},
"status": {
"description": "`status` is the status of the condition. Can be True, False, Unknown. Required.",
"type": [
"string",
"null"
]
},
"type": {
"description": "`type` is the type of the condition. Required.",
"type": [
"string",
"null"
]
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
51 changes: 51 additions & 0 deletions master-local/flowschemalist-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"description": "FlowSchemaList is a list of FlowSchema objects.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": [
"string",
"null"
],
"enum": [
"flowcontrol.apiserver.k8s.io/v1"
]
},
"items": {
"description": "`items` is a list of FlowSchemas.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema"
},
"type": [
"array",
"null"
]
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": [
"string",
"null"
],
"enum": [
"FlowSchemaList"
]
},
"metadata": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
"description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
}
},
"required": [
"items"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "flowcontrol.apiserver.k8s.io",
"kind": "FlowSchemaList",
"version": "v1"
}
],
"$schema": "http://json-schema.org/schema#"
}
37 changes: 37 additions & 0 deletions master-local/flowschemaspec-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.",
"properties": {
"distinguisherMethod": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod",
"description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string."
},
"matchingPrecedence": {
"description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.",
"format": "int32",
"type": [
"integer",
"null"
]
},
"priorityLevelConfiguration": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference",
"description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required."
},
"rules": {
"description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"priorityLevelConfiguration"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
23 changes: 23 additions & 0 deletions master-local/flowschemastatus-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"description": "FlowSchemaStatus represents the current state of a FlowSchema.",
"properties": {
"conditions": {
"description": "`conditions` is a list of the current states of FlowSchema.",
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaCondition"
},
"type": [
"array",
"null"
],
"x-kubernetes-list-map-keys": [
"type"
],
"x-kubernetes-list-type": "map",
"x-kubernetes-patch-merge-key": "type",
"x-kubernetes-patch-strategy": "merge"
}
},
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
17 changes: 17 additions & 0 deletions master-local/groupsubject-flowcontrol-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"description": "GroupSubject holds detailed information for group-kind subject.",
"properties": {
"name": {
"description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.",
"type": [
"string",
"null"
]
}
},
"required": [
"name"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
Loading

0 comments on commit b51cca2

Please sign in to comment.