bump to kube v1.7.8
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
19df68605b
commit
b6be0f0bd7
26 changed files with 43 additions and 110 deletions
10
vendor/k8s.io/kubernetes/pkg/api/validation/validation.go
generated
vendored
10
vendor/k8s.io/kubernetes/pkg/api/validation/validation.go
generated
vendored
|
@ -2706,6 +2706,16 @@ func ValidatePodUpdate(newPod, oldPod *api.Pod) field.ErrorList {
|
|||
|
||||
// handle updateable fields by munging those fields prior to deep equal comparison.
|
||||
mungedPod := *newPod
|
||||
|
||||
// allow hostname and subdomain to be updated if they are empty. This allows for migration between the beta
|
||||
// annotations and the GA field when upgrading between Kubernetes 1.6.x and 1.7.x.
|
||||
if oldPod.Spec.Hostname == "" {
|
||||
mungedPod.Spec.Hostname = oldPod.Spec.Hostname
|
||||
}
|
||||
if oldPod.Spec.Subdomain == "" {
|
||||
mungedPod.Spec.Subdomain = oldPod.Spec.Subdomain
|
||||
}
|
||||
|
||||
// munge spec.containers[*].image
|
||||
var newContainers []api.Container
|
||||
for ix, container := range mungedPod.Spec.Containers {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue