forked from instrumenta/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yann Hamon
committed
Oct 31, 2023
1 parent
554704e
commit b51cca2
Showing
120 changed files
with
11,935 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
master-local/exemptprioritylevelconfiguration-flowcontrol-v1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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#" | ||
} |
Oops, something went wrong.