Edited to add the default restart policy (always) to clarify value if RestartPolicy is not set.

Generated new .json output for Swagger UI

Added the api/v1/v1.json file to the hack/update-swagger-spec.sh script so it gets updated and built.

Fixes #5057

Reverting last change: Deleted line for building v1 api from the  build file update-swagger-ui.sh and deleted the output file from build (v1.json).
pull/6/head
RichieEscarez 2015-05-19 09:34:10 -07:00
parent dcbe815825
commit 0076c181c7
9 changed files with 161 additions and 113 deletions

View File

@ -8165,10 +8165,6 @@
}
}
},
"v1beta1.AccessModeType": {
"id": "v1beta1.AccessModeType",
"properties": {}
},
"v1beta1.Binding": {
"id": "v1beta1.Binding",
"required": [
@ -8210,7 +8206,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"podID": {
"type": "string",
@ -8236,21 +8232,21 @@
"add": {
"type": "array",
"items": {
"$ref": "v1beta1.CapabilityType"
"$ref": "v1beta1.Capability"
},
"description": "added capabilities"
},
"drop": {
"type": "array",
"items": {
"$ref": "v1beta1.CapabilityType"
"$ref": "v1beta1.Capability"
},
"description": "droped capabilities"
}
}
},
"v1beta1.CapabilityType": {
"id": "v1beta1.CapabilityType",
"v1beta1.Capability": {
"id": "v1beta1.Capability",
"properties": {}
},
"v1beta1.ComponentCondition": {
@ -8322,7 +8318,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8381,7 +8377,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8532,9 +8528,16 @@
"type": "string",
"description": "manifest name; must be a DNS_SUBDOMAIN; cannot be updated"
},
"imagePullSecrets": {
"type": "array",
"items": {
"$ref": "v1beta1.LocalObjectReference"
},
"description": "list of references to secrets in the same namespace available for pulling the container images"
},
"restartPolicy": {
"$ref": "v1beta1.RestartPolicy",
"description": "restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"
"description": "restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"
},
"terminationGracePeriodSeconds": {
"type": "integer",
@ -8629,7 +8632,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8774,7 +8777,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"protocol": {
"type": "string",
@ -8851,7 +8854,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8961,7 +8964,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"reason": {
"type": "string",
@ -9036,7 +9039,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9249,7 +9252,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9333,7 +9336,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9391,6 +9394,15 @@
}
}
},
"v1beta1.LocalObjectReference": {
"id": "v1beta1.LocalObjectReference",
"properties": {
"name": {
"type": "string",
"description": "name of the referent"
}
}
},
"v1beta1.Minion": {
"id": "v1beta1.Minion",
"properties": {
@ -9436,7 +9448,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"podCIDR": {
"type": "string",
@ -9518,7 +9530,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9592,7 +9604,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9659,7 +9671,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9911,7 +9923,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9935,6 +9947,10 @@
}
}
},
"v1beta1.PersistentVolumeAccessMode": {
"id": "v1beta1.PersistentVolumeAccessMode",
"properties": {}
},
"v1beta1.PersistentVolumeClaim": {
"id": "v1beta1.PersistentVolumeClaim",
"properties": {
@ -9968,7 +9984,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10032,7 +10048,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10054,7 +10070,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta1.AccessModeType"
"$ref": "v1beta1.PersistentVolumeAccessMode"
},
"description": "the desired access modes the volume should have"
},
@ -10074,7 +10090,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta1.AccessModeType"
"$ref": "v1beta1.PersistentVolumeAccessMode"
},
"description": "the actual access modes the volume has"
},
@ -10141,7 +10157,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10160,17 +10176,17 @@
"v1beta1.PersistentVolumeSpec": {
"id": "v1beta1.PersistentVolumeSpec",
"required": [
"persistentDisk",
"awsElasticBlockStore",
"hostPath",
"glusterfs",
"nfs"
"nfs",
"persistentDisk",
"awsElasticBlockStore"
],
"properties": {
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta1.AccessModeType"
"$ref": "v1beta1.PersistentVolumeAccessMode"
},
"description": "all ways the volume can be mounted"
},
@ -10258,7 +10274,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"nodeSelector": {
"type": "any",
@ -10342,7 +10358,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10468,7 +10484,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10527,7 +10543,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10601,7 +10617,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10668,7 +10684,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10806,7 +10822,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10869,7 +10885,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10969,7 +10985,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"port": {
"type": "integer",
@ -11065,7 +11081,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -11131,7 +11147,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -11190,7 +11206,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -11280,7 +11296,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"reason": {
"type": "string",

View File

@ -8165,10 +8165,6 @@
}
}
},
"v1beta2.AccessModeType": {
"id": "v1beta2.AccessModeType",
"properties": {}
},
"v1beta2.Binding": {
"id": "v1beta2.Binding",
"required": [
@ -8210,7 +8206,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"podID": {
"type": "string",
@ -8236,21 +8232,21 @@
"add": {
"type": "array",
"items": {
"$ref": "v1beta2.CapabilityType"
"$ref": "v1beta2.Capability"
},
"description": "added capabilities"
},
"drop": {
"type": "array",
"items": {
"$ref": "v1beta2.CapabilityType"
"$ref": "v1beta2.Capability"
},
"description": "droped capabilities"
}
}
},
"v1beta2.CapabilityType": {
"id": "v1beta2.CapabilityType",
"v1beta2.Capability": {
"id": "v1beta2.Capability",
"properties": {}
},
"v1beta2.ComponentCondition": {
@ -8322,7 +8318,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8381,7 +8377,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8532,9 +8528,16 @@
"type": "string",
"description": "manifest name; must be a DNS_SUBDOMAIN; cannot be updated"
},
"imagePullSecrets": {
"type": "array",
"items": {
"$ref": "v1beta2.LocalObjectReference"
},
"description": "list of references to secrets in the same namespace available for pulling the container images"
},
"restartPolicy": {
"$ref": "v1beta2.RestartPolicy",
"description": "restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"
"description": "restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"
},
"terminationGracePeriodSeconds": {
"type": "integer",
@ -8629,7 +8632,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8774,7 +8777,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"protocol": {
"type": "string",
@ -8851,7 +8854,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -8957,7 +8960,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"reason": {
"type": "string",
@ -9032,7 +9035,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9245,7 +9248,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9329,7 +9332,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9387,6 +9390,15 @@
}
}
},
"v1beta2.LocalObjectReference": {
"id": "v1beta2.LocalObjectReference",
"properties": {
"name": {
"type": "string",
"description": "name of the referent"
}
}
},
"v1beta2.Minion": {
"id": "v1beta2.Minion",
"properties": {
@ -9432,7 +9444,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"podCIDR": {
"type": "string",
@ -9507,7 +9519,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9581,7 +9593,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9648,7 +9660,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9900,7 +9912,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -9924,6 +9936,10 @@
}
}
},
"v1beta2.PersistentVolumeAccessMode": {
"id": "v1beta2.PersistentVolumeAccessMode",
"properties": {}
},
"v1beta2.PersistentVolumeClaim": {
"id": "v1beta2.PersistentVolumeClaim",
"properties": {
@ -9957,7 +9973,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10021,7 +10037,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10043,7 +10059,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta2.AccessModeType"
"$ref": "v1beta2.PersistentVolumeAccessMode"
},
"description": "the desired access modes the volume should have"
},
@ -10063,7 +10079,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta2.AccessModeType"
"$ref": "v1beta2.PersistentVolumeAccessMode"
},
"description": "the actual access modes the volume has"
},
@ -10130,7 +10146,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10149,17 +10165,17 @@
"v1beta2.PersistentVolumeSpec": {
"id": "v1beta2.PersistentVolumeSpec",
"required": [
"glusterfs",
"nfs",
"persistentDisk",
"awsElasticBlockStore",
"hostPath"
"hostPath",
"glusterfs",
"nfs"
],
"properties": {
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta2.AccessModeType"
"$ref": "v1beta2.PersistentVolumeAccessMode"
},
"description": "all ways the volume can be mounted"
},
@ -10247,7 +10263,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"nodeSelector": {
"type": "any",
@ -10331,7 +10347,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10457,7 +10473,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10516,7 +10532,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10590,7 +10606,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10657,7 +10673,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10795,7 +10811,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10858,7 +10874,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -10958,7 +10974,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"port": {
"type": "integer",
@ -11054,7 +11070,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -11120,7 +11136,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -11179,7 +11195,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"resourceVersion": {
"type": "integer",
@ -11269,7 +11285,7 @@
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
"description": "namespace to which the object belongs; must be a DNS_LABEL; 'default' by default; cannot be updated"
},
"reason": {
"type": "string",

View File

@ -9575,10 +9575,6 @@
}
}
},
"v1beta3.AccessModeType": {
"id": "v1beta3.AccessModeType",
"properties": {}
},
"v1beta3.Binding": {
"id": "v1beta3.Binding",
"required": [
@ -9609,21 +9605,21 @@
"add": {
"type": "array",
"items": {
"$ref": "v1beta3.CapabilityType"
"$ref": "v1beta3.Capability"
},
"description": "added capabilities"
},
"drop": {
"type": "array",
"items": {
"$ref": "v1beta3.CapabilityType"
"$ref": "v1beta3.Capability"
},
"description": "droped capabilities"
}
}
},
"v1beta3.CapabilityType": {
"id": "v1beta3.CapabilityType",
"v1beta3.Capability": {
"id": "v1beta3.Capability",
"properties": {}
},
"v1beta3.ComponentCondition": {
@ -10471,6 +10467,15 @@
}
}
},
"v1beta3.LocalObjectReference": {
"id": "v1beta3.LocalObjectReference",
"properties": {
"name": {
"type": "string",
"description": "name of the referent"
}
}
},
"v1beta3.NFSVolumeSource": {
"id": "v1beta3.NFSVolumeSource",
"required": [
@ -10807,7 +10812,7 @@
},
"namespace": {
"type": "string",
"description": "namespace of the object; cannot be updated"
"description": "namespace of the object; must be a DNS_LABEL; cannot be updated"
},
"resourceVersion": {
"type": "string",
@ -10881,6 +10886,10 @@
}
}
},
"v1beta3.PersistentVolumeAccessMode": {
"id": "v1beta3.PersistentVolumeAccessMode",
"properties": {}
},
"v1beta3.PersistentVolumeClaim": {
"id": "v1beta3.PersistentVolumeClaim",
"properties": {
@ -10936,7 +10945,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta3.AccessModeType"
"$ref": "v1beta3.PersistentVolumeAccessMode"
},
"description": "the desired access modes the volume should have"
},
@ -10956,7 +10965,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta3.AccessModeType"
"$ref": "v1beta3.PersistentVolumeAccessMode"
},
"description": "the actual access modes the volume has"
},
@ -11013,7 +11022,7 @@
"accessModes": {
"type": "array",
"items": {
"$ref": "v1beta3.AccessModeType"
"$ref": "v1beta3.PersistentVolumeAccessMode"
},
"description": "all ways the volume can be mounted"
},
@ -11155,13 +11164,20 @@
"type": "boolean",
"description": "host networking requested for this pod"
},
"imagePullSecrets": {
"type": "array",
"items": {
"$ref": "v1beta3.LocalObjectReference"
},
"description": "list of references to secrets in the same namespace available for pulling the container images"
},
"nodeSelector": {
"type": "any",
"description": "selector which must match a node's labels for the pod to be scheduled on that node"
},
"restartPolicy": {
"type": "string",
"description": "restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"
"description": "restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"
},
"serviceAccount": {
"type": "string",

View File

@ -25,7 +25,7 @@ More detailed information about the current (and previous) container statuses ca
## RestartPolicy
The RestartPolicy may be `Always`, `OnFailure`, or `Never`. RestartPolicy applies to all containers in the pod. RestartPolicy only refers to restarts of the containers by the Kubelet on the same node. As discussed in the [pods document](pods.md#durability-of-pods-or-lack-thereof), once bound to a node, a pod may never be rebound to another node. This means that some kind of controller is necessary in order for a pod to survive node failure, even if just a single pod at a time is desired.
The possible values for RestartPolicy are `Always`, `OnFailure`, or `Never`. If RestartPolicy is not set, the default value is `Always`. RestartPolicy applies to all containers in the pod. RestartPolicy only refers to restarts of the containers by the Kubelet on the same node. As discussed in the [pods document](pods.md#durability-of-pods-or-lack-thereof), once bound to a node, a pod may never be rebound to another node. This means that some kind of controller is necessary in order for a pod to survive node failure, even if just a single pod at a time is desired.
The only controller we have today is [`ReplicationController`](replication-controller.md). `ReplicationController` is *only* appropriate for pods with `RestartPolicy = Always`. `ReplicationController` should refuse to instantiate any pod that has a different restart policy.

View File

@ -4,7 +4,7 @@
A _replication controller_ ensures that a specified number of pod "replicas" are running at any one time. If there are too many, it will kill some. If there are too few, it will start more. Unlike in the case where a user directly created pods, a replication controller replaces pods that are deleted or terminated for any reason, such as in the case of node failure or disruptive node maintenance, such as a kernel upgrade. For this reason, we recommend that you use a replication controller even if your application requires only a single pod. Think of it similarly to a process supervisor, only it supervises multiple pods across multiple nodes instead of individual processes on a single node. Replication controller delegates local container restarts to some agent on the node (e.g., Kubelet or Docker).
As discussed in [life of a pod](pod-states.md), `replicationcontroller` is *only* appropriate for pods with `RestartPolicy = Always`. `ReplicationController` should refuse to instantiate any pod that has a different restart policy. As discussed in [issue #503](https://github.com/GoogleCloudPlatform/kubernetes/issues/503#issuecomment-50169443), we expect other types of controllers to be added to Kubernetes to handle other types of workloads, such as build/test and batch workloads, in the future.
As discussed in [life of a pod](pod-states.md), `replicationController` is *only* appropriate for pods with `RestartPolicy = Always` (Note: If `RestartPolicy` is not set, the default value is `Always`.). `ReplicationController` should refuse to instantiate any pod that has a different restart policy. As discussed in [issue #503](https://github.com/GoogleCloudPlatform/kubernetes/issues/503#issuecomment-50169443), we expect other types of controllers to be added to Kubernetes to handle other types of workloads, such as build/test and batch workloads, in the future.
A replication controller will never terminate on its own, but it isn't expected to be as long-lived as services. Services may be composed of pods controlled by multiple replication controllers, and it is expected that many replication controllers may be created and destroyed over the lifetime of a service. Both services themselves and their clients should remain oblivious to the replication controllers that maintain the pods of the services.

View File

@ -828,7 +828,7 @@ type PodSpec struct {
Volumes []Volume `json:"volumes,omitempty" description:"list of volumes that can be mounted by containers belonging to the pod" patchStrategy:"merge" patchMergeKey:"name"`
// Required: there must be at least one container in a pod.
Containers []Container `json:"containers" description:"list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod" patchStrategy:"merge" patchMergeKey:"name"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"`
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
// Value must be non-negative integer. The value zero indicates delete immediately.
// If this value is nil, the default grace period will be used instead.

View File

@ -60,7 +60,7 @@ type ContainerManifest struct {
UUID types.UID `json:"uuid,omitempty" description:"manifest UUID, populated by the system, read-only"`
Volumes []Volume `json:"volumes" description:"list of volumes that can be mounted by containers belonging to the pod"`
Containers []Container `json:"containers" description:"list of containers belonging to the pod; containers cannot currently be added or removed"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"`
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
// Value must be non-negative integer. The value zero indicates delete immediately.
// If this value is nil, the default grace period will be used instead.
@ -1528,7 +1528,7 @@ type PodSpec struct {
Volumes []Volume `json:"volumes" description:"list of volumes that can be mounted by containers belonging to the pod"`
// Required: there must be at least one container in a pod.
Containers []Container `json:"containers" description:"list of containers belonging to the pod; containers cannot currently be added or removed; there must be at least one container in a Pod"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"`
// TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
// Optional: Set DNS policy. Defaults to "ClusterFirst"
DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty" description:"DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default'"`

View File

@ -1556,7 +1556,7 @@ type ContainerManifest struct {
UUID types.UID `json:"uuid,omitempty" description:"manifest UUID; cannot be updated"`
Volumes []Volume `json:"volumes" description:"list of volumes that can be mounted by containers belonging to the pod"`
Containers []Container `json:"containers" description:"list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"`
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
// Value must be non-negative integer. The value zero indicates delete immediately.
// If this value is nil, the default grace period will be used instead.
@ -1605,7 +1605,7 @@ type PodSpec struct {
Volumes []Volume `json:"volumes" description:"list of volumes that can be mounted by containers belonging to the pod"`
// Required: there must be at least one container in a pod.
Containers []Container `json:"containers" description:"list of containers belonging to the pod; containers cannot currently be added or removed; there must be at least one container in a Pod"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"`
// Optional: Set DNS policy. Defaults to "ClusterFirst"
DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty" description:"DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default'"`
// NodeSelector is a selector which must be true for the pod to fit on a node

View File

@ -832,7 +832,7 @@ type PodSpec struct {
Volumes []Volume `json:"volumes,omitempty" description:"list of volumes that can be mounted by containers belonging to the pod" patchStrategy:"merge" patchMergeKey:"name"`
// Required: there must be at least one container in a pod.
Containers []Container `json:"containers" description:"list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod" patchStrategy:"merge" patchMergeKey:"name"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" description:"restart policy for all containers within the pod; one of RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever; defaults to RestartPolicyAlways"`
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
// Value must be non-negative integer. The value zero indicates delete immediately.
// If this value is nil, the default grace period will be used instead.