mirror of https://github.com/k3s-io/k3s
1928 lines
76 KiB
JSON
1928 lines
76 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "Kubernetes /apis/apps/v1alpha1",
|
|
"version": "unversioned"
|
|
},
|
|
"paths": {
|
|
"/apis/apps/v1alpha1/": {
|
|
"get": {
|
|
"description": "get available resources",
|
|
"consumes": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "getAPIResources",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/unversioned.APIResourceList"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apis/apps/v1alpha1/namespaces/{namespace}/petsets": {
|
|
"get": {
|
|
"description": "list or watch objects of kind PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "listNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
|
|
"name": "fieldSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
|
|
"name": "labelSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.",
|
|
"name": "resourceVersion",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "integer",
|
|
"description": "Timeout for the list/watch call.",
|
|
"name": "timeoutSeconds",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
|
|
"name": "watch",
|
|
"in": "query"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSetList"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"description": "create a PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "createNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"description": "delete collection of PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "deletecollectionNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
|
|
"name": "fieldSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
|
|
"name": "labelSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.",
|
|
"name": "resourceVersion",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "integer",
|
|
"description": "Timeout for the list/watch call.",
|
|
"name": "timeoutSeconds",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
|
|
"name": "watch",
|
|
"in": "query"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/unversioned.Status"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "object name and auth scope, such as for teams and projects",
|
|
"name": "namespace",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
}
|
|
]
|
|
},
|
|
"/apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}": {
|
|
"get": {
|
|
"description": "read the specified PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "readNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'",
|
|
"name": "exact",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Should this value be exported. Export strips fields that a user can not specify.",
|
|
"name": "export",
|
|
"in": "query"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"description": "replace the specified PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "replaceNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"description": "delete a PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "deleteNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/v1.DeleteOptions"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/unversioned.Status"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"patch": {
|
|
"description": "partially update the specified PetSet",
|
|
"consumes": [
|
|
"application/json-patch+json",
|
|
"application/merge-patch+json",
|
|
"application/strategic-merge-patch+json"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "patchNamespacedPetSet",
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/unversioned.Patch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "name of the PetSet",
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "object name and auth scope, such as for teams and projects",
|
|
"name": "namespace",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
}
|
|
]
|
|
},
|
|
"/apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}/status": {
|
|
"get": {
|
|
"description": "read status of the specified PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "readNamespacedPetSetStatus",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"description": "replace status of the specified PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "replaceNamespacedPetSetStatus",
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"patch": {
|
|
"description": "partially update status of the specified PetSet",
|
|
"consumes": [
|
|
"application/json-patch+json",
|
|
"application/merge-patch+json",
|
|
"application/strategic-merge-patch+json"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "patchNamespacedPetSetStatus",
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/unversioned.Patch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "name of the PetSet",
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "object name and auth scope, such as for teams and projects",
|
|
"name": "namespace",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
}
|
|
]
|
|
},
|
|
"/apis/apps/v1alpha1/petsets": {
|
|
"get": {
|
|
"description": "list or watch objects of kind PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/yaml",
|
|
"application/vnd.kubernetes.protobuf"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "listPetSetForAllNamespaces",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/v1alpha1.PetSetList"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
|
|
"name": "fieldSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
|
|
"name": "labelSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.",
|
|
"name": "resourceVersion",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "integer",
|
|
"description": "Timeout for the list/watch call.",
|
|
"name": "timeoutSeconds",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
|
|
"name": "watch",
|
|
"in": "query"
|
|
}
|
|
]
|
|
},
|
|
"/apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets": {
|
|
"get": {
|
|
"description": "watch individual changes to a list of PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/json;stream=watch",
|
|
"application/vnd.kubernetes.protobuf",
|
|
"application/vnd.kubernetes.protobuf;stream=watch"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "watchNamespacedPetSetList",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/versioned.Event"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
|
|
"name": "fieldSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
|
|
"name": "labelSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "object name and auth scope, such as for teams and projects",
|
|
"name": "namespace",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.",
|
|
"name": "resourceVersion",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "integer",
|
|
"description": "Timeout for the list/watch call.",
|
|
"name": "timeoutSeconds",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
|
|
"name": "watch",
|
|
"in": "query"
|
|
}
|
|
]
|
|
},
|
|
"/apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets/{name}": {
|
|
"get": {
|
|
"description": "watch changes to an object of kind PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/json;stream=watch",
|
|
"application/vnd.kubernetes.protobuf",
|
|
"application/vnd.kubernetes.protobuf;stream=watch"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "watchNamespacedPetSet",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/versioned.Event"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
|
|
"name": "fieldSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
|
|
"name": "labelSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "name of the PetSet",
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "object name and auth scope, such as for teams and projects",
|
|
"name": "namespace",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.",
|
|
"name": "resourceVersion",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "integer",
|
|
"description": "Timeout for the list/watch call.",
|
|
"name": "timeoutSeconds",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
|
|
"name": "watch",
|
|
"in": "query"
|
|
}
|
|
]
|
|
},
|
|
"/apis/apps/v1alpha1/watch/petsets": {
|
|
"get": {
|
|
"description": "watch individual changes to a list of PetSet",
|
|
"consumes": [
|
|
"*/*"
|
|
],
|
|
"produces": [
|
|
"application/json",
|
|
"application/json;stream=watch",
|
|
"application/vnd.kubernetes.protobuf",
|
|
"application/vnd.kubernetes.protobuf;stream=watch"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "watchPetSetListForAllNamespaces",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/versioned.Event"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
|
|
"name": "fieldSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
|
|
"name": "labelSelector",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "If 'true', then the output is pretty printed.",
|
|
"name": "pretty",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "string",
|
|
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.",
|
|
"name": "resourceVersion",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "integer",
|
|
"description": "Timeout for the list/watch call.",
|
|
"name": "timeoutSeconds",
|
|
"in": "query"
|
|
},
|
|
{
|
|
"uniqueItems": true,
|
|
"type": "boolean",
|
|
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
|
|
"name": "watch",
|
|
"in": "query"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"definitions": {
|
|
"intstr.IntOrString": {
|
|
"type": "string",
|
|
"format": "int-or-string"
|
|
},
|
|
"resource.Quantity": {
|
|
"type": "string"
|
|
},
|
|
"runtime.RawExtension": {
|
|
"description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)",
|
|
"required": [
|
|
"Raw"
|
|
],
|
|
"properties": {
|
|
"Raw": {
|
|
"description": "Raw is the underlying serialization of this object.",
|
|
"type": "string",
|
|
"format": "byte"
|
|
}
|
|
}
|
|
},
|
|
"unversioned.APIResource": {
|
|
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
|
|
"required": [
|
|
"name",
|
|
"namespaced",
|
|
"kind"
|
|
],
|
|
"properties": {
|
|
"kind": {
|
|
"description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "name is the name of the resource.",
|
|
"type": "string"
|
|
},
|
|
"namespaced": {
|
|
"description": "namespaced indicates if a resource is namespaced or not.",
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"unversioned.APIResourceList": {
|
|
"description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.",
|
|
"required": [
|
|
"groupVersion",
|
|
"resources"
|
|
],
|
|
"properties": {
|
|
"groupVersion": {
|
|
"description": "groupVersion is the group and version this APIResourceList is for.",
|
|
"type": "string"
|
|
},
|
|
"resources": {
|
|
"description": "resources contains the name of the resources and if they are namespaced.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/unversioned.APIResource"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"unversioned.LabelSelector": {
|
|
"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.",
|
|
"properties": {
|
|
"matchExpressions": {
|
|
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/unversioned.LabelSelectorRequirement"
|
|
}
|
|
},
|
|
"matchLabels": {
|
|
"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.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"unversioned.LabelSelectorRequirement": {
|
|
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
|
|
"required": [
|
|
"key",
|
|
"operator"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"description": "key is the label key that the selector applies to.",
|
|
"type": "string"
|
|
},
|
|
"operator": {
|
|
"description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.",
|
|
"type": "string"
|
|
},
|
|
"values": {
|
|
"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.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"unversioned.ListMeta": {
|
|
"description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
|
|
"properties": {
|
|
"resourceVersion": {
|
|
"description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency",
|
|
"type": "string"
|
|
},
|
|
"selfLink": {
|
|
"description": "SelfLink is a URL representing this object. Populated by the system. Read-only.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"unversioned.Patch": {
|
|
"description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body."
|
|
},
|
|
"unversioned.Status": {
|
|
"description": "Status is a return value for calls that don't return other objects.",
|
|
"properties": {
|
|
"code": {
|
|
"description": "Suggested HTTP return code for this status, 0 if not set.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"details": {
|
|
"description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.",
|
|
"$ref": "#/definitions/unversioned.StatusDetails"
|
|
},
|
|
"message": {
|
|
"description": "A human-readable description of the status of this operation.",
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds",
|
|
"$ref": "#/definitions/unversioned.ListMeta"
|
|
},
|
|
"reason": {
|
|
"description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"unversioned.StatusCause": {
|
|
"description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.",
|
|
"properties": {
|
|
"field": {
|
|
"description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"",
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"unversioned.StatusDetails": {
|
|
"description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.",
|
|
"properties": {
|
|
"causes": {
|
|
"description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/unversioned.StatusCause"
|
|
}
|
|
},
|
|
"group": {
|
|
"description": "The group attribute of the resource associated with the status StatusReason.",
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).",
|
|
"type": "string"
|
|
},
|
|
"retryAfterSeconds": {
|
|
"description": "If specified, the time in seconds before the operation should be retried.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
},
|
|
"unversioned.Time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"v1.Capabilities": {
|
|
"description": "Adds and removes POSIX capabilities from running containers.",
|
|
"properties": {
|
|
"add": {
|
|
"description": "Added capabilities",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"drop": {
|
|
"description": "Removed capabilities",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v1.ConfigMapKeySelector": {
|
|
"description": "Selects a key from a ConfigMap.",
|
|
"required": [
|
|
"key"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"description": "The key to select.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.Container": {
|
|
"description": "A single application container that you want to run within a pod.",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"args": {
|
|
"description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"command": {
|
|
"description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"env": {
|
|
"description": "List of environment variables to set in the container. Cannot be updated.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.EnvVar"
|
|
}
|
|
},
|
|
"image": {
|
|
"description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images",
|
|
"type": "string"
|
|
},
|
|
"imagePullPolicy": {
|
|
"description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images",
|
|
"type": "string"
|
|
},
|
|
"lifecycle": {
|
|
"description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.",
|
|
"$ref": "#/definitions/v1.Lifecycle"
|
|
},
|
|
"livenessProbe": {
|
|
"description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
|
|
"$ref": "#/definitions/v1.Probe"
|
|
},
|
|
"name": {
|
|
"description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.",
|
|
"type": "string"
|
|
},
|
|
"ports": {
|
|
"description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.ContainerPort"
|
|
}
|
|
},
|
|
"readinessProbe": {
|
|
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
|
|
"$ref": "#/definitions/v1.Probe"
|
|
},
|
|
"resources": {
|
|
"description": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources",
|
|
"$ref": "#/definitions/v1.ResourceRequirements"
|
|
},
|
|
"securityContext": {
|
|
"description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md",
|
|
"$ref": "#/definitions/v1.SecurityContext"
|
|
},
|
|
"stdin": {
|
|
"description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.",
|
|
"type": "boolean"
|
|
},
|
|
"stdinOnce": {
|
|
"description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false",
|
|
"type": "boolean"
|
|
},
|
|
"terminationMessagePath": {
|
|
"description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated.",
|
|
"type": "string"
|
|
},
|
|
"tty": {
|
|
"description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.",
|
|
"type": "boolean"
|
|
},
|
|
"volumeMounts": {
|
|
"description": "Pod volumes to mount into the container's filesystem. Cannot be updated.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.VolumeMount"
|
|
}
|
|
},
|
|
"workingDir": {
|
|
"description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.ContainerPort": {
|
|
"description": "ContainerPort represents a network port in a single container.",
|
|
"required": [
|
|
"containerPort"
|
|
],
|
|
"properties": {
|
|
"containerPort": {
|
|
"description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"hostIP": {
|
|
"description": "What host IP to bind the external port to.",
|
|
"type": "string"
|
|
},
|
|
"hostPort": {
|
|
"description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"name": {
|
|
"description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.",
|
|
"type": "string"
|
|
},
|
|
"protocol": {
|
|
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.DeleteOptions": {
|
|
"description": "DeleteOptions may be provided when deleting an API object",
|
|
"properties": {
|
|
"gracePeriodSeconds": {
|
|
"description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"orphanDependents": {
|
|
"description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.",
|
|
"type": "boolean"
|
|
},
|
|
"preconditions": {
|
|
"description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.",
|
|
"$ref": "#/definitions/v1.Preconditions"
|
|
}
|
|
}
|
|
},
|
|
"v1.EnvVar": {
|
|
"description": "EnvVar represents an environment variable present in a Container.",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"description": "Name of the environment variable. Must be a C_IDENTIFIER.",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".",
|
|
"type": "string"
|
|
},
|
|
"valueFrom": {
|
|
"description": "Source for the environment variable's value. Cannot be used if value is not empty.",
|
|
"$ref": "#/definitions/v1.EnvVarSource"
|
|
}
|
|
}
|
|
},
|
|
"v1.EnvVarSource": {
|
|
"description": "EnvVarSource represents a source for the value of an EnvVar.",
|
|
"properties": {
|
|
"configMapKeyRef": {
|
|
"description": "Selects a key of a ConfigMap.",
|
|
"$ref": "#/definitions/v1.ConfigMapKeySelector"
|
|
},
|
|
"fieldRef": {
|
|
"description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.",
|
|
"$ref": "#/definitions/v1.ObjectFieldSelector"
|
|
},
|
|
"resourceFieldRef": {
|
|
"description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.",
|
|
"$ref": "#/definitions/v1.ResourceFieldSelector"
|
|
},
|
|
"secretKeyRef": {
|
|
"description": "Selects a key of a secret in the pod's namespace",
|
|
"$ref": "#/definitions/v1.SecretKeySelector"
|
|
}
|
|
}
|
|
},
|
|
"v1.ExecAction": {
|
|
"description": "ExecAction describes a \"run in container\" action.",
|
|
"properties": {
|
|
"command": {
|
|
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v1.HTTPGetAction": {
|
|
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
|
|
"required": [
|
|
"port"
|
|
],
|
|
"properties": {
|
|
"host": {
|
|
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.",
|
|
"type": "string"
|
|
},
|
|
"httpHeaders": {
|
|
"description": "Custom headers to set in the request. HTTP allows repeated headers.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.HTTPHeader"
|
|
}
|
|
},
|
|
"path": {
|
|
"description": "Path to access on the HTTP server.",
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
|
"$ref": "#/definitions/intstr.IntOrString"
|
|
},
|
|
"scheme": {
|
|
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.HTTPHeader": {
|
|
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"description": "The header field name",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"description": "The header field value",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.Handler": {
|
|
"description": "Handler defines a specific action that should be taken",
|
|
"properties": {
|
|
"exec": {
|
|
"description": "One and only one of the following should be specified. Exec specifies the action to take.",
|
|
"$ref": "#/definitions/v1.ExecAction"
|
|
},
|
|
"httpGet": {
|
|
"description": "HTTPGet specifies the http request to perform.",
|
|
"$ref": "#/definitions/v1.HTTPGetAction"
|
|
},
|
|
"tcpSocket": {
|
|
"description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported",
|
|
"$ref": "#/definitions/v1.TCPSocketAction"
|
|
}
|
|
}
|
|
},
|
|
"v1.Lifecycle": {
|
|
"description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.",
|
|
"properties": {
|
|
"postStart": {
|
|
"description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details",
|
|
"$ref": "#/definitions/v1.Handler"
|
|
},
|
|
"preStop": {
|
|
"description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details",
|
|
"$ref": "#/definitions/v1.Handler"
|
|
}
|
|
}
|
|
},
|
|
"v1.LocalObjectReference": {
|
|
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
|
|
"properties": {
|
|
"name": {
|
|
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.ObjectFieldSelector": {
|
|
"description": "ObjectFieldSelector selects an APIVersioned field of an object.",
|
|
"required": [
|
|
"fieldPath"
|
|
],
|
|
"properties": {
|
|
"apiVersion": {
|
|
"description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".",
|
|
"type": "string"
|
|
},
|
|
"fieldPath": {
|
|
"description": "Path of the field to select in the specified API version.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.ObjectMeta": {
|
|
"description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
|
|
"properties": {
|
|
"annotations": {
|
|
"description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"clusterName": {
|
|
"description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.",
|
|
"type": "string"
|
|
},
|
|
"creationTimestamp": {
|
|
"description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
"$ref": "#/definitions/unversioned.Time"
|
|
},
|
|
"deletionGracePeriodSeconds": {
|
|
"description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"deletionTimestamp": {
|
|
"description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource will be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet will send a hard termination signal to the container. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
"$ref": "#/definitions/unversioned.Time"
|
|
},
|
|
"finalizers": {
|
|
"description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"generateName": {
|
|
"description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency",
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"labels": {
|
|
"description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces",
|
|
"type": "string"
|
|
},
|
|
"ownerReferences": {
|
|
"description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.OwnerReference"
|
|
}
|
|
},
|
|
"resourceVersion": {
|
|
"description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency",
|
|
"type": "string"
|
|
},
|
|
"selfLink": {
|
|
"description": "SelfLink is a URL representing this object. Populated by the system. Read-only.",
|
|
"type": "string"
|
|
},
|
|
"uid": {
|
|
"description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.OwnerReference": {
|
|
"description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.",
|
|
"required": [
|
|
"apiVersion",
|
|
"kind",
|
|
"name",
|
|
"uid"
|
|
],
|
|
"properties": {
|
|
"apiVersion": {
|
|
"description": "API version of the referent.",
|
|
"type": "string"
|
|
},
|
|
"controller": {
|
|
"description": "If true, this reference points to the managing controller.",
|
|
"type": "boolean"
|
|
},
|
|
"kind": {
|
|
"description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
|
"type": "string"
|
|
},
|
|
"uid": {
|
|
"description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.PersistentVolumeClaim": {
|
|
"description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume",
|
|
"properties": {
|
|
"metadata": {
|
|
"description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
"$ref": "#/definitions/v1.ObjectMeta"
|
|
},
|
|
"spec": {
|
|
"description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims",
|
|
"$ref": "#/definitions/v1.PersistentVolumeClaimSpec"
|
|
},
|
|
"status": {
|
|
"description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims",
|
|
"$ref": "#/definitions/v1.PersistentVolumeClaimStatus"
|
|
}
|
|
}
|
|
},
|
|
"v1.PersistentVolumeClaimSpec": {
|
|
"description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes",
|
|
"properties": {
|
|
"accessModes": {
|
|
"description": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": {
|
|
"description": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources",
|
|
"$ref": "#/definitions/v1.ResourceRequirements"
|
|
},
|
|
"selector": {
|
|
"description": "A label query over volumes to consider for binding.",
|
|
"$ref": "#/definitions/unversioned.LabelSelector"
|
|
},
|
|
"volumeName": {
|
|
"description": "VolumeName is the binding reference to the PersistentVolume backing this claim.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.PersistentVolumeClaimStatus": {
|
|
"description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.",
|
|
"properties": {
|
|
"accessModes": {
|
|
"description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"capacity": {
|
|
"description": "Represents the actual resources of the underlying volume.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/resource.Quantity"
|
|
}
|
|
},
|
|
"phase": {
|
|
"description": "Phase represents the current phase of PersistentVolumeClaim.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.PodSecurityContext": {
|
|
"description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.",
|
|
"properties": {
|
|
"fsGroup": {
|
|
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"runAsNonRoot": {
|
|
"description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
|
|
"type": "boolean"
|
|
},
|
|
"runAsUser": {
|
|
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"seLinuxOptions": {
|
|
"description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
|
|
"$ref": "#/definitions/v1.SELinuxOptions"
|
|
},
|
|
"supplementalGroups": {
|
|
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "int64"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v1.PodSpec": {
|
|
"description": "PodSpec is a description of a pod.",
|
|
"required": [
|
|
"containers"
|
|
],
|
|
"properties": {
|
|
"activeDeadlineSeconds": {
|
|
"description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"containers": {
|
|
"description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.Container"
|
|
}
|
|
},
|
|
"dnsPolicy": {
|
|
"description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\".",
|
|
"type": "string"
|
|
},
|
|
"hostIPC": {
|
|
"description": "Use the host's ipc namespace. Optional: Default to false.",
|
|
"type": "boolean"
|
|
},
|
|
"hostNetwork": {
|
|
"description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.",
|
|
"type": "boolean"
|
|
},
|
|
"hostPID": {
|
|
"description": "Use the host's pid namespace. Optional: Default to false.",
|
|
"type": "boolean"
|
|
},
|
|
"hostname": {
|
|
"description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.",
|
|
"type": "string"
|
|
},
|
|
"imagePullSecrets": {
|
|
"description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.LocalObjectReference"
|
|
}
|
|
},
|
|
"nodeName": {
|
|
"description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.",
|
|
"type": "string"
|
|
},
|
|
"nodeSelector": {
|
|
"description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"restartPolicy": {
|
|
"description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy",
|
|
"type": "string"
|
|
},
|
|
"securityContext": {
|
|
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.",
|
|
"$ref": "#/definitions/v1.PodSecurityContext"
|
|
},
|
|
"serviceAccount": {
|
|
"description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.",
|
|
"type": "string"
|
|
},
|
|
"serviceAccountName": {
|
|
"description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md",
|
|
"type": "string"
|
|
},
|
|
"subdomain": {
|
|
"description": "If specified, the fully qualified Pod hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\". If not specified, the pod will not have a domainname at all.",
|
|
"type": "string"
|
|
},
|
|
"terminationGracePeriodSeconds": {
|
|
"description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"volumes": {
|
|
"description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.Volume"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v1.PodTemplateSpec": {
|
|
"description": "PodTemplateSpec describes the data a pod should have when created from a template",
|
|
"properties": {
|
|
"metadata": {
|
|
"description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
"$ref": "#/definitions/v1.ObjectMeta"
|
|
},
|
|
"spec": {
|
|
"description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
|
"$ref": "#/definitions/v1.PodSpec"
|
|
}
|
|
}
|
|
},
|
|
"v1.Preconditions": {
|
|
"description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.",
|
|
"properties": {
|
|
"uid": {
|
|
"description": "Specifies the target UID.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.Probe": {
|
|
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
|
|
"properties": {
|
|
"failureThreshold": {
|
|
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"initialDelaySeconds": {
|
|
"description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"periodSeconds": {
|
|
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"successThreshold": {
|
|
"description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"timeoutSeconds": {
|
|
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
},
|
|
"v1.ResourceFieldSelector": {
|
|
"description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format",
|
|
"required": [
|
|
"resource"
|
|
],
|
|
"properties": {
|
|
"containerName": {
|
|
"description": "Container name: required for volumes, optional for env vars",
|
|
"type": "string"
|
|
},
|
|
"divisor": {
|
|
"description": "Specifies the output format of the exposed resources, defaults to \"1\"",
|
|
"$ref": "#/definitions/resource.Quantity"
|
|
},
|
|
"resource": {
|
|
"description": "Required: resource to select",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.ResourceRequirements": {
|
|
"description": "ResourceRequirements describes the compute resource requirements.",
|
|
"properties": {
|
|
"limits": {
|
|
"description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/resource.Quantity"
|
|
}
|
|
},
|
|
"requests": {
|
|
"description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/resource.Quantity"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v1.SELinuxOptions": {
|
|
"description": "SELinuxOptions are the labels to be applied to the container",
|
|
"properties": {
|
|
"level": {
|
|
"description": "Level is SELinux level label that applies to the container.",
|
|
"type": "string"
|
|
},
|
|
"role": {
|
|
"description": "Role is a SELinux role label that applies to the container.",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "Type is a SELinux type label that applies to the container.",
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"description": "User is a SELinux user label that applies to the container.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.SecretKeySelector": {
|
|
"description": "SecretKeySelector selects a key of a Secret.",
|
|
"required": [
|
|
"key"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"description": "The key of the secret to select from. Must be a valid secret key.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.SecurityContext": {
|
|
"description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.",
|
|
"properties": {
|
|
"capabilities": {
|
|
"description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.",
|
|
"$ref": "#/definitions/v1.Capabilities"
|
|
},
|
|
"privileged": {
|
|
"description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.",
|
|
"type": "boolean"
|
|
},
|
|
"readOnlyRootFilesystem": {
|
|
"description": "Whether this container has a read-only root filesystem. Default is false.",
|
|
"type": "boolean"
|
|
},
|
|
"runAsNonRoot": {
|
|
"description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
|
|
"type": "boolean"
|
|
},
|
|
"runAsUser": {
|
|
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"seLinuxOptions": {
|
|
"description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
|
|
"$ref": "#/definitions/v1.SELinuxOptions"
|
|
}
|
|
}
|
|
},
|
|
"v1.TCPSocketAction": {
|
|
"description": "TCPSocketAction describes an action based on opening a socket",
|
|
"required": [
|
|
"port"
|
|
],
|
|
"properties": {
|
|
"port": {
|
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
|
"$ref": "#/definitions/intstr.IntOrString"
|
|
}
|
|
}
|
|
},
|
|
"v1.Volume": {
|
|
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1.VolumeMount": {
|
|
"description": "VolumeMount describes a mounting of a Volume within a container.",
|
|
"required": [
|
|
"name",
|
|
"mountPath"
|
|
],
|
|
"properties": {
|
|
"mountPath": {
|
|
"description": "Path within the container at which the volume should be mounted. Must not contain ':'.",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "This must match the Name of a Volume.",
|
|
"type": "string"
|
|
},
|
|
"readOnly": {
|
|
"description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.",
|
|
"type": "boolean"
|
|
},
|
|
"subPath": {
|
|
"description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"v1alpha1.PetSet": {
|
|
"description": "PetSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe PetSet guarantees that a given network identity will always map to the same storage identity. PetSet is currently in alpha and subject to change without notice.",
|
|
"properties": {
|
|
"metadata": {
|
|
"$ref": "#/definitions/v1.ObjectMeta"
|
|
},
|
|
"spec": {
|
|
"description": "Spec defines the desired identities of pets in this set.",
|
|
"$ref": "#/definitions/v1alpha1.PetSetSpec"
|
|
},
|
|
"status": {
|
|
"description": "Status is the current status of Pets in this PetSet. This data may be out of date by some window of time.",
|
|
"$ref": "#/definitions/v1alpha1.PetSetStatus"
|
|
}
|
|
}
|
|
},
|
|
"v1alpha1.PetSetList": {
|
|
"description": "PetSetList is a collection of PetSets.",
|
|
"required": [
|
|
"items"
|
|
],
|
|
"properties": {
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1alpha1.PetSet"
|
|
}
|
|
},
|
|
"metadata": {
|
|
"$ref": "#/definitions/unversioned.ListMeta"
|
|
}
|
|
}
|
|
},
|
|
"v1alpha1.PetSetSpec": {
|
|
"description": "A PetSetSpec is the specification of a PetSet.",
|
|
"required": [
|
|
"template",
|
|
"serviceName"
|
|
],
|
|
"properties": {
|
|
"replicas": {
|
|
"description": "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"selector": {
|
|
"description": "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
|
|
"$ref": "#/definitions/unversioned.LabelSelector"
|
|
},
|
|
"serviceName": {
|
|
"description": "ServiceName is the name of the service that governs this PetSet. This service must exist before the PetSet, and is responsible for the network identity of the set. Pets get DNS/hostnames that follow the pattern: pet-specific-string.serviceName.default.svc.cluster.local where \"pet-specific-string\" is managed by the PetSet controller.",
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the PetSet will fulfill this Template, but have a unique identity from the rest of the PetSet.",
|
|
"$ref": "#/definitions/v1.PodTemplateSpec"
|
|
},
|
|
"volumeClaimTemplates": {
|
|
"description": "VolumeClaimTemplates is a list of claims that pets are allowed to reference. The PetSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pet. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/v1.PersistentVolumeClaim"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"v1alpha1.PetSetStatus": {
|
|
"description": "PetSetStatus represents the current state of a PetSet.",
|
|
"required": [
|
|
"replicas"
|
|
],
|
|
"properties": {
|
|
"observedGeneration": {
|
|
"description": "most recent generation observed by this autoscaler.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"replicas": {
|
|
"description": "Replicas is the number of actual replicas.",
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
},
|
|
"versioned.Event": {
|
|
"description": "Event represents a single event to a watched resource.",
|
|
"required": [
|
|
"type",
|
|
"object"
|
|
],
|
|
"properties": {
|
|
"object": {
|
|
"description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.",
|
|
"$ref": "#/definitions/runtime.RawExtension"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|