(Auto-gen) Run update-all.sh, codecgen, munge docs, and bazel
This commit is contained in:
parent
f35a095b50
commit
74dbfdca97
@ -14382,9 +14382,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/namespaces/{namespace}/petsets": {
|
"/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "list or watch objects of kind PetSet",
|
"description": "list or watch objects of kind StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14399,7 +14399,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "listAppsV1alpha1NamespacedPetSet",
|
"operationId": "listAppsV1alpha1NamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
@ -14441,7 +14441,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSetList"
|
"$ref": "#/definitions/v1alpha1.StatefulSetList"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14450,7 +14450,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"post": {
|
"post": {
|
||||||
"description": "create a PetSet",
|
"description": "create a StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14465,14 +14465,14 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "createAppsV1alpha1NamespacedPetSet",
|
"operationId": "createAppsV1alpha1NamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "body",
|
"name": "body",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -14480,7 +14480,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14489,7 +14489,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"description": "delete collection of PetSet",
|
"description": "delete collection of StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14504,7 +14504,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "deleteAppsV1alpha1CollectionNamespacedPetSet",
|
"operationId": "deleteAppsV1alpha1CollectionNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
@ -14572,9 +14572,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}": {
|
"/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "read the specified PetSet",
|
"description": "read the specified StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14589,7 +14589,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "readAppsV1alpha1NamespacedPetSet",
|
"operationId": "readAppsV1alpha1NamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
@ -14610,7 +14610,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14619,7 +14619,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"description": "replace the specified PetSet",
|
"description": "replace the specified StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14634,14 +14634,14 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "replaceAppsV1alpha1NamespacedPetSet",
|
"operationId": "replaceAppsV1alpha1NamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "body",
|
"name": "body",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -14649,7 +14649,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14658,7 +14658,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"description": "delete a PetSet",
|
"description": "delete a StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14673,7 +14673,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "deleteAppsV1alpha1NamespacedPetSet",
|
"operationId": "deleteAppsV1alpha1NamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "body",
|
"name": "body",
|
||||||
@ -14697,7 +14697,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"description": "partially update the specified PetSet",
|
"description": "partially update the specified StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json-patch+json",
|
"application/json-patch+json",
|
||||||
"application/merge-patch+json",
|
"application/merge-patch+json",
|
||||||
@ -14714,7 +14714,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "patchAppsV1alpha1NamespacedPetSet",
|
"operationId": "patchAppsV1alpha1NamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "body",
|
"name": "body",
|
||||||
@ -14729,7 +14729,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14741,7 +14741,7 @@
|
|||||||
{
|
{
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@ -14763,9 +14763,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}/status": {
|
"/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "read status of the specified PetSet",
|
"description": "read status of the specified StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14780,12 +14780,12 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "readAppsV1alpha1NamespacedPetSetStatus",
|
"operationId": "readAppsV1alpha1NamespacedStatefulSetStatus",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14794,7 +14794,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"description": "replace status of the specified PetSet",
|
"description": "replace status of the specified StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14809,14 +14809,14 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "replaceAppsV1alpha1NamespacedPetSetStatus",
|
"operationId": "replaceAppsV1alpha1NamespacedStatefulSetStatus",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "body",
|
"name": "body",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -14824,7 +14824,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14833,7 +14833,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"description": "partially update status of the specified PetSet",
|
"description": "partially update status of the specified StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json-patch+json",
|
"application/json-patch+json",
|
||||||
"application/merge-patch+json",
|
"application/merge-patch+json",
|
||||||
@ -14850,7 +14850,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "patchAppsV1alpha1NamespacedPetSetStatus",
|
"operationId": "patchAppsV1alpha1NamespacedStatefulSetStatus",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "body",
|
"name": "body",
|
||||||
@ -14865,7 +14865,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSet"
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14877,7 +14877,7 @@
|
|||||||
{
|
{
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@ -14899,9 +14899,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/petsets": {
|
"/apis/apps/v1alpha1/statefulsets": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "list or watch objects of kind PetSet",
|
"description": "list or watch objects of kind StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14916,12 +14916,12 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "listAppsV1alpha1PetSetForAllNamespaces",
|
"operationId": "listAppsV1alpha1StatefulSetForAllNamespaces",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/v1alpha1.PetSetList"
|
"$ref": "#/definitions/v1alpha1.StatefulSetList"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"401": {
|
"401": {
|
||||||
@ -14974,9 +14974,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets": {
|
"/apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "watch individual changes to a list of PetSet",
|
"description": "watch individual changes to a list of StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -14992,7 +14992,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "watchAppsV1alpha1NamespacedPetSetList",
|
"operationId": "watchAppsV1alpha1NamespacedStatefulSetList",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
@ -15058,9 +15058,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets/{name}": {
|
"/apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets/{name}": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "watch changes to an object of kind PetSet",
|
"description": "watch changes to an object of kind StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -15076,7 +15076,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "watchAppsV1alpha1NamespacedPetSet",
|
"operationId": "watchAppsV1alpha1NamespacedStatefulSet",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
@ -15107,7 +15107,7 @@
|
|||||||
{
|
{
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@ -15150,9 +15150,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/apis/apps/v1alpha1/watch/petsets": {
|
"/apis/apps/v1alpha1/watch/statefulsets": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "watch individual changes to a list of PetSet",
|
"description": "watch individual changes to a list of StatefulSet",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -15168,7 +15168,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"apps_v1alpha1"
|
"apps_v1alpha1"
|
||||||
],
|
],
|
||||||
"operationId": "watchAppsV1alpha1PetSetListForAllNamespaces",
|
"operationId": "watchAppsV1alpha1StatefulSetListForAllNamespaces",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
@ -32209,90 +32209,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"v1alpha1.PodDisruptionBudget": {
|
"v1alpha1.PodDisruptionBudget": {
|
||||||
"description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods",
|
"description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -32519,6 +32435,90 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"v1alpha1.StatefulSet": {
|
||||||
|
"description": "StatefulSet 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 StatefulSet guarantees that a given network identity will always map to the same storage identity. StatefulSet is currently in alpha and subject to change without notice.",
|
||||||
|
"properties": {
|
||||||
|
"metadata": {
|
||||||
|
"$ref": "#/definitions/v1.ObjectMeta"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"description": "Spec defines the desired identities of pods in this set.",
|
||||||
|
"$ref": "#/definitions/v1alpha1.StatefulSetSpec"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.",
|
||||||
|
"$ref": "#/definitions/v1alpha1.StatefulSetStatus"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"v1alpha1.StatefulSetList": {
|
||||||
|
"description": "StatefulSetList is a collection of StatefulSets.",
|
||||||
|
"required": [
|
||||||
|
"items"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"items": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/v1alpha1.StatefulSet"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"$ref": "#/definitions/unversioned.ListMeta"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"v1alpha1.StatefulSetSpec": {
|
||||||
|
"description": "A StatefulSetSpec is the specification of a StatefulSet.",
|
||||||
|
"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 StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet 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 StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
|
||||||
|
"$ref": "#/definitions/v1.PodTemplateSpec"
|
||||||
|
},
|
||||||
|
"volumeClaimTemplates": {
|
||||||
|
"description": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. 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.StatefulSetStatus": {
|
||||||
|
"description": "StatefulSetStatus represents the current state of a StatefulSet.",
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"v1alpha1.Subject": {
|
"v1alpha1.Subject": {
|
||||||
"description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.",
|
"description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.",
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -9,14 +9,14 @@
|
|||||||
},
|
},
|
||||||
"apis": [
|
"apis": [
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/namespaces/{namespace}/petsets",
|
"path": "/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSetList",
|
"type": "v1alpha1.StatefulSetList",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "list or watch objects of kind PetSet",
|
"summary": "list or watch objects of kind StatefulSet",
|
||||||
"nickname": "listNamespacedPetSet",
|
"nickname": "listNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -79,7 +79,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSetList"
|
"responseModel": "v1alpha1.StatefulSetList"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -92,10 +92,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"summary": "create a PetSet",
|
"summary": "create a StatefulSet",
|
||||||
"nickname": "createNamespacedPetSet",
|
"nickname": "createNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -106,7 +106,7 @@
|
|||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"paramType": "body",
|
"paramType": "body",
|
||||||
"name": "body",
|
"name": "body",
|
||||||
"description": "",
|
"description": "",
|
||||||
@ -126,7 +126,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -141,8 +141,8 @@
|
|||||||
{
|
{
|
||||||
"type": "unversioned.Status",
|
"type": "unversioned.Status",
|
||||||
"method": "DELETE",
|
"method": "DELETE",
|
||||||
"summary": "delete collection of PetSet",
|
"summary": "delete collection of StatefulSet",
|
||||||
"nickname": "deletecollectionNamespacedPetSet",
|
"nickname": "deletecollectionNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -220,14 +220,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets",
|
"path": "/apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "versioned.Event",
|
"type": "versioned.Event",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "watch individual changes to a list of PetSet",
|
"summary": "watch individual changes to a list of StatefulSet",
|
||||||
"nickname": "watchNamespacedPetSetList",
|
"nickname": "watchNamespacedStatefulSetList",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -306,14 +306,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}",
|
"path": "/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "read the specified PetSet",
|
"summary": "read the specified StatefulSet",
|
||||||
"nickname": "readNamespacedPetSet",
|
"nickname": "readNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -351,7 +351,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -360,7 +360,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -373,10 +373,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "PUT",
|
"method": "PUT",
|
||||||
"summary": "replace the specified PetSet",
|
"summary": "replace the specified StatefulSet",
|
||||||
"nickname": "replaceNamespacedPetSet",
|
"nickname": "replaceNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -387,7 +387,7 @@
|
|||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"paramType": "body",
|
"paramType": "body",
|
||||||
"name": "body",
|
"name": "body",
|
||||||
"description": "",
|
"description": "",
|
||||||
@ -406,7 +406,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -415,7 +415,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -428,10 +428,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "PATCH",
|
"method": "PATCH",
|
||||||
"summary": "partially update the specified PetSet",
|
"summary": "partially update the specified StatefulSet",
|
||||||
"nickname": "patchNamespacedPetSet",
|
"nickname": "patchNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -461,7 +461,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -470,7 +470,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -487,8 +487,8 @@
|
|||||||
{
|
{
|
||||||
"type": "unversioned.Status",
|
"type": "unversioned.Status",
|
||||||
"method": "DELETE",
|
"method": "DELETE",
|
||||||
"summary": "delete a PetSet",
|
"summary": "delete a StatefulSet",
|
||||||
"nickname": "deleteNamespacedPetSet",
|
"nickname": "deleteNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -518,7 +518,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -542,14 +542,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets/{name}",
|
"path": "/apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets/{name}",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "versioned.Event",
|
"type": "versioned.Event",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "watch changes to an object of kind PetSet",
|
"summary": "watch changes to an object of kind StatefulSet",
|
||||||
"nickname": "watchNamespacedPetSet",
|
"nickname": "watchNamespacedStatefulSet",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -611,7 +611,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -636,14 +636,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/petsets",
|
"path": "/apis/apps/v1alpha1/statefulsets",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSetList",
|
"type": "v1alpha1.StatefulSetList",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "list or watch objects of kind PetSet",
|
"summary": "list or watch objects of kind StatefulSet",
|
||||||
"nickname": "listPetSetForAllNamespaces",
|
"nickname": "listStatefulSetForAllNamespaces",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -698,7 +698,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSetList"
|
"responseModel": "v1alpha1.StatefulSetList"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -713,14 +713,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/watch/petsets",
|
"path": "/apis/apps/v1alpha1/watch/statefulsets",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "versioned.Event",
|
"type": "versioned.Event",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "watch individual changes to a list of PetSet",
|
"summary": "watch individual changes to a list of StatefulSet",
|
||||||
"nickname": "watchPetSetListForAllNamespaces",
|
"nickname": "watchStatefulSetListForAllNamespaces",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -791,14 +791,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}/status",
|
"path": "/apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status",
|
||||||
"description": "API at /apis/apps/v1alpha1",
|
"description": "API at /apis/apps/v1alpha1",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "read status of the specified PetSet",
|
"summary": "read status of the specified StatefulSet",
|
||||||
"nickname": "readNamespacedPetSetStatus",
|
"nickname": "readNamespacedStatefulSetStatus",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -820,7 +820,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -829,7 +829,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -842,10 +842,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "PUT",
|
"method": "PUT",
|
||||||
"summary": "replace status of the specified PetSet",
|
"summary": "replace status of the specified StatefulSet",
|
||||||
"nickname": "replaceNamespacedPetSetStatus",
|
"nickname": "replaceNamespacedStatefulSetStatus",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -856,7 +856,7 @@
|
|||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"paramType": "body",
|
"paramType": "body",
|
||||||
"name": "body",
|
"name": "body",
|
||||||
"description": "",
|
"description": "",
|
||||||
@ -875,7 +875,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -884,7 +884,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -897,10 +897,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "v1alpha1.PetSet",
|
"type": "v1alpha1.StatefulSet",
|
||||||
"method": "PATCH",
|
"method": "PATCH",
|
||||||
"summary": "partially update status of the specified PetSet",
|
"summary": "partially update status of the specified StatefulSet",
|
||||||
"nickname": "patchNamespacedPetSetStatus",
|
"nickname": "patchNamespacedStatefulSetStatus",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -930,7 +930,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"paramType": "path",
|
"paramType": "path",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"description": "name of the PetSet",
|
"description": "name of the StatefulSet",
|
||||||
"required": true,
|
"required": true,
|
||||||
"allowMultiple": false
|
"allowMultiple": false
|
||||||
}
|
}
|
||||||
@ -939,7 +939,7 @@
|
|||||||
{
|
{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"responseModel": "v1alpha1.PetSet"
|
"responseModel": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"produces": [
|
"produces": [
|
||||||
@ -980,9 +980,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"models": {
|
"models": {
|
||||||
"v1alpha1.PetSetList": {
|
"v1alpha1.StatefulSetList": {
|
||||||
"id": "v1alpha1.PetSetList",
|
"id": "v1alpha1.StatefulSetList",
|
||||||
"description": "PetSetList is a collection of PetSets.",
|
"description": "StatefulSetList is a collection of StatefulSets.",
|
||||||
"required": [
|
"required": [
|
||||||
"items"
|
"items"
|
||||||
],
|
],
|
||||||
@ -1001,7 +1001,7 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "v1alpha1.PetSet"
|
"$ref": "v1alpha1.StatefulSet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1020,9 +1020,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"v1alpha1.PetSet": {
|
"v1alpha1.StatefulSet": {
|
||||||
"id": "v1alpha1.PetSet",
|
"id": "v1alpha1.StatefulSet",
|
||||||
"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.",
|
"description": "StatefulSet 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 StatefulSet guarantees that a given network identity will always map to the same storage identity. StatefulSet is currently in alpha and subject to change without notice.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -1036,12 +1036,12 @@
|
|||||||
"$ref": "v1.ObjectMeta"
|
"$ref": "v1.ObjectMeta"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"$ref": "v1alpha1.PetSetSpec",
|
"$ref": "v1alpha1.StatefulSetSpec",
|
||||||
"description": "Spec defines the desired identities of pets in this set."
|
"description": "Spec defines the desired identities of pods in this set."
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"$ref": "v1alpha1.PetSetStatus",
|
"$ref": "v1alpha1.StatefulSetStatus",
|
||||||
"description": "Status is the current status of Pets in this PetSet. This data may be out of date by some window of time."
|
"description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1153,9 +1153,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"v1alpha1.PetSetSpec": {
|
"v1alpha1.StatefulSetSpec": {
|
||||||
"id": "v1alpha1.PetSetSpec",
|
"id": "v1alpha1.StatefulSetSpec",
|
||||||
"description": "A PetSetSpec is the specification of a PetSet.",
|
"description": "A StatefulSetSpec is the specification of a StatefulSet.",
|
||||||
"required": [
|
"required": [
|
||||||
"template",
|
"template",
|
||||||
"serviceName"
|
"serviceName"
|
||||||
@ -1172,18 +1172,18 @@
|
|||||||
},
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"$ref": "v1.PodTemplateSpec",
|
"$ref": "v1.PodTemplateSpec",
|
||||||
"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."
|
"description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet."
|
||||||
},
|
},
|
||||||
"volumeClaimTemplates": {
|
"volumeClaimTemplates": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "v1.PersistentVolumeClaim"
|
"$ref": "v1.PersistentVolumeClaim"
|
||||||
},
|
},
|
||||||
"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."
|
"description": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. 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."
|
||||||
},
|
},
|
||||||
"serviceName": {
|
"serviceName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"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."
|
"description": "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2641,9 +2641,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"v1alpha1.PetSetStatus": {
|
"v1alpha1.StatefulSetStatus": {
|
||||||
"id": "v1alpha1.PetSetStatus",
|
"id": "v1alpha1.StatefulSetStatus",
|
||||||
"description": "PetSetStatus represents the current state of a PetSet.",
|
"description": "StatefulSetStatus represents the current state of a StatefulSet.",
|
||||||
"required": [
|
"required": [
|
||||||
"replicas"
|
"replicas"
|
||||||
],
|
],
|
||||||
|
@ -370,10 +370,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<div class="ulist">
|
<div class="ulist">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p><a href="#_v1alpha1_petset">v1alpha1.PetSet</a></p>
|
<p><a href="#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p><a href="#_v1alpha1_petsetlist">v1alpha1.PetSetList</a></p>
|
<p><a href="#_v1alpha1_statefulsetlist">v1alpha1.StatefulSetList</a></p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -817,6 +817,68 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="sect2">
|
||||||
|
<h3 id="_v1alpha1_statefulsetspec">v1alpha1.StatefulSetSpec</h3>
|
||||||
|
<div class="paragraph">
|
||||||
|
<p>A StatefulSetSpec is the specification of a StatefulSet.</p>
|
||||||
|
</div>
|
||||||
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
|
<colgroup>
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="tableblock halign-left valign-top">Name</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Description</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Required</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Schema</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Default</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">replicas</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">selector</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: <a href="http://kubernetes.io/docs/user-guide/labels#label-selectors">http://kubernetes.io/docs/user-guide/labels#label-selectors</a></p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_unversioned_labelselector">unversioned.LabelSelector</a></p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">template</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_podtemplatespec">v1.PodTemplateSpec</a></p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">volumeClaimTemplates</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. 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.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_persistentvolumeclaim">v1.PersistentVolumeClaim</a> array</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">serviceName</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_fcvolumesource">v1.FCVolumeSource</h3>
|
<h3 id="_v1_fcvolumesource">v1.FCVolumeSource</h3>
|
||||||
@ -1508,6 +1570,47 @@ Examples:<br>
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="sect2">
|
||||||
|
<h3 id="_v1alpha1_statefulsetstatus">v1alpha1.StatefulSetStatus</h3>
|
||||||
|
<div class="paragraph">
|
||||||
|
<p>StatefulSetStatus represents the current state of a StatefulSet.</p>
|
||||||
|
</div>
|
||||||
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
|
<colgroup>
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="tableblock halign-left valign-top">Name</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Description</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Required</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Schema</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Default</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">observedGeneration</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">most recent generation observed by this autoscaler.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">replicas</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Replicas is the number of actual replicas.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_podsecuritycontext">v1.PodSecurityContext</h3>
|
<h3 id="_v1_podsecuritycontext">v1.PodSecurityContext</h3>
|
||||||
@ -1969,68 +2072,6 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1alpha1_petsetspec">v1alpha1.PetSetSpec</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>A PetSetSpec is the specification of a PetSet.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">replicas</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">selector</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: <a href="http://kubernetes.io/docs/user-guide/labels#label-selectors">http://kubernetes.io/docs/user-guide/labels#label-selectors</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_unversioned_labelselector">unversioned.LabelSelector</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">template</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_podtemplatespec">v1.PodTemplateSpec</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">volumeClaimTemplates</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_persistentvolumeclaim">v1.PersistentVolumeClaim</a> array</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">serviceName</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_emptydirvolumesource">v1.EmptyDirVolumeSource</h3>
|
<h3 id="_v1_emptydirvolumesource">v1.EmptyDirVolumeSource</h3>
|
||||||
@ -2543,12 +2584,50 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1alpha1_petset">v1alpha1.PetSet</h3>
|
<h3 id="_unversioned_labelselector">unversioned.LabelSelector</h3>
|
||||||
<div class="paragraph">
|
<div class="paragraph">
|
||||||
<p>PetSet represents a set of pods with consistent identities. Identities are defined as:<br>
|
<p>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.</p>
|
||||||
- Network: A single stable DNS and hostname.<br>
|
</div>
|
||||||
- Storage: As many VolumeClaims as requested.<br>
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
The 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.</p>
|
<colgroup>
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="tableblock halign-left valign-top">Name</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Description</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Required</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Schema</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Default</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchLabels</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">object</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchExpressions</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchExpressions is a list of label selector requirements. The requirements are ANDed.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_unversioned_labelselectorrequirement">unversioned.LabelSelectorRequirement</a> array</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="sect2">
|
||||||
|
<h3 id="_v1alpha1_statefulsetlist">v1alpha1.StatefulSetList</h3>
|
||||||
|
<div class="paragraph">
|
||||||
|
<p>StatefulSetList is a collection of StatefulSets.</p>
|
||||||
</div>
|
</div>
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2586,62 +2665,14 @@ The PetSet guarantees that a given network identity will always map to the same
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">metadata</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">metadata</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_objectmeta">v1.ObjectMeta</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_unversioned_listmeta">unversioned.ListMeta</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">spec</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">items</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Spec defines the desired identities of pets in this set.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1alpha1_petsetspec">v1alpha1.PetSetSpec</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<tr>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1alpha1_statefulset">v1alpha1.StatefulSet</a> array</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">status</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Status is the current status of Pets in this PetSet. This data may be out of date by some window of time.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1alpha1_petsetstatus">v1alpha1.PetSetStatus</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_unversioned_labelselector">unversioned.LabelSelector</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>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.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">matchLabels</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">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.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">object</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">matchExpressions</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">matchExpressions is a list of label selector requirements. The requirements are ANDed.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_unversioned_labelselectorrequirement">unversioned.LabelSelectorRequirement</a> array</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -3100,47 +3131,6 @@ The PetSet guarantees that a given network identity will always map to the same
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1alpha1_petsetstatus">v1alpha1.PetSetStatus</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>PetSetStatus represents the current state of a PetSet.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">observedGeneration</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">most recent generation observed by this autoscaler.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">replicas</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Replicas is the number of actual replicas.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_deleteoptions">v1.DeleteOptions</h3>
|
<h3 id="_v1_deleteoptions">v1.DeleteOptions</h3>
|
||||||
@ -4244,9 +4234,12 @@ The PetSet guarantees that a given network identity will always map to the same
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1alpha1_petsetlist">v1alpha1.PetSetList</h3>
|
<h3 id="_v1alpha1_statefulset">v1alpha1.StatefulSet</h3>
|
||||||
<div class="paragraph">
|
<div class="paragraph">
|
||||||
<p>PetSetList is a collection of PetSets.</p>
|
<p>StatefulSet represents a set of pods with consistent identities. Identities are defined as:<br>
|
||||||
|
- Network: A single stable DNS and hostname.<br>
|
||||||
|
- Storage: As many VolumeClaims as requested.<br>
|
||||||
|
The StatefulSet guarantees that a given network identity will always map to the same storage identity. StatefulSet is currently in alpha and subject to change without notice.</p>
|
||||||
</div>
|
</div>
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -4284,14 +4277,21 @@ The PetSet guarantees that a given network identity will always map to the same
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">metadata</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">metadata</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_unversioned_listmeta">unversioned.ListMeta</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_objectmeta">v1.ObjectMeta</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">items</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">spec</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Spec defines the desired identities of pods in this set.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1alpha1_statefulsetspec">v1alpha1.StatefulSetSpec</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
</tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1alpha1_petset">v1alpha1.PetSet</a> array</p></td>
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">status</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1alpha1_statefulsetstatus">v1alpha1.StatefulSetStatus</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -4396,7 +4396,7 @@ The PetSet guarantees that a given network identity will always map to the same
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2016-09-27 23:59:43 UTC
|
Last updated 2016-10-26 23:22:35 UTC
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -443,10 +443,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_list_or_watch_objects_of_kind_petset">list or watch objects of kind PetSet</h3>
|
<h3 id="_list_or_watch_objects_of_kind_statefulset">list or watch objects of kind StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/namespaces/{namespace}/petsets</pre>
|
<pre>GET /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -550,7 +550,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petsetlist">v1alpha1.PetSetList</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulsetlist">v1alpha1.StatefulSetList</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -594,10 +594,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_delete_collection_of_petset">delete collection of PetSet</h3>
|
<h3 id="_delete_collection_of_statefulset">delete collection of StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>DELETE /apis/apps/v1alpha1/namespaces/{namespace}/petsets</pre>
|
<pre>DELETE /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -745,10 +745,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_create_a_petset">create a PetSet</h3>
|
<h3 id="_create_a_statefulset">create a StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>POST /apis/apps/v1alpha1/namespaces/{namespace}/petsets</pre>
|
<pre>POST /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -786,7 +786,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">body</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">body</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -820,7 +820,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -864,10 +864,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_read_the_specified_petset">read the specified PetSet</h3>
|
<h3 id="_read_the_specified_statefulset">read the specified StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}</pre>
|
<pre>GET /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -927,7 +927,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -955,7 +955,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -999,10 +999,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_replace_the_specified_petset">replace the specified PetSet</h3>
|
<h3 id="_replace_the_specified_statefulset">replace the specified StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>PUT /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}</pre>
|
<pre>PUT /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1040,7 +1040,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">body</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">body</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -1054,7 +1054,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -1082,7 +1082,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1126,10 +1126,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_delete_a_petset">delete a PetSet</h3>
|
<h3 id="_delete_a_statefulset">delete a StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>DELETE /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}</pre>
|
<pre>DELETE /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1181,7 +1181,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -1253,10 +1253,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_partially_update_the_specified_petset">partially update the specified PetSet</h3>
|
<h3 id="_partially_update_the_specified_statefulset">partially update the specified StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>PATCH /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}</pre>
|
<pre>PATCH /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1308,7 +1308,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -1336,7 +1336,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1386,10 +1386,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_read_status_of_the_specified_petset">read status of the specified PetSet</h3>
|
<h3 id="_read_status_of_the_specified_statefulset">read status of the specified StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}/status</pre>
|
<pre>GET /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1433,7 +1433,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -1461,7 +1461,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1505,10 +1505,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_replace_status_of_the_specified_petset">replace status of the specified PetSet</h3>
|
<h3 id="_replace_status_of_the_specified_statefulset">replace status of the specified StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>PUT /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}/status</pre>
|
<pre>PUT /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1546,7 +1546,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">body</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">body</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -1560,7 +1560,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -1588,7 +1588,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1632,10 +1632,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_partially_update_status_of_the_specified_petset">partially update status of the specified PetSet</h3>
|
<h3 id="_partially_update_status_of_the_specified_statefulset">partially update status of the specified StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>PATCH /apis/apps/v1alpha1/namespaces/{namespace}/petsets/{name}/status</pre>
|
<pre>PATCH /apis/apps/v1alpha1/namespaces/{namespace}/statefulsets/{name}/status</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1687,7 +1687,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -1715,7 +1715,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petset">v1alpha1.PetSet</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulset">v1alpha1.StatefulSet</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1765,10 +1765,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_list_or_watch_objects_of_kind_petset_2">list or watch objects of kind PetSet</h3>
|
<h3 id="_list_or_watch_objects_of_kind_statefulset_2">list or watch objects of kind StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/petsets</pre>
|
<pre>GET /apis/apps/v1alpha1/statefulsets</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -1864,7 +1864,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">200</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">success</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_petsetlist">v1alpha1.PetSetList</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../definitions#_v1alpha1_statefulsetlist">v1alpha1.StatefulSetList</a></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1908,10 +1908,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_watch_individual_changes_to_a_list_of_petset">watch individual changes to a list of PetSet</h3>
|
<h3 id="_watch_individual_changes_to_a_list_of_statefulset">watch individual changes to a list of StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets</pre>
|
<pre>GET /apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -2062,10 +2062,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_watch_changes_to_an_object_of_kind_petset">watch changes to an object of kind PetSet</h3>
|
<h3 id="_watch_changes_to_an_object_of_kind_statefulset">watch changes to an object of kind StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/watch/namespaces/{namespace}/petsets/{name}</pre>
|
<pre>GET /apis/apps/v1alpha1/watch/namespaces/{namespace}/statefulsets/{name}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -2149,7 +2149,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">PathParameter</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the PetSet</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">name of the StatefulSet</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -2224,10 +2224,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_watch_individual_changes_to_a_list_of_petset_2">watch individual changes to a list of PetSet</h3>
|
<h3 id="_watch_individual_changes_to_a_list_of_statefulset_2">watch individual changes to a list of StatefulSet</h3>
|
||||||
<div class="listingblock">
|
<div class="listingblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>GET /apis/apps/v1alpha1/watch/petsets</pre>
|
<pre>GET /apis/apps/v1alpha1/watch/statefulsets</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
@ -2374,7 +2374,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2016-09-22 17:28:35 UTC
|
Last updated 2016-10-26 23:22:35 UTC
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -180,7 +180,7 @@ of three pods.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: "apps/v1alpha1"
|
apiVersion: "apps/v1alpha1"
|
||||||
kind: PetSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: cassandra
|
name: cassandra
|
||||||
spec:
|
spec:
|
||||||
|
1628
pkg/apis/apps/types.generated.go
Normal file
1628
pkg/apis/apps/types.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
@ -25,10 +25,10 @@ limitations under the License.
|
|||||||
k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto
|
k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto
|
||||||
|
|
||||||
It has these top-level messages:
|
It has these top-level messages:
|
||||||
PetSet
|
StatefulSet
|
||||||
PetSetList
|
StatefulSetList
|
||||||
PetSetSpec
|
StatefulSetSpec
|
||||||
PetSetStatus
|
StatefulSetStatus
|
||||||
*/
|
*/
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
@ -53,29 +53,29 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion1
|
const _ = proto.GoGoProtoPackageIsVersion1
|
||||||
|
|
||||||
func (m *PetSet) Reset() { *m = PetSet{} }
|
func (m *StatefulSet) Reset() { *m = StatefulSet{} }
|
||||||
func (*PetSet) ProtoMessage() {}
|
func (*StatefulSet) ProtoMessage() {}
|
||||||
func (*PetSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
|
func (*StatefulSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
|
||||||
|
|
||||||
func (m *PetSetList) Reset() { *m = PetSetList{} }
|
func (m *StatefulSetList) Reset() { *m = StatefulSetList{} }
|
||||||
func (*PetSetList) ProtoMessage() {}
|
func (*StatefulSetList) ProtoMessage() {}
|
||||||
func (*PetSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
|
func (*StatefulSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
|
||||||
|
|
||||||
func (m *PetSetSpec) Reset() { *m = PetSetSpec{} }
|
func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} }
|
||||||
func (*PetSetSpec) ProtoMessage() {}
|
func (*StatefulSetSpec) ProtoMessage() {}
|
||||||
func (*PetSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
|
func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
|
||||||
|
|
||||||
func (m *PetSetStatus) Reset() { *m = PetSetStatus{} }
|
func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} }
|
||||||
func (*PetSetStatus) ProtoMessage() {}
|
func (*StatefulSetStatus) ProtoMessage() {}
|
||||||
func (*PetSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
|
func (*StatefulSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*PetSet)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSet")
|
proto.RegisterType((*StatefulSet)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.StatefulSet")
|
||||||
proto.RegisterType((*PetSetList)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSetList")
|
proto.RegisterType((*StatefulSetList)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.StatefulSetList")
|
||||||
proto.RegisterType((*PetSetSpec)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSetSpec")
|
proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.StatefulSetSpec")
|
||||||
proto.RegisterType((*PetSetStatus)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSetStatus")
|
proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.StatefulSetStatus")
|
||||||
}
|
}
|
||||||
func (m *PetSet) Marshal() (data []byte, err error) {
|
func (m *StatefulSet) Marshal() (data []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
data = make([]byte, size)
|
data = make([]byte, size)
|
||||||
n, err := m.MarshalTo(data)
|
n, err := m.MarshalTo(data)
|
||||||
@ -85,7 +85,7 @@ func (m *PetSet) Marshal() (data []byte, err error) {
|
|||||||
return data[:n], nil
|
return data[:n], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSet) MarshalTo(data []byte) (int, error) {
|
func (m *StatefulSet) MarshalTo(data []byte) (int, error) {
|
||||||
var i int
|
var i int
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
@ -117,7 +117,7 @@ func (m *PetSet) MarshalTo(data []byte) (int, error) {
|
|||||||
return i, nil
|
return i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetList) Marshal() (data []byte, err error) {
|
func (m *StatefulSetList) Marshal() (data []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
data = make([]byte, size)
|
data = make([]byte, size)
|
||||||
n, err := m.MarshalTo(data)
|
n, err := m.MarshalTo(data)
|
||||||
@ -127,7 +127,7 @@ func (m *PetSetList) Marshal() (data []byte, err error) {
|
|||||||
return data[:n], nil
|
return data[:n], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetList) MarshalTo(data []byte) (int, error) {
|
func (m *StatefulSetList) MarshalTo(data []byte) (int, error) {
|
||||||
var i int
|
var i int
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
@ -155,7 +155,7 @@ func (m *PetSetList) MarshalTo(data []byte) (int, error) {
|
|||||||
return i, nil
|
return i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetSpec) Marshal() (data []byte, err error) {
|
func (m *StatefulSetSpec) Marshal() (data []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
data = make([]byte, size)
|
data = make([]byte, size)
|
||||||
n, err := m.MarshalTo(data)
|
n, err := m.MarshalTo(data)
|
||||||
@ -165,7 +165,7 @@ func (m *PetSetSpec) Marshal() (data []byte, err error) {
|
|||||||
return data[:n], nil
|
return data[:n], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetSpec) MarshalTo(data []byte) (int, error) {
|
func (m *StatefulSetSpec) MarshalTo(data []byte) (int, error) {
|
||||||
var i int
|
var i int
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
@ -212,7 +212,7 @@ func (m *PetSetSpec) MarshalTo(data []byte) (int, error) {
|
|||||||
return i, nil
|
return i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetStatus) Marshal() (data []byte, err error) {
|
func (m *StatefulSetStatus) Marshal() (data []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
data = make([]byte, size)
|
data = make([]byte, size)
|
||||||
n, err := m.MarshalTo(data)
|
n, err := m.MarshalTo(data)
|
||||||
@ -222,7 +222,7 @@ func (m *PetSetStatus) Marshal() (data []byte, err error) {
|
|||||||
return data[:n], nil
|
return data[:n], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetStatus) MarshalTo(data []byte) (int, error) {
|
func (m *StatefulSetStatus) MarshalTo(data []byte) (int, error) {
|
||||||
var i int
|
var i int
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
@ -265,7 +265,7 @@ func encodeVarintGenerated(data []byte, offset int, v uint64) int {
|
|||||||
data[offset] = uint8(v)
|
data[offset] = uint8(v)
|
||||||
return offset + 1
|
return offset + 1
|
||||||
}
|
}
|
||||||
func (m *PetSet) Size() (n int) {
|
func (m *StatefulSet) Size() (n int) {
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
l = m.ObjectMeta.Size()
|
l = m.ObjectMeta.Size()
|
||||||
@ -277,7 +277,7 @@ func (m *PetSet) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetList) Size() (n int) {
|
func (m *StatefulSetList) Size() (n int) {
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
l = m.ListMeta.Size()
|
l = m.ListMeta.Size()
|
||||||
@ -291,7 +291,7 @@ func (m *PetSetList) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetSpec) Size() (n int) {
|
func (m *StatefulSetSpec) Size() (n int) {
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
if m.Replicas != nil {
|
if m.Replicas != nil {
|
||||||
@ -314,7 +314,7 @@ func (m *PetSetSpec) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PetSetStatus) Size() (n int) {
|
func (m *StatefulSetStatus) Size() (n int) {
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
if m.ObservedGeneration != nil {
|
if m.ObservedGeneration != nil {
|
||||||
@ -337,34 +337,34 @@ func sovGenerated(x uint64) (n int) {
|
|||||||
func sozGenerated(x uint64) (n int) {
|
func sozGenerated(x uint64) (n int) {
|
||||||
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||||
}
|
}
|
||||||
func (this *PetSet) String() string {
|
func (this *StatefulSet) String() string {
|
||||||
if this == nil {
|
if this == nil {
|
||||||
return "nil"
|
return "nil"
|
||||||
}
|
}
|
||||||
s := strings.Join([]string{`&PetSet{`,
|
s := strings.Join([]string{`&StatefulSet{`,
|
||||||
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
||||||
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PetSetSpec", "PetSetSpec", 1), `&`, ``, 1) + `,`,
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`,
|
||||||
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "PetSetStatus", "PetSetStatus", 1), `&`, ``, 1) + `,`,
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`,
|
||||||
`}`,
|
`}`,
|
||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
func (this *PetSetList) String() string {
|
func (this *StatefulSetList) String() string {
|
||||||
if this == nil {
|
if this == nil {
|
||||||
return "nil"
|
return "nil"
|
||||||
}
|
}
|
||||||
s := strings.Join([]string{`&PetSetList{`,
|
s := strings.Join([]string{`&StatefulSetList{`,
|
||||||
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`,
|
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`,
|
||||||
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PetSet", "PetSet", 1), `&`, ``, 1) + `,`,
|
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + `,`,
|
||||||
`}`,
|
`}`,
|
||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
func (this *PetSetSpec) String() string {
|
func (this *StatefulSetSpec) String() string {
|
||||||
if this == nil {
|
if this == nil {
|
||||||
return "nil"
|
return "nil"
|
||||||
}
|
}
|
||||||
s := strings.Join([]string{`&PetSetSpec{`,
|
s := strings.Join([]string{`&StatefulSetSpec{`,
|
||||||
`Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
|
`Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
|
||||||
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`,
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`,
|
||||||
`Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
|
`Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
|
||||||
@ -374,11 +374,11 @@ func (this *PetSetSpec) String() string {
|
|||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
func (this *PetSetStatus) String() string {
|
func (this *StatefulSetStatus) String() string {
|
||||||
if this == nil {
|
if this == nil {
|
||||||
return "nil"
|
return "nil"
|
||||||
}
|
}
|
||||||
s := strings.Join([]string{`&PetSetStatus{`,
|
s := strings.Join([]string{`&StatefulSetStatus{`,
|
||||||
`ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
|
`ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
|
||||||
`Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
|
`Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
|
||||||
`}`,
|
`}`,
|
||||||
@ -393,7 +393,7 @@ func valueToStringGenerated(v interface{}) string {
|
|||||||
pv := reflect.Indirect(rv).Interface()
|
pv := reflect.Indirect(rv).Interface()
|
||||||
return fmt.Sprintf("*%v", pv)
|
return fmt.Sprintf("*%v", pv)
|
||||||
}
|
}
|
||||||
func (m *PetSet) Unmarshal(data []byte) error {
|
func (m *StatefulSet) Unmarshal(data []byte) error {
|
||||||
l := len(data)
|
l := len(data)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
@ -416,10 +416,10 @@ func (m *PetSet) Unmarshal(data []byte) error {
|
|||||||
fieldNum := int32(wire >> 3)
|
fieldNum := int32(wire >> 3)
|
||||||
wireType := int(wire & 0x7)
|
wireType := int(wire & 0x7)
|
||||||
if wireType == 4 {
|
if wireType == 4 {
|
||||||
return fmt.Errorf("proto: PetSet: wiretype end group for non-group")
|
return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group")
|
||||||
}
|
}
|
||||||
if fieldNum <= 0 {
|
if fieldNum <= 0 {
|
||||||
return fmt.Errorf("proto: PetSet: illegal tag %d (wire type %d)", fieldNum, wire)
|
return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
}
|
}
|
||||||
switch fieldNum {
|
switch fieldNum {
|
||||||
case 1:
|
case 1:
|
||||||
@ -533,7 +533,7 @@ func (m *PetSet) Unmarshal(data []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *PetSetList) Unmarshal(data []byte) error {
|
func (m *StatefulSetList) Unmarshal(data []byte) error {
|
||||||
l := len(data)
|
l := len(data)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
@ -556,10 +556,10 @@ func (m *PetSetList) Unmarshal(data []byte) error {
|
|||||||
fieldNum := int32(wire >> 3)
|
fieldNum := int32(wire >> 3)
|
||||||
wireType := int(wire & 0x7)
|
wireType := int(wire & 0x7)
|
||||||
if wireType == 4 {
|
if wireType == 4 {
|
||||||
return fmt.Errorf("proto: PetSetList: wiretype end group for non-group")
|
return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group")
|
||||||
}
|
}
|
||||||
if fieldNum <= 0 {
|
if fieldNum <= 0 {
|
||||||
return fmt.Errorf("proto: PetSetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
}
|
}
|
||||||
switch fieldNum {
|
switch fieldNum {
|
||||||
case 1:
|
case 1:
|
||||||
@ -618,7 +618,7 @@ func (m *PetSetList) Unmarshal(data []byte) error {
|
|||||||
if postIndex > l {
|
if postIndex > l {
|
||||||
return io.ErrUnexpectedEOF
|
return io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
m.Items = append(m.Items, PetSet{})
|
m.Items = append(m.Items, StatefulSet{})
|
||||||
if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -644,7 +644,7 @@ func (m *PetSetList) Unmarshal(data []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *PetSetSpec) Unmarshal(data []byte) error {
|
func (m *StatefulSetSpec) Unmarshal(data []byte) error {
|
||||||
l := len(data)
|
l := len(data)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
@ -667,10 +667,10 @@ func (m *PetSetSpec) Unmarshal(data []byte) error {
|
|||||||
fieldNum := int32(wire >> 3)
|
fieldNum := int32(wire >> 3)
|
||||||
wireType := int(wire & 0x7)
|
wireType := int(wire & 0x7)
|
||||||
if wireType == 4 {
|
if wireType == 4 {
|
||||||
return fmt.Errorf("proto: PetSetSpec: wiretype end group for non-group")
|
return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group")
|
||||||
}
|
}
|
||||||
if fieldNum <= 0 {
|
if fieldNum <= 0 {
|
||||||
return fmt.Errorf("proto: PetSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
}
|
}
|
||||||
switch fieldNum {
|
switch fieldNum {
|
||||||
case 1:
|
case 1:
|
||||||
@ -837,7 +837,7 @@ func (m *PetSetSpec) Unmarshal(data []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *PetSetStatus) Unmarshal(data []byte) error {
|
func (m *StatefulSetStatus) Unmarshal(data []byte) error {
|
||||||
l := len(data)
|
l := len(data)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
@ -860,10 +860,10 @@ func (m *PetSetStatus) Unmarshal(data []byte) error {
|
|||||||
fieldNum := int32(wire >> 3)
|
fieldNum := int32(wire >> 3)
|
||||||
wireType := int(wire & 0x7)
|
wireType := int(wire & 0x7)
|
||||||
if wireType == 4 {
|
if wireType == 4 {
|
||||||
return fmt.Errorf("proto: PetSetStatus: wiretype end group for non-group")
|
return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group")
|
||||||
}
|
}
|
||||||
if fieldNum <= 0 {
|
if fieldNum <= 0 {
|
||||||
return fmt.Errorf("proto: PetSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
}
|
}
|
||||||
switch fieldNum {
|
switch fieldNum {
|
||||||
case 1:
|
case 1:
|
||||||
@ -1032,44 +1032,45 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var fileDescriptorGenerated = []byte{
|
var fileDescriptorGenerated = []byte{
|
||||||
// 619 bytes of a gzipped FileDescriptorProto
|
// 628 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x6e, 0xd3, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
|
||||||
0x10, 0xc6, 0xe3, 0xa4, 0xa9, 0xc2, 0xa6, 0x20, 0xb4, 0x54, 0x28, 0x8a, 0x90, 0x5b, 0xe5, 0x14,
|
0x10, 0xc7, 0xe3, 0xa4, 0xa9, 0xc2, 0xa6, 0x7c, 0x2d, 0x15, 0x8a, 0x22, 0xe4, 0x56, 0x39, 0x45,
|
||||||
0xa1, 0x76, 0x4d, 0x0a, 0x45, 0x3d, 0x1b, 0x09, 0x84, 0x04, 0xb4, 0x72, 0xa0, 0x42, 0x20, 0x2a,
|
0xa8, 0x5d, 0x2b, 0x85, 0x4a, 0x45, 0xdc, 0x8c, 0x04, 0x42, 0x02, 0x8a, 0x1c, 0x54, 0xa1, 0x56,
|
||||||
0xad, 0x9d, 0xc1, 0x5d, 0x62, 0x7b, 0x2d, 0xef, 0xda, 0x67, 0x0e, 0x70, 0xe7, 0xcc, 0x63, 0xf0,
|
0x20, 0x6d, 0x9c, 0x69, 0xba, 0xc4, 0xf6, 0x5a, 0xde, 0x71, 0xce, 0x5c, 0x38, 0x70, 0xe3, 0x35,
|
||||||
0x08, 0x9c, 0x7a, 0xec, 0x91, 0x53, 0x45, 0xcd, 0x8b, 0x20, 0xaf, 0xff, 0x24, 0xd4, 0x49, 0x4b,
|
0x78, 0x02, 0x5e, 0xa1, 0x07, 0x0e, 0x3d, 0x72, 0xaa, 0x48, 0x78, 0x11, 0xe4, 0xcd, 0xe6, 0x83,
|
||||||
0x6f, 0x99, 0xf5, 0x7c, 0xbf, 0x99, 0xf9, 0x66, 0x82, 0xf6, 0xa6, 0x7b, 0x82, 0x30, 0x6e, 0x4c,
|
0x3a, 0x29, 0x55, 0x6f, 0x9e, 0xdd, 0xf9, 0xff, 0x66, 0xe6, 0xbf, 0x63, 0xb2, 0xd7, 0xdf, 0x53,
|
||||||
0x63, 0x1b, 0xa2, 0x00, 0x24, 0x08, 0x23, 0x9c, 0xba, 0x06, 0x0d, 0x99, 0x30, 0x68, 0x18, 0x0a,
|
0x4c, 0x48, 0xa7, 0x9f, 0x76, 0x20, 0x89, 0x00, 0x41, 0x39, 0x71, 0xbf, 0xe7, 0xf0, 0x58, 0x28,
|
||||||
0x23, 0x19, 0x51, 0x2f, 0x3c, 0xa6, 0x23, 0xc3, 0x85, 0x00, 0x22, 0x2a, 0x61, 0x42, 0xc2, 0x88,
|
0x87, 0xc7, 0xb1, 0x72, 0x06, 0x2d, 0x1e, 0xc4, 0x27, 0xbc, 0xe5, 0xf4, 0x20, 0x82, 0x84, 0x23,
|
||||||
0x4b, 0x8e, 0x87, 0xb9, 0x92, 0xcc, 0x94, 0x24, 0x9c, 0xba, 0x24, 0x53, 0x92, 0x4c, 0x49, 0x4a,
|
0x74, 0x59, 0x9c, 0x48, 0x94, 0xb4, 0x39, 0x56, 0xb2, 0x99, 0x92, 0xc5, 0xfd, 0x1e, 0xcb, 0x94,
|
||||||
0x65, 0x7f, 0xdb, 0x65, 0xf2, 0x38, 0xb6, 0x89, 0xc3, 0x7d, 0xc3, 0xe5, 0x2e, 0x37, 0x14, 0xc0,
|
0x2c, 0x53, 0xb2, 0x89, 0xb2, 0xbe, 0xdd, 0x13, 0x78, 0x92, 0x76, 0x98, 0x2f, 0x43, 0xa7, 0x27,
|
||||||
0x8e, 0x3f, 0xaa, 0x48, 0x05, 0xea, 0x57, 0x0e, 0xee, 0xef, 0x2c, 0x6d, 0xc9, 0x88, 0x40, 0xf0,
|
0x7b, 0xd2, 0xd1, 0x80, 0x4e, 0x7a, 0xac, 0x23, 0x1d, 0xe8, 0xaf, 0x31, 0xb8, 0xbe, 0xb3, 0xb4,
|
||||||
0x38, 0x72, 0xe0, 0x62, 0x33, 0xfd, 0xdd, 0xe5, 0x9a, 0x38, 0x48, 0x20, 0x12, 0x8c, 0x07, 0x30,
|
0x25, 0x27, 0x01, 0x25, 0xd3, 0xc4, 0x87, 0x8b, 0xcd, 0xd4, 0x77, 0x97, 0x6b, 0xd2, 0x68, 0x00,
|
||||||
0xa9, 0xc9, 0xb6, 0x96, 0xcb, 0x92, 0xda, 0xc4, 0xfd, 0xed, 0xc5, 0xd9, 0x51, 0x1c, 0x48, 0xe6,
|
0x89, 0x12, 0x32, 0x82, 0x6e, 0x4e, 0xb6, 0xb5, 0x5c, 0x36, 0xc8, 0x4d, 0x5c, 0xdf, 0x5e, 0x9c,
|
||||||
0xd7, 0x7b, 0x1a, 0x2d, 0x4e, 0x8f, 0x25, 0xf3, 0x0c, 0x16, 0x48, 0x21, 0xa3, 0x8b, 0x92, 0xc1,
|
0x9d, 0xa4, 0x11, 0x8a, 0x30, 0xdf, 0x53, 0x6b, 0x71, 0x7a, 0x8a, 0x22, 0x70, 0x44, 0x84, 0x0a,
|
||||||
0xf7, 0x26, 0x5a, 0x3d, 0x00, 0x39, 0x06, 0x89, 0xdf, 0xa2, 0x8e, 0x0f, 0x92, 0x4e, 0xa8, 0xa4,
|
0x93, 0x8b, 0x92, 0xc6, 0xf7, 0x22, 0xa9, 0xb6, 0x91, 0x23, 0x1c, 0xa7, 0x41, 0x1b, 0x90, 0xbe,
|
||||||
0x3d, 0x6d, 0x53, 0x1b, 0x76, 0x77, 0x86, 0x64, 0xa9, 0xe3, 0x24, 0x19, 0x91, 0x7d, 0xfb, 0x13,
|
0x27, 0x95, 0x10, 0x90, 0x77, 0x39, 0xf2, 0x9a, 0xb5, 0x69, 0x35, 0xab, 0x3b, 0x4d, 0xb6, 0xd4,
|
||||||
0x38, 0xf2, 0x25, 0x48, 0x6a, 0xe2, 0x93, 0xb3, 0x8d, 0x46, 0x7a, 0xb6, 0x81, 0x66, 0x6f, 0x56,
|
0x76, 0x36, 0x68, 0xb1, 0xfd, 0xce, 0x27, 0xf0, 0xf1, 0x35, 0x20, 0x77, 0xe9, 0xe9, 0xf9, 0x46,
|
||||||
0x45, 0xc3, 0x87, 0x68, 0x45, 0x84, 0xe0, 0xf4, 0x9a, 0x8a, 0xfa, 0x88, 0xfc, 0xef, 0x1e, 0x49,
|
0x61, 0x74, 0xbe, 0x41, 0x66, 0x67, 0xde, 0x94, 0x46, 0x8f, 0xc8, 0x8a, 0x8a, 0xc1, 0xaf, 0x15,
|
||||||
0xde, 0xd9, 0x38, 0x04, 0xc7, 0x5c, 0x2b, 0x2a, 0xac, 0x64, 0x91, 0xa5, 0x78, 0xf8, 0x08, 0xad,
|
0x35, 0xf5, 0x09, 0xbb, 0xea, 0x63, 0xb2, 0xb9, 0xf6, 0xda, 0x31, 0xf8, 0xee, 0x9a, 0x29, 0xb3,
|
||||||
0x0a, 0x49, 0x65, 0x2c, 0x7a, 0x2d, 0x45, 0x7e, 0x7c, 0x6d, 0xb2, 0x52, 0x9b, 0xb7, 0x0a, 0xf6,
|
0x92, 0x45, 0x9e, 0x86, 0x52, 0x9f, 0xac, 0x2a, 0xe4, 0x98, 0xaa, 0x5a, 0x49, 0xe3, 0x9f, 0x5e,
|
||||||
0x6a, 0x1e, 0x5b, 0x05, 0x75, 0xf0, 0x53, 0x43, 0x28, 0x4f, 0x7c, 0xc1, 0x84, 0xc4, 0x1f, 0x6a,
|
0x0f, 0xaf, 0x11, 0xee, 0x2d, 0x53, 0x60, 0x75, 0x1c, 0x7b, 0x06, 0xdd, 0xf8, 0x69, 0x91, 0xdb,
|
||||||
0x06, 0x19, 0x97, 0x18, 0x34, 0x77, 0x05, 0x24, 0x93, 0x2b, 0x9f, 0x6e, 0x17, 0x95, 0x3a, 0xe5,
|
0x73, 0xd9, 0xaf, 0x84, 0x42, 0xfa, 0x21, 0xe7, 0x97, 0x73, 0x89, 0x5f, 0x73, 0x9b, 0xc1, 0x32,
|
||||||
0xcb, 0x9c, 0x4b, 0x6f, 0x50, 0x9b, 0x49, 0xf0, 0x45, 0xaf, 0xb9, 0xd9, 0x1a, 0x76, 0x77, 0x1e,
|
0xb9, 0xb6, 0xed, 0x8e, 0x29, 0x57, 0x99, 0x9c, 0xcc, 0x99, 0x76, 0x48, 0xca, 0x02, 0x21, 0x54,
|
||||||
0x5c, 0x77, 0x18, 0xf3, 0x66, 0x01, 0x6f, 0x3f, 0xcf, 0x30, 0x56, 0x4e, 0x1b, 0xfc, 0x68, 0x95,
|
0xb5, 0xe2, 0x66, 0xa9, 0x59, 0xdd, 0xd9, 0xbd, 0xd6, 0x58, 0xee, 0x4d, 0x53, 0xa1, 0xfc, 0x32,
|
||||||
0x43, 0x64, 0xce, 0xe1, 0x21, 0xea, 0x44, 0x10, 0x7a, 0xcc, 0xa1, 0x42, 0x0d, 0xd1, 0x36, 0xd7,
|
0x63, 0x79, 0x63, 0x64, 0xe3, 0x47, 0xe9, 0x9f, 0x71, 0x32, 0x37, 0x69, 0x93, 0x54, 0x12, 0x88,
|
||||||
0xb2, 0x7e, 0xac, 0xe2, 0xcd, 0xaa, 0xbe, 0xe2, 0x23, 0xd4, 0x11, 0xe0, 0x81, 0x23, 0x79, 0x74,
|
0x03, 0xe1, 0x73, 0xa5, 0xc7, 0x29, 0xbb, 0x6b, 0x59, 0x67, 0x9e, 0x39, 0xf3, 0xa6, 0xb7, 0xf4,
|
||||||
0xf5, 0xe6, 0xfe, 0x1d, 0x97, 0xda, 0xe0, 0x8d, 0x0b, 0x6d, 0xce, 0x2f, 0x23, 0xab, 0x62, 0xe2,
|
0x23, 0xa9, 0x28, 0x08, 0xc0, 0x47, 0x99, 0x98, 0x27, 0x7d, 0x7c, 0xd5, 0xc1, 0x79, 0x07, 0x82,
|
||||||
0xf7, 0xa8, 0x23, 0xc1, 0x0f, 0x3d, 0x2a, 0xa1, 0xd8, 0xdf, 0xf6, 0xe5, 0xf7, 0x76, 0xc0, 0x27,
|
0xb6, 0xd1, 0x8e, 0xf9, 0x93, 0xc8, 0x9b, 0x32, 0xe9, 0x11, 0xa9, 0x20, 0x84, 0x71, 0xc0, 0x11,
|
||||||
0xaf, 0x0b, 0x81, 0x3a, 0x89, 0xca, 0xcc, 0xf2, 0xd5, 0xaa, 0x80, 0xf8, 0xab, 0x86, 0xd6, 0x13,
|
0xcc, 0x9b, 0x6e, 0x5f, 0xbe, 0x88, 0x6f, 0x65, 0xf7, 0x9d, 0x11, 0xe8, 0x35, 0x99, 0xda, 0x3a,
|
||||||
0xee, 0xc5, 0x3e, 0x3c, 0xf1, 0x28, 0xf3, 0xcb, 0x0c, 0xd1, 0x5b, 0x51, 0xe6, 0x3e, 0xbc, 0xa2,
|
0x39, 0xf5, 0xa6, 0x40, 0xfa, 0xc5, 0x22, 0xeb, 0x03, 0x19, 0xa4, 0x21, 0x3c, 0x0b, 0xb8, 0x08,
|
||||||
0x52, 0x36, 0x8a, 0x90, 0x10, 0xc8, 0xc3, 0x19, 0xc3, 0xbc, 0x57, 0xd4, 0x5b, 0x3f, 0x5c, 0x00,
|
0x27, 0x19, 0xaa, 0xb6, 0xa2, 0x6d, 0x7e, 0xf4, 0x9f, 0x4a, 0xd9, 0x28, 0x0a, 0x21, 0xc2, 0x83,
|
||||||
0xb6, 0x16, 0x96, 0xc3, 0xbb, 0xa8, 0x2b, 0x20, 0x4a, 0x98, 0x03, 0xaf, 0xa8, 0x0f, 0xbd, 0xf6,
|
0x19, 0xc3, 0x7d, 0x60, 0xea, 0xad, 0x1f, 0x2c, 0x00, 0x7b, 0x0b, 0xcb, 0xd1, 0x5d, 0x52, 0x55,
|
||||||
0xa6, 0x36, 0xbc, 0x61, 0xde, 0x29, 0x40, 0xdd, 0xf1, 0xec, 0x93, 0x35, 0x9f, 0x37, 0xf8, 0xa2,
|
0x90, 0x0c, 0x84, 0x0f, 0x6f, 0x78, 0x08, 0xb5, 0xf2, 0xa6, 0xd5, 0xbc, 0xe1, 0xde, 0x33, 0xa0,
|
||||||
0xa1, 0xb5, 0xf9, 0x13, 0xc5, 0x4f, 0x11, 0xe6, 0x76, 0x96, 0x01, 0x93, 0x67, 0xf9, 0x5f, 0x98,
|
0x6a, 0x7b, 0x76, 0xe5, 0xcd, 0xe7, 0x35, 0xbe, 0x5a, 0xe4, 0x6e, 0x6e, 0x6d, 0xe9, 0x73, 0x42,
|
||||||
0xf1, 0x40, 0x2d, 0xb0, 0x65, 0xde, 0x4d, 0xcf, 0x36, 0xf0, 0x7e, 0xed, 0xab, 0xb5, 0x40, 0x81,
|
0x65, 0x27, 0x4b, 0x83, 0xee, 0x8b, 0xf1, 0x5f, 0x2e, 0x64, 0xa4, 0x5f, 0xb1, 0xe4, 0xde, 0x1f,
|
||||||
0xb7, 0xe6, 0xd6, 0xdf, 0x54, 0xeb, 0xaf, 0x5c, 0xac, 0x9f, 0x80, 0x79, 0xff, 0xe4, 0x5c, 0x6f,
|
0x9d, 0x6f, 0xd0, 0xfd, 0xdc, 0xad, 0xb7, 0x40, 0x41, 0xb7, 0xe6, 0x76, 0xa0, 0xa8, 0x77, 0x60,
|
||||||
0x9c, 0x9e, 0xeb, 0x8d, 0x5f, 0xe7, 0x7a, 0xe3, 0x73, 0xaa, 0x6b, 0x27, 0xa9, 0xae, 0x9d, 0xa6,
|
0x6a, 0x65, 0x7e, 0x0f, 0xdc, 0x87, 0xa7, 0x43, 0xbb, 0x70, 0x36, 0xb4, 0x0b, 0xbf, 0x86, 0x76,
|
||||||
0xba, 0xf6, 0x3b, 0xd5, 0xb5, 0x6f, 0x7f, 0xf4, 0xc6, 0xbb, 0x4e, 0x79, 0x84, 0x7f, 0x03, 0x00,
|
0xe1, 0xf3, 0xc8, 0xb6, 0x4e, 0x47, 0xb6, 0x75, 0x36, 0xb2, 0xad, 0xdf, 0x23, 0xdb, 0xfa, 0xf6,
|
||||||
0x00, 0xff, 0xff, 0x14, 0xcf, 0x45, 0x01, 0xd8, 0x05, 0x00, 0x00,
|
0xc7, 0x2e, 0x1c, 0x56, 0x26, 0x3b, 0xf9, 0x37, 0x00, 0x00, 0xff, 0xff, 0x02, 0xea, 0x1a, 0x59,
|
||||||
|
0xfb, 0x05, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
@ -30,37 +30,37 @@ import "k8s.io/kubernetes/pkg/util/intstr/generated.proto";
|
|||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1alpha1";
|
option go_package = "v1alpha1";
|
||||||
|
|
||||||
// PetSet represents a set of pods with consistent identities.
|
// StatefulSet represents a set of pods with consistent identities.
|
||||||
// Identities are defined as:
|
// Identities are defined as:
|
||||||
// - Network: A single stable DNS and hostname.
|
// - Network: A single stable DNS and hostname.
|
||||||
// - Storage: As many VolumeClaims as requested.
|
// - Storage: As many VolumeClaims as requested.
|
||||||
// The PetSet guarantees that a given network identity will always
|
// The StatefulSet guarantees that a given network identity will always
|
||||||
// map to the same storage identity. PetSet is currently in alpha
|
// map to the same storage identity. StatefulSet is currently in alpha
|
||||||
// and subject to change without notice.
|
// and subject to change without notice.
|
||||||
message PetSet {
|
message StatefulSet {
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Spec defines the desired identities of pets in this set.
|
// Spec defines the desired identities of pods in this set.
|
||||||
// +optional
|
// +optional
|
||||||
optional PetSetSpec spec = 2;
|
optional StatefulSetSpec spec = 2;
|
||||||
|
|
||||||
// Status is the current status of Pets in this PetSet. This data
|
// Status is the current status of Pods in this StatefulSet. This data
|
||||||
// may be out of date by some window of time.
|
// may be out of date by some window of time.
|
||||||
// +optional
|
// +optional
|
||||||
optional PetSetStatus status = 3;
|
optional StatefulSetStatus status = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PetSetList is a collection of PetSets.
|
// StatefulSetList is a collection of StatefulSets.
|
||||||
message PetSetList {
|
message StatefulSetList {
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1;
|
optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1;
|
||||||
|
|
||||||
repeated PetSet items = 2;
|
repeated StatefulSet items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A PetSetSpec is the specification of a PetSet.
|
// A StatefulSetSpec is the specification of a StatefulSet.
|
||||||
message PetSetSpec {
|
message StatefulSetSpec {
|
||||||
// Replicas is the desired number of replicas of the given Template.
|
// Replicas is the desired number of replicas of the given Template.
|
||||||
// These are replicas in the sense that they are instantiations of the
|
// These are replicas in the sense that they are instantiations of the
|
||||||
// same Template, but individual replicas also have a consistent identity.
|
// same Template, but individual replicas also have a consistent identity.
|
||||||
@ -76,14 +76,14 @@ message PetSetSpec {
|
|||||||
optional k8s.io.kubernetes.pkg.api.unversioned.LabelSelector selector = 2;
|
optional k8s.io.kubernetes.pkg.api.unversioned.LabelSelector selector = 2;
|
||||||
|
|
||||||
// Template is the object that describes the pod that will be created if
|
// Template is the object that describes the pod that will be created if
|
||||||
// insufficient replicas are detected. Each pod stamped out by the PetSet
|
// insufficient replicas are detected. Each pod stamped out by the StatefulSet
|
||||||
// will fulfill this Template, but have a unique identity from the rest
|
// will fulfill this Template, but have a unique identity from the rest
|
||||||
// of the PetSet.
|
// of the StatefulSet.
|
||||||
optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 3;
|
optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 3;
|
||||||
|
|
||||||
// VolumeClaimTemplates is a list of claims that pets are allowed to reference.
|
// VolumeClaimTemplates is a list of claims that pods are allowed to reference.
|
||||||
// The PetSet controller is responsible for mapping network identities to
|
// The StatefulSet controller is responsible for mapping network identities to
|
||||||
// claims in a way that maintains the identity of a pet. Every claim in
|
// claims in a way that maintains the identity of a pod. Every claim in
|
||||||
// this list must have at least one matching (by name) volumeMount in one
|
// 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
|
// container in the template. A claim in this list takes precedence over
|
||||||
// any volumes in the template, with the same name.
|
// any volumes in the template, with the same name.
|
||||||
@ -91,16 +91,16 @@ message PetSetSpec {
|
|||||||
// +optional
|
// +optional
|
||||||
repeated k8s.io.kubernetes.pkg.api.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
|
repeated k8s.io.kubernetes.pkg.api.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
|
||||||
|
|
||||||
// ServiceName is the name of the service that governs this PetSet.
|
// ServiceName is the name of the service that governs this StatefulSet.
|
||||||
// This service must exist before the PetSet, and is responsible for
|
// This service must exist before the StatefulSet, and is responsible for
|
||||||
// the network identity of the set. Pets get DNS/hostnames that follow the
|
// the network identity of the set. Pods get DNS/hostnames that follow the
|
||||||
// pattern: pet-specific-string.serviceName.default.svc.cluster.local
|
// pattern: pod-specific-string.serviceName.default.svc.cluster.local
|
||||||
// where "pet-specific-string" is managed by the PetSet controller.
|
// where "pod-specific-string" is managed by the StatefulSet controller.
|
||||||
optional string serviceName = 5;
|
optional string serviceName = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PetSetStatus represents the current state of a PetSet.
|
// StatefulSetStatus represents the current state of a StatefulSet.
|
||||||
message PetSetStatus {
|
message StatefulSetStatus {
|
||||||
// most recent generation observed by this autoscaler.
|
// most recent generation observed by this autoscaler.
|
||||||
// +optional
|
// +optional
|
||||||
optional int64 observedGeneration = 1;
|
optional int64 observedGeneration = 1;
|
||||||
|
1658
pkg/apis/apps/v1alpha1/types.generated.go
Normal file
1658
pkg/apis/apps/v1alpha1/types.generated.go
Normal file
File diff suppressed because it is too large
Load Diff
71
pkg/apis/apps/v1alpha1/types_swagger_doc_generated.go
Normal file
71
pkg/apis/apps/v1alpha1/types_swagger_doc_generated.go
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
// This file contains a collection of methods that can be used from go-restful to
|
||||||
|
// generate Swagger API documentation for its models. Please read this PR for more
|
||||||
|
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
|
||||||
|
//
|
||||||
|
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
|
||||||
|
// they are on one line! For multiple line or blocks that you want to ignore use ---.
|
||||||
|
// Any context after a --- is ignored.
|
||||||
|
//
|
||||||
|
// Those methods can be generated by using hack/update-generated-swagger-docs.sh
|
||||||
|
|
||||||
|
// AUTO-GENERATED FUNCTIONS START HERE
|
||||||
|
var map_StatefulSet = map[string]string{
|
||||||
|
"": "StatefulSet 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 StatefulSet guarantees that a given network identity will always map to the same storage identity. StatefulSet is currently in alpha and subject to change without notice.",
|
||||||
|
"spec": "Spec defines the desired identities of pods in this set.",
|
||||||
|
"status": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (StatefulSet) SwaggerDoc() map[string]string {
|
||||||
|
return map_StatefulSet
|
||||||
|
}
|
||||||
|
|
||||||
|
var map_StatefulSetList = map[string]string{
|
||||||
|
"": "StatefulSetList is a collection of StatefulSets.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (StatefulSetList) SwaggerDoc() map[string]string {
|
||||||
|
return map_StatefulSetList
|
||||||
|
}
|
||||||
|
|
||||||
|
var map_StatefulSetSpec = map[string]string{
|
||||||
|
"": "A StatefulSetSpec is the specification of a StatefulSet.",
|
||||||
|
"replicas": "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.",
|
||||||
|
"selector": "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",
|
||||||
|
"template": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
|
||||||
|
"volumeClaimTemplates": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. 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.",
|
||||||
|
"serviceName": "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (StatefulSetSpec) SwaggerDoc() map[string]string {
|
||||||
|
return map_StatefulSetSpec
|
||||||
|
}
|
||||||
|
|
||||||
|
var map_StatefulSetStatus = map[string]string{
|
||||||
|
"": "StatefulSetStatus represents the current state of a StatefulSet.",
|
||||||
|
"observedGeneration": "most recent generation observed by this autoscaler.",
|
||||||
|
"replicas": "Replicas is the number of actual replicas.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (StatefulSetStatus) SwaggerDoc() map[string]string {
|
||||||
|
return map_StatefulSetStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
// AUTO-GENERATED FUNCTIONS END HERE
|
@ -36,60 +36,60 @@ func init() {
|
|||||||
// Public to allow building arbitrary schemes.
|
// Public to allow building arbitrary schemes.
|
||||||
func RegisterConversions(scheme *runtime.Scheme) error {
|
func RegisterConversions(scheme *runtime.Scheme) error {
|
||||||
return scheme.AddGeneratedConversionFuncs(
|
return scheme.AddGeneratedConversionFuncs(
|
||||||
Convert_v1alpha1_PetSet_To_apps_PetSet,
|
Convert_v1alpha1_StatefulSet_To_apps_StatefulSet,
|
||||||
Convert_apps_PetSet_To_v1alpha1_PetSet,
|
Convert_apps_StatefulSet_To_v1alpha1_StatefulSet,
|
||||||
Convert_v1alpha1_PetSetList_To_apps_PetSetList,
|
Convert_v1alpha1_StatefulSetList_To_apps_StatefulSetList,
|
||||||
Convert_apps_PetSetList_To_v1alpha1_PetSetList,
|
Convert_apps_StatefulSetList_To_v1alpha1_StatefulSetList,
|
||||||
Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec,
|
Convert_v1alpha1_StatefulSetSpec_To_apps_StatefulSetSpec,
|
||||||
Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec,
|
Convert_apps_StatefulSetSpec_To_v1alpha1_StatefulSetSpec,
|
||||||
Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus,
|
Convert_v1alpha1_StatefulSetStatus_To_apps_StatefulSetStatus,
|
||||||
Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus,
|
Convert_apps_StatefulSetStatus_To_v1alpha1_StatefulSetStatus,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha1_PetSet_To_apps_PetSet(in *PetSet, out *apps.PetSet, s conversion.Scope) error {
|
func autoConvert_v1alpha1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error {
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
// TODO: Inefficient conversion - can we improve it?
|
||||||
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(&in.Spec, &out.Spec, s); err != nil {
|
if err := Convert_v1alpha1_StatefulSetSpec_To_apps_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(&in.Status, &out.Status, s); err != nil {
|
if err := Convert_v1alpha1_StatefulSetStatus_To_apps_StatefulSetStatus(&in.Status, &out.Status, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Convert_v1alpha1_PetSet_To_apps_PetSet(in *PetSet, out *apps.PetSet, s conversion.Scope) error {
|
func Convert_v1alpha1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error {
|
||||||
return autoConvert_v1alpha1_PetSet_To_apps_PetSet(in, out, s)
|
return autoConvert_v1alpha1_StatefulSet_To_apps_StatefulSet(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_apps_PetSet_To_v1alpha1_PetSet(in *apps.PetSet, out *PetSet, s conversion.Scope) error {
|
func autoConvert_apps_StatefulSet_To_v1alpha1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error {
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
// TODO: Inefficient conversion - can we improve it?
|
||||||
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec(&in.Spec, &out.Spec, s); err != nil {
|
if err := Convert_apps_StatefulSetSpec_To_v1alpha1_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(&in.Status, &out.Status, s); err != nil {
|
if err := Convert_apps_StatefulSetStatus_To_v1alpha1_StatefulSetStatus(&in.Status, &out.Status, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Convert_apps_PetSet_To_v1alpha1_PetSet(in *apps.PetSet, out *PetSet, s conversion.Scope) error {
|
func Convert_apps_StatefulSet_To_v1alpha1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error {
|
||||||
return autoConvert_apps_PetSet_To_v1alpha1_PetSet(in, out, s)
|
return autoConvert_apps_StatefulSet_To_v1alpha1_StatefulSet(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha1_PetSetList_To_apps_PetSetList(in *PetSetList, out *apps.PetSetList, s conversion.Scope) error {
|
func autoConvert_v1alpha1_StatefulSetList_To_apps_StatefulSetList(in *StatefulSetList, out *apps.StatefulSetList, s conversion.Scope) error {
|
||||||
out.ListMeta = in.ListMeta
|
out.ListMeta = in.ListMeta
|
||||||
if in.Items != nil {
|
if in.Items != nil {
|
||||||
in, out := &in.Items, &out.Items
|
in, out := &in.Items, &out.Items
|
||||||
*out = make([]apps.PetSet, len(*in))
|
*out = make([]apps.StatefulSet, len(*in))
|
||||||
for i := range *in {
|
for i := range *in {
|
||||||
if err := Convert_v1alpha1_PetSet_To_apps_PetSet(&(*in)[i], &(*out)[i], s); err != nil {
|
if err := Convert_v1alpha1_StatefulSet_To_apps_StatefulSet(&(*in)[i], &(*out)[i], s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,17 +99,17 @@ func autoConvert_v1alpha1_PetSetList_To_apps_PetSetList(in *PetSetList, out *app
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Convert_v1alpha1_PetSetList_To_apps_PetSetList(in *PetSetList, out *apps.PetSetList, s conversion.Scope) error {
|
func Convert_v1alpha1_StatefulSetList_To_apps_StatefulSetList(in *StatefulSetList, out *apps.StatefulSetList, s conversion.Scope) error {
|
||||||
return autoConvert_v1alpha1_PetSetList_To_apps_PetSetList(in, out, s)
|
return autoConvert_v1alpha1_StatefulSetList_To_apps_StatefulSetList(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_apps_PetSetList_To_v1alpha1_PetSetList(in *apps.PetSetList, out *PetSetList, s conversion.Scope) error {
|
func autoConvert_apps_StatefulSetList_To_v1alpha1_StatefulSetList(in *apps.StatefulSetList, out *StatefulSetList, s conversion.Scope) error {
|
||||||
out.ListMeta = in.ListMeta
|
out.ListMeta = in.ListMeta
|
||||||
if in.Items != nil {
|
if in.Items != nil {
|
||||||
in, out := &in.Items, &out.Items
|
in, out := &in.Items, &out.Items
|
||||||
*out = make([]PetSet, len(*in))
|
*out = make([]StatefulSet, len(*in))
|
||||||
for i := range *in {
|
for i := range *in {
|
||||||
if err := Convert_apps_PetSet_To_v1alpha1_PetSet(&(*in)[i], &(*out)[i], s); err != nil {
|
if err := Convert_apps_StatefulSet_To_v1alpha1_StatefulSet(&(*in)[i], &(*out)[i], s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -119,11 +119,11 @@ func autoConvert_apps_PetSetList_To_v1alpha1_PetSetList(in *apps.PetSetList, out
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Convert_apps_PetSetList_To_v1alpha1_PetSetList(in *apps.PetSetList, out *PetSetList, s conversion.Scope) error {
|
func Convert_apps_StatefulSetList_To_v1alpha1_StatefulSetList(in *apps.StatefulSetList, out *StatefulSetList, s conversion.Scope) error {
|
||||||
return autoConvert_apps_PetSetList_To_v1alpha1_PetSetList(in, out, s)
|
return autoConvert_apps_StatefulSetList_To_v1alpha1_StatefulSetList(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(in *PetSetSpec, out *apps.PetSetSpec, s conversion.Scope) error {
|
func autoConvert_v1alpha1_StatefulSetSpec_To_apps_StatefulSetSpec(in *StatefulSetSpec, out *apps.StatefulSetSpec, s conversion.Scope) error {
|
||||||
if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil {
|
if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -147,7 +147,7 @@ func autoConvert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(in *PetSetSpec, out *app
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_apps_PetSetSpec_To_v1alpha1_PetSetSpec(in *apps.PetSetSpec, out *PetSetSpec, s conversion.Scope) error {
|
func autoConvert_apps_StatefulSetSpec_To_v1alpha1_StatefulSetSpec(in *apps.StatefulSetSpec, out *StatefulSetSpec, s conversion.Scope) error {
|
||||||
if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil {
|
if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -171,22 +171,22 @@ func autoConvert_apps_PetSetSpec_To_v1alpha1_PetSetSpec(in *apps.PetSetSpec, out
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in *PetSetStatus, out *apps.PetSetStatus, s conversion.Scope) error {
|
func autoConvert_v1alpha1_StatefulSetStatus_To_apps_StatefulSetStatus(in *StatefulSetStatus, out *apps.StatefulSetStatus, s conversion.Scope) error {
|
||||||
out.ObservedGeneration = in.ObservedGeneration
|
out.ObservedGeneration = in.ObservedGeneration
|
||||||
out.Replicas = in.Replicas
|
out.Replicas = in.Replicas
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in *PetSetStatus, out *apps.PetSetStatus, s conversion.Scope) error {
|
func Convert_v1alpha1_StatefulSetStatus_To_apps_StatefulSetStatus(in *StatefulSetStatus, out *apps.StatefulSetStatus, s conversion.Scope) error {
|
||||||
return autoConvert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in, out, s)
|
return autoConvert_v1alpha1_StatefulSetStatus_To_apps_StatefulSetStatus(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(in *apps.PetSetStatus, out *PetSetStatus, s conversion.Scope) error {
|
func autoConvert_apps_StatefulSetStatus_To_v1alpha1_StatefulSetStatus(in *apps.StatefulSetStatus, out *StatefulSetStatus, s conversion.Scope) error {
|
||||||
out.ObservedGeneration = in.ObservedGeneration
|
out.ObservedGeneration = in.ObservedGeneration
|
||||||
out.Replicas = in.Replicas
|
out.Replicas = in.Replicas
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(in *apps.PetSetStatus, out *PetSetStatus, s conversion.Scope) error {
|
func Convert_apps_StatefulSetStatus_To_v1alpha1_StatefulSetStatus(in *apps.StatefulSetStatus, out *StatefulSetStatus, s conversion.Scope) error {
|
||||||
return autoConvert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(in, out, s)
|
return autoConvert_apps_StatefulSetStatus_To_v1alpha1_StatefulSetStatus(in, out, s)
|
||||||
}
|
}
|
||||||
|
@ -36,42 +36,42 @@ func init() {
|
|||||||
// to allow building arbitrary schemes.
|
// to allow building arbitrary schemes.
|
||||||
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||||
return scheme.AddGeneratedDeepCopyFuncs(
|
return scheme.AddGeneratedDeepCopyFuncs(
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSet, InType: reflect.TypeOf(&PetSet{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSetList, InType: reflect.TypeOf(&PetSetList{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSetSpec, InType: reflect.TypeOf(&PetSetSpec{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PetSetStatus, InType: reflect.TypeOf(&PetSetStatus{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_v1alpha1_PetSet(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_v1alpha1_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSet)
|
in := in.(*StatefulSet)
|
||||||
out := out.(*PetSet)
|
out := out.(*StatefulSet)
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
|
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := DeepCopy_v1alpha1_PetSetSpec(&in.Spec, &out.Spec, c); err != nil {
|
if err := DeepCopy_v1alpha1_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := DeepCopy_v1alpha1_PetSetStatus(&in.Status, &out.Status, c); err != nil {
|
if err := DeepCopy_v1alpha1_StatefulSetStatus(&in.Status, &out.Status, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_v1alpha1_PetSetList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_v1alpha1_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSetList)
|
in := in.(*StatefulSetList)
|
||||||
out := out.(*PetSetList)
|
out := out.(*StatefulSetList)
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
out.ListMeta = in.ListMeta
|
out.ListMeta = in.ListMeta
|
||||||
if in.Items != nil {
|
if in.Items != nil {
|
||||||
in, out := &in.Items, &out.Items
|
in, out := &in.Items, &out.Items
|
||||||
*out = make([]PetSet, len(*in))
|
*out = make([]StatefulSet, len(*in))
|
||||||
for i := range *in {
|
for i := range *in {
|
||||||
if err := DeepCopy_v1alpha1_PetSet(&(*in)[i], &(*out)[i], c); err != nil {
|
if err := DeepCopy_v1alpha1_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,10 +82,10 @@ func DeepCopy_v1alpha1_PetSetList(in interface{}, out interface{}, c *conversion
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_v1alpha1_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_v1alpha1_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSetSpec)
|
in := in.(*StatefulSetSpec)
|
||||||
out := out.(*PetSetSpec)
|
out := out.(*StatefulSetSpec)
|
||||||
if in.Replicas != nil {
|
if in.Replicas != nil {
|
||||||
in, out := &in.Replicas, &out.Replicas
|
in, out := &in.Replicas, &out.Replicas
|
||||||
*out = new(int32)
|
*out = new(int32)
|
||||||
@ -121,10 +121,10 @@ func DeepCopy_v1alpha1_PetSetSpec(in interface{}, out interface{}, c *conversion
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_v1alpha1_PetSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_v1alpha1_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSetStatus)
|
in := in.(*StatefulSetStatus)
|
||||||
out := out.(*PetSetStatus)
|
out := out.(*StatefulSetStatus)
|
||||||
if in.ObservedGeneration != nil {
|
if in.ObservedGeneration != nil {
|
||||||
in, out := &in.ObservedGeneration, &out.ObservedGeneration
|
in, out := &in.ObservedGeneration, &out.ObservedGeneration
|
||||||
*out = new(int64)
|
*out = new(int64)
|
||||||
|
@ -29,13 +29,13 @@ import (
|
|||||||
// Public to allow building arbitrary schemes.
|
// Public to allow building arbitrary schemes.
|
||||||
// All generated defaulters are covering - they call all nested defaulters.
|
// All generated defaulters are covering - they call all nested defaulters.
|
||||||
func RegisterDefaults(scheme *runtime.Scheme) error {
|
func RegisterDefaults(scheme *runtime.Scheme) error {
|
||||||
scheme.AddTypeDefaultingFunc(&PetSet{}, func(obj interface{}) { SetObjectDefaults_PetSet(obj.(*PetSet)) })
|
scheme.AddTypeDefaultingFunc(&StatefulSet{}, func(obj interface{}) { SetObjectDefaults_StatefulSet(obj.(*StatefulSet)) })
|
||||||
scheme.AddTypeDefaultingFunc(&PetSetList{}, func(obj interface{}) { SetObjectDefaults_PetSetList(obj.(*PetSetList)) })
|
scheme.AddTypeDefaultingFunc(&StatefulSetList{}, func(obj interface{}) { SetObjectDefaults_StatefulSetList(obj.(*StatefulSetList)) })
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetObjectDefaults_PetSet(in *PetSet) {
|
func SetObjectDefaults_StatefulSet(in *StatefulSet) {
|
||||||
SetDefaults_PetSet(in)
|
SetDefaults_StatefulSet(in)
|
||||||
v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
|
v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
|
||||||
for i := range in.Spec.Template.Spec.Volumes {
|
for i := range in.Spec.Template.Spec.Volumes {
|
||||||
a := &in.Spec.Template.Spec.Volumes[i]
|
a := &in.Spec.Template.Spec.Volumes[i]
|
||||||
@ -158,9 +158,9 @@ func SetObjectDefaults_PetSet(in *PetSet) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetObjectDefaults_PetSetList(in *PetSetList) {
|
func SetObjectDefaults_StatefulSetList(in *StatefulSetList) {
|
||||||
for i := range in.Items {
|
for i := range in.Items {
|
||||||
a := &in.Items[i]
|
a := &in.Items[i]
|
||||||
SetObjectDefaults_PetSet(a)
|
SetObjectDefaults_StatefulSet(a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,42 +36,42 @@ func init() {
|
|||||||
// to allow building arbitrary schemes.
|
// to allow building arbitrary schemes.
|
||||||
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||||
return scheme.AddGeneratedDeepCopyFuncs(
|
return scheme.AddGeneratedDeepCopyFuncs(
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSet, InType: reflect.TypeOf(&PetSet{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSetList, InType: reflect.TypeOf(&PetSetList{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSetSpec, InType: reflect.TypeOf(&PetSetSpec{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_PetSetStatus, InType: reflect.TypeOf(&PetSetStatus{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_apps_PetSet(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSet)
|
in := in.(*StatefulSet)
|
||||||
out := out.(*PetSet)
|
out := out.(*StatefulSet)
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
|
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := DeepCopy_apps_PetSetSpec(&in.Spec, &out.Spec, c); err != nil {
|
if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := DeepCopy_apps_PetSetStatus(&in.Status, &out.Status, c); err != nil {
|
if err := DeepCopy_apps_StatefulSetStatus(&in.Status, &out.Status, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_apps_PetSetList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSetList)
|
in := in.(*StatefulSetList)
|
||||||
out := out.(*PetSetList)
|
out := out.(*StatefulSetList)
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
out.ListMeta = in.ListMeta
|
out.ListMeta = in.ListMeta
|
||||||
if in.Items != nil {
|
if in.Items != nil {
|
||||||
in, out := &in.Items, &out.Items
|
in, out := &in.Items, &out.Items
|
||||||
*out = make([]PetSet, len(*in))
|
*out = make([]StatefulSet, len(*in))
|
||||||
for i := range *in {
|
for i := range *in {
|
||||||
if err := DeepCopy_apps_PetSet(&(*in)[i], &(*out)[i], c); err != nil {
|
if err := DeepCopy_apps_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,10 +82,10 @@ func DeepCopy_apps_PetSetList(in interface{}, out interface{}, c *conversion.Clo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_apps_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSetSpec)
|
in := in.(*StatefulSetSpec)
|
||||||
out := out.(*PetSetSpec)
|
out := out.(*StatefulSetSpec)
|
||||||
out.Replicas = in.Replicas
|
out.Replicas = in.Replicas
|
||||||
if in.Selector != nil {
|
if in.Selector != nil {
|
||||||
in, out := &in.Selector, &out.Selector
|
in, out := &in.Selector, &out.Selector
|
||||||
@ -115,10 +115,10 @@ func DeepCopy_apps_PetSetSpec(in interface{}, out interface{}, c *conversion.Clo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_apps_PetSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*PetSetStatus)
|
in := in.(*StatefulSetStatus)
|
||||||
out := out.(*PetSetStatus)
|
out := out.(*StatefulSetStatus)
|
||||||
if in.ObservedGeneration != nil {
|
if in.ObservedGeneration != nil {
|
||||||
in, out := &in.ObservedGeneration, &out.ObservedGeneration
|
in, out := &in.ObservedGeneration, &out.ObservedGeneration
|
||||||
*out = new(int64)
|
*out = new(int64)
|
||||||
|
@ -16,7 +16,7 @@ go_library(
|
|||||||
"apps_client.go",
|
"apps_client.go",
|
||||||
"doc.go",
|
"doc.go",
|
||||||
"generated_expansion.go",
|
"generated_expansion.go",
|
||||||
"petset.go",
|
"statefulset.go",
|
||||||
],
|
],
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -15,7 +15,7 @@ go_library(
|
|||||||
srcs = [
|
srcs = [
|
||||||
"doc.go",
|
"doc.go",
|
||||||
"fake_apps_client.go",
|
"fake_apps_client.go",
|
||||||
"fake_petset.go",
|
"fake_statefulset.go",
|
||||||
],
|
],
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -0,0 +1,127 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package fake
|
||||||
|
|
||||||
|
import (
|
||||||
|
api "k8s.io/kubernetes/pkg/api"
|
||||||
|
unversioned "k8s.io/kubernetes/pkg/api/unversioned"
|
||||||
|
apps "k8s.io/kubernetes/pkg/apis/apps"
|
||||||
|
core "k8s.io/kubernetes/pkg/client/testing/core"
|
||||||
|
labels "k8s.io/kubernetes/pkg/labels"
|
||||||
|
watch "k8s.io/kubernetes/pkg/watch"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FakeStatefulSets implements StatefulSetInterface
|
||||||
|
type FakeStatefulSets struct {
|
||||||
|
Fake *FakeApps
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
var statefulsetsResource = unversioned.GroupVersionResource{Group: "apps", Version: "", Resource: "statefulsets"}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewCreateAction(statefulsetsResource, c.ns, statefulSet), &apps.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*apps.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Update(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &apps.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*apps.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) UpdateStatus(statefulSet *apps.StatefulSet) (*apps.StatefulSet, error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &apps.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*apps.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Delete(name string, options *api.DeleteOptions) error {
|
||||||
|
_, err := c.Fake.
|
||||||
|
Invokes(core.NewDeleteAction(statefulsetsResource, c.ns, name), &apps.StatefulSet{})
|
||||||
|
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
|
||||||
|
action := core.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions)
|
||||||
|
|
||||||
|
_, err := c.Fake.Invokes(action, &apps.StatefulSetList{})
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Get(name string) (result *apps.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewGetAction(statefulsetsResource, c.ns, name), &apps.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*apps.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) List(opts api.ListOptions) (result *apps.StatefulSetList, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewListAction(statefulsetsResource, c.ns, opts), &apps.StatefulSetList{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
label, _, _ := core.ExtractFromListOptions(opts)
|
||||||
|
if label == nil {
|
||||||
|
label = labels.Everything()
|
||||||
|
}
|
||||||
|
list := &apps.StatefulSetList{}
|
||||||
|
for _, item := range obj.(*apps.StatefulSetList).Items {
|
||||||
|
if label.Matches(labels.Set(item.Labels)) {
|
||||||
|
list.Items = append(list.Items, item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Watch returns a watch.Interface that watches the requested statefulSets.
|
||||||
|
func (c *FakeStatefulSets) Watch(opts api.ListOptions) (watch.Interface, error) {
|
||||||
|
return c.Fake.
|
||||||
|
InvokesWatch(core.NewWatchAction(statefulsetsResource, c.ns, opts))
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch applies the patch and returns the patched statefulSet.
|
||||||
|
func (c *FakeStatefulSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, data, subresources...), &apps.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*apps.StatefulSet), err
|
||||||
|
}
|
@ -0,0 +1,166 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package unversioned
|
||||||
|
|
||||||
|
import (
|
||||||
|
api "k8s.io/kubernetes/pkg/api"
|
||||||
|
apps "k8s.io/kubernetes/pkg/apis/apps"
|
||||||
|
restclient "k8s.io/kubernetes/pkg/client/restclient"
|
||||||
|
watch "k8s.io/kubernetes/pkg/watch"
|
||||||
|
)
|
||||||
|
|
||||||
|
// StatefulSetsGetter has a method to return a StatefulSetInterface.
|
||||||
|
// A group's client should implement this interface.
|
||||||
|
type StatefulSetsGetter interface {
|
||||||
|
StatefulSets(namespace string) StatefulSetInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
// StatefulSetInterface has methods to work with StatefulSet resources.
|
||||||
|
type StatefulSetInterface interface {
|
||||||
|
Create(*apps.StatefulSet) (*apps.StatefulSet, error)
|
||||||
|
Update(*apps.StatefulSet) (*apps.StatefulSet, error)
|
||||||
|
UpdateStatus(*apps.StatefulSet) (*apps.StatefulSet, error)
|
||||||
|
Delete(name string, options *api.DeleteOptions) error
|
||||||
|
DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
|
||||||
|
Get(name string) (*apps.StatefulSet, error)
|
||||||
|
List(opts api.ListOptions) (*apps.StatefulSetList, error)
|
||||||
|
Watch(opts api.ListOptions) (watch.Interface, error)
|
||||||
|
Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error)
|
||||||
|
StatefulSetExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// statefulSets implements StatefulSetInterface
|
||||||
|
type statefulSets struct {
|
||||||
|
client restclient.Interface
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
// newStatefulSets returns a StatefulSets
|
||||||
|
func newStatefulSets(c *AppsClient, namespace string) *statefulSets {
|
||||||
|
return &statefulSets{
|
||||||
|
client: c.RESTClient(),
|
||||||
|
ns: namespace,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create takes the representation of a statefulSet and creates it. Returns the server's representation of the statefulSet, and an error, if there is any.
|
||||||
|
func (c *statefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) {
|
||||||
|
result = &apps.StatefulSet{}
|
||||||
|
err = c.client.Post().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Body(statefulSet).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.
|
||||||
|
func (c *statefulSets) Update(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) {
|
||||||
|
result = &apps.StatefulSet{}
|
||||||
|
err = c.client.Put().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(statefulSet.Name).
|
||||||
|
Body(statefulSet).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *statefulSets) UpdateStatus(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) {
|
||||||
|
result = &apps.StatefulSet{}
|
||||||
|
err = c.client.Put().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(statefulSet.Name).
|
||||||
|
SubResource("status").
|
||||||
|
Body(statefulSet).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.
|
||||||
|
func (c *statefulSets) Delete(name string, options *api.DeleteOptions) error {
|
||||||
|
return c.client.Delete().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(name).
|
||||||
|
Body(options).
|
||||||
|
Do().
|
||||||
|
Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeleteCollection deletes a collection of objects.
|
||||||
|
func (c *statefulSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
|
||||||
|
return c.client.Delete().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
VersionedParams(&listOptions, api.ParameterCodec).
|
||||||
|
Body(options).
|
||||||
|
Do().
|
||||||
|
Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.
|
||||||
|
func (c *statefulSets) Get(name string) (result *apps.StatefulSet, err error) {
|
||||||
|
result = &apps.StatefulSet{}
|
||||||
|
err = c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(name).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
|
||||||
|
func (c *statefulSets) List(opts api.ListOptions) (result *apps.StatefulSetList, err error) {
|
||||||
|
result = &apps.StatefulSetList{}
|
||||||
|
err = c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
VersionedParams(&opts, api.ParameterCodec).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Watch returns a watch.Interface that watches the requested statefulSets.
|
||||||
|
func (c *statefulSets) Watch(opts api.ListOptions) (watch.Interface, error) {
|
||||||
|
return c.client.Get().
|
||||||
|
Prefix("watch").
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
VersionedParams(&opts, api.ParameterCodec).
|
||||||
|
Watch()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch applies the patch and returns the patched statefulSet.
|
||||||
|
func (c *statefulSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error) {
|
||||||
|
result = &apps.StatefulSet{}
|
||||||
|
err = c.client.Patch(pt).
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
SubResource(subresources...).
|
||||||
|
Name(name).
|
||||||
|
Body(data).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
@ -16,7 +16,7 @@ go_library(
|
|||||||
"apps_client.go",
|
"apps_client.go",
|
||||||
"doc.go",
|
"doc.go",
|
||||||
"generated_expansion.go",
|
"generated_expansion.go",
|
||||||
"petset.go",
|
"statefulset.go",
|
||||||
],
|
],
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -15,7 +15,7 @@ go_library(
|
|||||||
srcs = [
|
srcs = [
|
||||||
"doc.go",
|
"doc.go",
|
||||||
"fake_apps_client.go",
|
"fake_apps_client.go",
|
||||||
"fake_petset.go",
|
"fake_statefulset.go",
|
||||||
],
|
],
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -0,0 +1,128 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package fake
|
||||||
|
|
||||||
|
import (
|
||||||
|
api "k8s.io/kubernetes/pkg/api"
|
||||||
|
unversioned "k8s.io/kubernetes/pkg/api/unversioned"
|
||||||
|
v1 "k8s.io/kubernetes/pkg/api/v1"
|
||||||
|
v1alpha1 "k8s.io/kubernetes/pkg/apis/apps/v1alpha1"
|
||||||
|
core "k8s.io/kubernetes/pkg/client/testing/core"
|
||||||
|
labels "k8s.io/kubernetes/pkg/labels"
|
||||||
|
watch "k8s.io/kubernetes/pkg/watch"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FakeStatefulSets implements StatefulSetInterface
|
||||||
|
type FakeStatefulSets struct {
|
||||||
|
Fake *FakeApps
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
var statefulsetsResource = unversioned.GroupVersionResource{Group: "apps", Version: "v1alpha1", Resource: "statefulsets"}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Create(statefulSet *v1alpha1.StatefulSet) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewCreateAction(statefulsetsResource, c.ns, statefulSet), &v1alpha1.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Update(statefulSet *v1alpha1.StatefulSet) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &v1alpha1.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) UpdateStatus(statefulSet *v1alpha1.StatefulSet) (*v1alpha1.StatefulSet, error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &v1alpha1.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error {
|
||||||
|
_, err := c.Fake.
|
||||||
|
Invokes(core.NewDeleteAction(statefulsetsResource, c.ns, name), &v1alpha1.StatefulSet{})
|
||||||
|
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
|
||||||
|
action := core.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions)
|
||||||
|
|
||||||
|
_, err := c.Fake.Invokes(action, &v1alpha1.StatefulSetList{})
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) Get(name string) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewGetAction(statefulsetsResource, c.ns, name), &v1alpha1.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.StatefulSet), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *v1alpha1.StatefulSetList, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewListAction(statefulsetsResource, c.ns, opts), &v1alpha1.StatefulSetList{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
label, _, _ := core.ExtractFromListOptions(opts)
|
||||||
|
if label == nil {
|
||||||
|
label = labels.Everything()
|
||||||
|
}
|
||||||
|
list := &v1alpha1.StatefulSetList{}
|
||||||
|
for _, item := range obj.(*v1alpha1.StatefulSetList).Items {
|
||||||
|
if label.Matches(labels.Set(item.Labels)) {
|
||||||
|
list.Items = append(list.Items, item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Watch returns a watch.Interface that watches the requested statefulSets.
|
||||||
|
func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
||||||
|
return c.Fake.
|
||||||
|
InvokesWatch(core.NewWatchAction(statefulsetsResource, c.ns, opts))
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch applies the patch and returns the patched statefulSet.
|
||||||
|
func (c *FakeStatefulSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(core.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, data, subresources...), &v1alpha1.StatefulSet{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.StatefulSet), err
|
||||||
|
}
|
@ -0,0 +1,167 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
api "k8s.io/kubernetes/pkg/api"
|
||||||
|
v1 "k8s.io/kubernetes/pkg/api/v1"
|
||||||
|
v1alpha1 "k8s.io/kubernetes/pkg/apis/apps/v1alpha1"
|
||||||
|
restclient "k8s.io/kubernetes/pkg/client/restclient"
|
||||||
|
watch "k8s.io/kubernetes/pkg/watch"
|
||||||
|
)
|
||||||
|
|
||||||
|
// StatefulSetsGetter has a method to return a StatefulSetInterface.
|
||||||
|
// A group's client should implement this interface.
|
||||||
|
type StatefulSetsGetter interface {
|
||||||
|
StatefulSets(namespace string) StatefulSetInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
// StatefulSetInterface has methods to work with StatefulSet resources.
|
||||||
|
type StatefulSetInterface interface {
|
||||||
|
Create(*v1alpha1.StatefulSet) (*v1alpha1.StatefulSet, error)
|
||||||
|
Update(*v1alpha1.StatefulSet) (*v1alpha1.StatefulSet, error)
|
||||||
|
UpdateStatus(*v1alpha1.StatefulSet) (*v1alpha1.StatefulSet, error)
|
||||||
|
Delete(name string, options *v1.DeleteOptions) error
|
||||||
|
DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
|
||||||
|
Get(name string) (*v1alpha1.StatefulSet, error)
|
||||||
|
List(opts v1.ListOptions) (*v1alpha1.StatefulSetList, error)
|
||||||
|
Watch(opts v1.ListOptions) (watch.Interface, error)
|
||||||
|
Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.StatefulSet, err error)
|
||||||
|
StatefulSetExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// statefulSets implements StatefulSetInterface
|
||||||
|
type statefulSets struct {
|
||||||
|
client restclient.Interface
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
// newStatefulSets returns a StatefulSets
|
||||||
|
func newStatefulSets(c *AppsClient, namespace string) *statefulSets {
|
||||||
|
return &statefulSets{
|
||||||
|
client: c.RESTClient(),
|
||||||
|
ns: namespace,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create takes the representation of a statefulSet and creates it. Returns the server's representation of the statefulSet, and an error, if there is any.
|
||||||
|
func (c *statefulSets) Create(statefulSet *v1alpha1.StatefulSet) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
result = &v1alpha1.StatefulSet{}
|
||||||
|
err = c.client.Post().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Body(statefulSet).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.
|
||||||
|
func (c *statefulSets) Update(statefulSet *v1alpha1.StatefulSet) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
result = &v1alpha1.StatefulSet{}
|
||||||
|
err = c.client.Put().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(statefulSet.Name).
|
||||||
|
Body(statefulSet).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *statefulSets) UpdateStatus(statefulSet *v1alpha1.StatefulSet) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
result = &v1alpha1.StatefulSet{}
|
||||||
|
err = c.client.Put().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(statefulSet.Name).
|
||||||
|
SubResource("status").
|
||||||
|
Body(statefulSet).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.
|
||||||
|
func (c *statefulSets) Delete(name string, options *v1.DeleteOptions) error {
|
||||||
|
return c.client.Delete().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(name).
|
||||||
|
Body(options).
|
||||||
|
Do().
|
||||||
|
Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeleteCollection deletes a collection of objects.
|
||||||
|
func (c *statefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
|
||||||
|
return c.client.Delete().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
VersionedParams(&listOptions, api.ParameterCodec).
|
||||||
|
Body(options).
|
||||||
|
Do().
|
||||||
|
Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.
|
||||||
|
func (c *statefulSets) Get(name string) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
result = &v1alpha1.StatefulSet{}
|
||||||
|
err = c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
Name(name).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
|
||||||
|
func (c *statefulSets) List(opts v1.ListOptions) (result *v1alpha1.StatefulSetList, err error) {
|
||||||
|
result = &v1alpha1.StatefulSetList{}
|
||||||
|
err = c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
VersionedParams(&opts, api.ParameterCodec).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Watch returns a watch.Interface that watches the requested statefulSets.
|
||||||
|
func (c *statefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
||||||
|
return c.client.Get().
|
||||||
|
Prefix("watch").
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
VersionedParams(&opts, api.ParameterCodec).
|
||||||
|
Watch()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch applies the patch and returns the patched statefulSet.
|
||||||
|
func (c *statefulSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.StatefulSet, err error) {
|
||||||
|
result = &v1alpha1.StatefulSet{}
|
||||||
|
err = c.client.Patch(pt).
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("statefulsets").
|
||||||
|
SubResource(subresources...).
|
||||||
|
Name(name).
|
||||||
|
Body(data).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
34
pkg/client/unversioned/testclient/BUILD
Normal file
34
pkg/client/unversioned/testclient/BUILD
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
licenses(["notice"])
|
||||||
|
|
||||||
|
load(
|
||||||
|
"@io_bazel_rules_go//go:def.bzl",
|
||||||
|
"go_binary",
|
||||||
|
"go_library",
|
||||||
|
"go_test",
|
||||||
|
"cgo_library",
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "go_default_library",
|
||||||
|
srcs = [
|
||||||
|
"fake_petsets.go",
|
||||||
|
"testclient.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//pkg/api:go_default_library",
|
||||||
|
"//pkg/api/unversioned:go_default_library",
|
||||||
|
"//pkg/api/v1:go_default_library",
|
||||||
|
"//pkg/apimachinery/registered:go_default_library",
|
||||||
|
"//pkg/apis/apps:go_default_library",
|
||||||
|
"//pkg/client/restclient:go_default_library",
|
||||||
|
"//pkg/client/typed/discovery:go_default_library",
|
||||||
|
"//pkg/client/unversioned:go_default_library",
|
||||||
|
"//pkg/runtime:go_default_library",
|
||||||
|
"//pkg/version:go_default_library",
|
||||||
|
"//pkg/watch:go_default_library",
|
||||||
|
"//vendor:github.com/emicklei/go-restful/swagger",
|
||||||
|
],
|
||||||
|
)
|
@ -29,10 +29,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
||||||
"apps.PetSet": {
|
"apps.StatefulSet": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
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 and subject to change without notice.",
|
Description: "StatefulSet 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 StatefulSet guarantees that a given network identity will always map to the same storage identity. StatefulSet is currently in alpha and and subject to change without notice.",
|
||||||
Properties: map[string]spec.Schema{
|
Properties: map[string]spec.Schema{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
@ -41,26 +41,26 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Spec defines the desired identities of pets in this set.",
|
Description: "Spec defines the desired identities of pods in this set.",
|
||||||
Ref: spec.MustCreateRef("#/definitions/apps.PetSetSpec"),
|
Ref: spec.MustCreateRef("#/definitions/apps.StatefulSetSpec"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Status is the current status of Pets in this PetSet. This data may be out of date by some window of time.",
|
Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.",
|
||||||
Ref: spec.MustCreateRef("#/definitions/apps.PetSetStatus"),
|
Ref: spec.MustCreateRef("#/definitions/apps.StatefulSetStatus"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
"api.ObjectMeta", "apps.PetSetSpec", "apps.PetSetStatus"},
|
"api.ObjectMeta", "apps.StatefulSetSpec", "apps.StatefulSetStatus"},
|
||||||
},
|
},
|
||||||
"apps.PetSetList": {
|
"apps.StatefulSetList": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "PetSetList is a collection of PetSets.",
|
Description: "StatefulSetList is a collection of StatefulSets.",
|
||||||
Properties: map[string]spec.Schema{
|
Properties: map[string]spec.Schema{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
@ -73,7 +73,7 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
Items: &spec.SchemaOrArray{
|
Items: &spec.SchemaOrArray{
|
||||||
Schema: &spec.Schema{
|
Schema: &spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Ref: spec.MustCreateRef("#/definitions/apps.PetSet"),
|
Ref: spec.MustCreateRef("#/definitions/apps.StatefulSet"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -84,12 +84,12 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
"apps.PetSet", "unversioned.ListMeta"},
|
"apps.StatefulSet", "unversioned.ListMeta"},
|
||||||
},
|
},
|
||||||
"apps.PetSetSpec": {
|
"apps.StatefulSetSpec": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "A PetSetSpec is the specification of a PetSet.",
|
Description: "A StatefulSetSpec is the specification of a StatefulSet.",
|
||||||
Properties: map[string]spec.Schema{
|
Properties: map[string]spec.Schema{
|
||||||
"replicas": {
|
"replicas": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
@ -106,13 +106,13 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
},
|
},
|
||||||
"template": {
|
"template": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
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.",
|
Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
|
||||||
Ref: spec.MustCreateRef("#/definitions/api.PodTemplateSpec"),
|
Ref: spec.MustCreateRef("#/definitions/api.PodTemplateSpec"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"volumeClaimTemplates": {
|
"volumeClaimTemplates": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
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.",
|
Description: "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. 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: []string{"array"},
|
Type: []string{"array"},
|
||||||
Items: &spec.SchemaOrArray{
|
Items: &spec.SchemaOrArray{
|
||||||
Schema: &spec.Schema{
|
Schema: &spec.Schema{
|
||||||
@ -125,7 +125,7 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
},
|
},
|
||||||
"serviceName": {
|
"serviceName": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
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.",
|
Description: "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.",
|
||||||
Type: []string{"string"},
|
Type: []string{"string"},
|
||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
@ -137,10 +137,10 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
"api.PersistentVolumeClaim", "api.PodTemplateSpec", "unversioned.LabelSelector"},
|
"api.PersistentVolumeClaim", "api.PodTemplateSpec", "unversioned.LabelSelector"},
|
||||||
},
|
},
|
||||||
"apps.PetSetStatus": {
|
"apps.StatefulSetStatus": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "PetSetStatus represents the current state of a PetSet.",
|
Description: "StatefulSetStatus represents the current state of a StatefulSet.",
|
||||||
Properties: map[string]spec.Schema{
|
Properties: map[string]spec.Schema{
|
||||||
"observedGeneration": {
|
"observedGeneration": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
@ -14755,139 +14755,6 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
"unversioned.Duration"},
|
"unversioned.Duration"},
|
||||||
},
|
},
|
||||||
"v1alpha1.PetSet": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
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: map[string]spec.Schema{
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.ObjectMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Spec defines the desired identities of pets in this set.",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1alpha1.PetSetSpec"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Status is the current status of Pets in this PetSet. This data may be out of date by some window of time.",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1alpha1.PetSetStatus"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"v1.ObjectMeta", "v1alpha1.PetSetSpec", "v1alpha1.PetSetStatus"},
|
|
||||||
},
|
|
||||||
"v1alpha1.PetSetList": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "PetSetList is a collection of PetSets.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/unversioned.ListMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"items": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Type: []string{"array"},
|
|
||||||
Items: &spec.SchemaOrArray{
|
|
||||||
Schema: &spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1alpha1.PetSet"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"items"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"unversioned.ListMeta", "v1alpha1.PetSet"},
|
|
||||||
},
|
|
||||||
"v1alpha1.PetSetSpec": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "A PetSetSpec is the specification of a PetSet.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"replicas": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
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: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"selector": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
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: spec.MustCreateRef("#/definitions/unversioned.LabelSelector"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"template": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
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: spec.MustCreateRef("#/definitions/v1.PodTemplateSpec"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"volumeClaimTemplates": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
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: []string{"array"},
|
|
||||||
Items: &spec.SchemaOrArray{
|
|
||||||
Schema: &spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.PersistentVolumeClaim"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"serviceName": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
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{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"template", "serviceName"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"unversioned.LabelSelector", "v1.PersistentVolumeClaim", "v1.PodTemplateSpec"},
|
|
||||||
},
|
|
||||||
"v1alpha1.PetSetStatus": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "PetSetStatus represents the current state of a PetSet.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"observedGeneration": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "most recent generation observed by this autoscaler.",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int64",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"replicas": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Replicas is the number of actual replicas.",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"replicas"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{},
|
|
||||||
},
|
|
||||||
"v1alpha1.PodDisruptionBudget": {
|
"v1alpha1.PodDisruptionBudget": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
@ -15257,6 +15124,139 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
},
|
},
|
||||||
Dependencies: []string{},
|
Dependencies: []string{},
|
||||||
},
|
},
|
||||||
|
"v1alpha1.StatefulSet": {
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "StatefulSet 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 StatefulSet guarantees that a given network identity will always map to the same storage identity. StatefulSet is currently in alpha and subject to change without notice.",
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"metadata": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/v1.ObjectMeta"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Spec defines the desired identities of pods in this set.",
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/v1alpha1.StatefulSetSpec"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.",
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/v1alpha1.StatefulSetStatus"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dependencies: []string{
|
||||||
|
"v1.ObjectMeta", "v1alpha1.StatefulSetSpec", "v1alpha1.StatefulSetStatus"},
|
||||||
|
},
|
||||||
|
"v1alpha1.StatefulSetList": {
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "StatefulSetList is a collection of StatefulSets.",
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"metadata": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/unversioned.ListMeta"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"items": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Type: []string{"array"},
|
||||||
|
Items: &spec.SchemaOrArray{
|
||||||
|
Schema: &spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/v1alpha1.StatefulSet"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Required: []string{"items"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dependencies: []string{
|
||||||
|
"unversioned.ListMeta", "v1alpha1.StatefulSet"},
|
||||||
|
},
|
||||||
|
"v1alpha1.StatefulSetSpec": {
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "A StatefulSetSpec is the specification of a StatefulSet.",
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"replicas": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
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: []string{"integer"},
|
||||||
|
Format: "int32",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
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: spec.MustCreateRef("#/definitions/unversioned.LabelSelector"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"template": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/v1.PodTemplateSpec"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"volumeClaimTemplates": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. 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: []string{"array"},
|
||||||
|
Items: &spec.SchemaOrArray{
|
||||||
|
Schema: &spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Ref: spec.MustCreateRef("#/definitions/v1.PersistentVolumeClaim"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"serviceName": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Required: []string{"template", "serviceName"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dependencies: []string{
|
||||||
|
"unversioned.LabelSelector", "v1.PersistentVolumeClaim", "v1.PodTemplateSpec"},
|
||||||
|
},
|
||||||
|
"v1alpha1.StatefulSetStatus": {
|
||||||
|
Schema: spec.Schema{
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "StatefulSetStatus represents the current state of a StatefulSet.",
|
||||||
|
Properties: map[string]spec.Schema{
|
||||||
|
"observedGeneration": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "most recent generation observed by this autoscaler.",
|
||||||
|
Type: []string{"integer"},
|
||||||
|
Format: "int64",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"replicas": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Replicas is the number of actual replicas.",
|
||||||
|
Type: []string{"integer"},
|
||||||
|
Format: "int32",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Required: []string{"replicas"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dependencies: []string{},
|
||||||
|
},
|
||||||
"v1alpha1.Subject": {
|
"v1alpha1.Subject": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Loading…
Reference in New Issue
Block a user