allErrs=append(allErrs,errs.NewFieldInvalid("spec.containers",newPod.Spec.Containers,"may not add or remove containers"))
//TODO: Pinpoint the specific container that causes the invalid error after we have strategic merge diff
allErrs=append(allErrs,errs.NewFieldInvalid("spec.containers","content of spec.containers is not printed out, please refer to the \"details\"","may not add or remove containers"))
allErrs=append(allErrs,errs.NewFieldInvalid("spec",newPod.Spec,"may not update fields other than container.image"))
//TODO: Pinpoint the specific field that causes the invalid error after we have strategic merge diff
allErrs=append(allErrs,errs.NewFieldInvalid("spec","content of spec is not printed out, please refer to the \"details\"","may not update fields other than container.image"))
`Error from server: Invalid2 "invalidation" is invalid: [Cause: invalid value 'multi1': details, Cause: invalid value 'multi2': details]`,
`Error from server: Invalid2 "invalidation" is invalid: [Cause: invalid value 'multi1', Details: details, Cause: invalid value 'multi2', Details: details]`,
@@ -770,7 +770,7 @@ var _ = Describe("Services", func() {
...
@@ -770,7 +770,7 @@ var _ = Describe("Services", func() {
iferr==nil{
iferr==nil{
Failf("Created service with conflicting NodePort: %v",result2)
Failf("Created service with conflicting NodePort: %v",result2)
}
}
expectedErr:=fmt.Sprintf("Service \"%s\" is invalid: spec.ports[0].nodePort: invalid value '%d': provided port is already allocated",serviceName2,port.NodePort)
expectedErr:=fmt.Sprintf("Service \"%s\" is invalid: spec.ports[0].nodePort: invalid value '%d', Details: provided port is already allocated",serviceName2,port.NodePort)
By("deleting original service "+serviceName+" with type NodePort in namespace "+ns)
By("deleting original service "+serviceName+" with type NodePort in namespace "+ns)
...
@@ -830,7 +830,7 @@ var _ = Describe("Services", func() {
...
@@ -830,7 +830,7 @@ var _ = Describe("Services", func() {
iferr==nil{
iferr==nil{
Failf("failed to prevent update of service with out-of-range NodePort: %v",result)
Failf("failed to prevent update of service with out-of-range NodePort: %v",result)
}
}
expectedErr:=fmt.Sprintf("Service \"%s\" is invalid: spec.ports[0].nodePort: invalid value '%d': provided port is not in the valid range",serviceName,outOfRangeNodePort)
expectedErr:=fmt.Sprintf("Service \"%s\" is invalid: spec.ports[0].nodePort: invalid value '%d', Details: provided port is not in the valid range",serviceName,outOfRangeNodePort)