Auto-generated code.
This commit is contained in:
		| @@ -14609,7 +14609,7 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { | |||||||
| 			_, _, _ = yysep2, yyq2, yy2arr2 | 			_, _, _ = yysep2, yyq2, yy2arr2 | ||||||
| 			const yyr2 bool = false | 			const yyr2 bool = false | ||||||
| 			yyq2[1] = x.Selector != nil | 			yyq2[1] = x.Selector != nil | ||||||
| 			yyq2[2] = x.Template != nil | 			yyq2[2] = true | ||||||
| 			var yynn2 int | 			var yynn2 int | ||||||
| 			if yyr2 || yy2arr2 { | 			if yyr2 || yy2arr2 { | ||||||
| 				r.EncodeArrayStart(3) | 				r.EncodeArrayStart(3) | ||||||
| @@ -14680,11 +14680,8 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { | |||||||
| 			if yyr2 || yy2arr2 { | 			if yyr2 || yy2arr2 { | ||||||
| 				z.EncSendContainerState(codecSelfer_containerArrayElem1234) | 				z.EncSendContainerState(codecSelfer_containerArrayElem1234) | ||||||
| 				if yyq2[2] { | 				if yyq2[2] { | ||||||
| 					if x.Template == nil { | 					yy10 := &x.Template | ||||||
| 						r.EncodeNil() | 					yy10.CodecEncodeSelf(e) | ||||||
| 					} else { |  | ||||||
| 						x.Template.CodecEncodeSelf(e) |  | ||||||
| 					} |  | ||||||
| 				} else { | 				} else { | ||||||
| 					r.EncodeNil() | 					r.EncodeNil() | ||||||
| 				} | 				} | ||||||
| @@ -14693,11 +14690,8 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { | |||||||
| 					z.EncSendContainerState(codecSelfer_containerMapKey1234) | 					z.EncSendContainerState(codecSelfer_containerMapKey1234) | ||||||
| 					r.EncodeString(codecSelferC_UTF81234, string("template")) | 					r.EncodeString(codecSelferC_UTF81234, string("template")) | ||||||
| 					z.EncSendContainerState(codecSelfer_containerMapValue1234) | 					z.EncSendContainerState(codecSelfer_containerMapValue1234) | ||||||
| 					if x.Template == nil { | 					yy12 := &x.Template | ||||||
| 						r.EncodeNil() | 					yy12.CodecEncodeSelf(e) | ||||||
| 					} else { |  | ||||||
| 						x.Template.CodecEncodeSelf(e) |  | ||||||
| 					} |  | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 			if yyr2 || yy2arr2 { | 			if yyr2 || yy2arr2 { | ||||||
| @@ -14786,14 +14780,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { | |||||||
| 			} | 			} | ||||||
| 		case "template": | 		case "template": | ||||||
| 			if r.TryDecodeAsNil() { | 			if r.TryDecodeAsNil() { | ||||||
| 				if x.Template != nil { | 				x.Template = pkg2_api.PodTemplateSpec{} | ||||||
| 					x.Template = nil |  | ||||||
| 				} |  | ||||||
| 			} else { | 			} else { | ||||||
| 				if x.Template == nil { | 				yyv7 := &x.Template | ||||||
| 					x.Template = new(pkg2_api.PodTemplateSpec) | 				yyv7.CodecDecodeSelf(d) | ||||||
| 				} |  | ||||||
| 				x.Template.CodecDecodeSelf(d) |  | ||||||
| 			} | 			} | ||||||
| 		default: | 		default: | ||||||
| 			z.DecStructFieldNotFound(-1, yys3) | 			z.DecStructFieldNotFound(-1, yys3) | ||||||
| @@ -14864,14 +14854,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { | |||||||
| 	} | 	} | ||||||
| 	z.DecSendContainerState(codecSelfer_containerArrayElem1234) | 	z.DecSendContainerState(codecSelfer_containerArrayElem1234) | ||||||
| 	if r.TryDecodeAsNil() { | 	if r.TryDecodeAsNil() { | ||||||
| 		if x.Template != nil { | 		x.Template = pkg2_api.PodTemplateSpec{} | ||||||
| 			x.Template = nil |  | ||||||
| 		} |  | ||||||
| 	} else { | 	} else { | ||||||
| 		if x.Template == nil { | 		yyv12 := &x.Template | ||||||
| 			x.Template = new(pkg2_api.PodTemplateSpec) | 		yyv12.CodecDecodeSelf(d) | ||||||
| 		} |  | ||||||
| 		x.Template.CodecDecodeSelf(d) |  | ||||||
| 	} | 	} | ||||||
| 	for { | 	for { | ||||||
| 		yyj8++ | 		yyj8++ | ||||||
| @@ -18962,7 +18948,7 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode | |||||||
|  |  | ||||||
| 			yyrg1 := len(yyv1) > 0 | 			yyrg1 := len(yyv1) > 0 | ||||||
| 			yyv21 := yyv1 | 			yyv21 := yyv1 | ||||||
| 			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 232) | 			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 552) | ||||||
| 			if yyrt1 { | 			if yyrt1 { | ||||||
| 				if yyrl1 <= cap(yyv1) { | 				if yyrl1 <= cap(yyv1) { | ||||||
| 					yyv1 = yyv1[:yyrl1] | 					yyv1 = yyv1[:yyrl1] | ||||||
|   | |||||||
| @@ -3599,14 +3599,8 @@ func autoConvert_extensions_ReplicaSetSpec_To_v1beta1_ReplicaSetSpec(in *extensi | |||||||
| 	} else { | 	} else { | ||||||
| 		out.Selector = nil | 		out.Selector = nil | ||||||
| 	} | 	} | ||||||
| 	// unable to generate simple pointer conversion for api.PodTemplateSpec -> v1.PodTemplateSpec | 	if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { | ||||||
| 	if in.Template != nil { | 		return err | ||||||
| 		out.Template = new(v1.PodTemplateSpec) |  | ||||||
| 		if err := Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in.Template, out.Template, s); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 	} else { |  | ||||||
| 		out.Template = nil |  | ||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
| @@ -4848,14 +4842,8 @@ func autoConvert_v1beta1_ReplicaSetSpec_To_extensions_ReplicaSetSpec(in *Replica | |||||||
| 	} else { | 	} else { | ||||||
| 		out.Selector = nil | 		out.Selector = nil | ||||||
| 	} | 	} | ||||||
| 	// unable to generate simple pointer conversion for v1.PodTemplateSpec -> api.PodTemplateSpec | 	if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { | ||||||
| 	if in.Template != nil { | 		return err | ||||||
| 		out.Template = new(api.PodTemplateSpec) |  | ||||||
| 		if err := Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in.Template, out.Template, s); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 	} else { |  | ||||||
| 		out.Template = nil |  | ||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1738,13 +1738,8 @@ func deepCopy_v1beta1_ReplicaSetSpec(in ReplicaSetSpec, out *ReplicaSetSpec, c * | |||||||
| 	} else { | 	} else { | ||||||
| 		out.Selector = nil | 		out.Selector = nil | ||||||
| 	} | 	} | ||||||
| 	if in.Template != nil { | 	if err := deepCopy_v1_PodTemplateSpec(in.Template, &out.Template, c); err != nil { | ||||||
| 		out.Template = new(v1.PodTemplateSpec) | 		return err | ||||||
| 		if err := deepCopy_v1_PodTemplateSpec(*in.Template, out.Template, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 	} else { |  | ||||||
| 		out.Template = nil |  | ||||||
| 	} | 	} | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|   | |||||||
| @@ -15962,7 +15962,7 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { | |||||||
| 			const yyr2 bool = false | 			const yyr2 bool = false | ||||||
| 			yyq2[0] = x.Replicas != nil | 			yyq2[0] = x.Replicas != nil | ||||||
| 			yyq2[1] = x.Selector != nil | 			yyq2[1] = x.Selector != nil | ||||||
| 			yyq2[2] = x.Template != nil | 			yyq2[2] = true | ||||||
| 			var yynn2 int | 			var yynn2 int | ||||||
| 			if yyr2 || yy2arr2 { | 			if yyr2 || yy2arr2 { | ||||||
| 				r.EncodeArrayStart(3) | 				r.EncodeArrayStart(3) | ||||||
| @@ -16037,11 +16037,8 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { | |||||||
| 			if yyr2 || yy2arr2 { | 			if yyr2 || yy2arr2 { | ||||||
| 				z.EncSendContainerState(codecSelfer_containerArrayElem1234) | 				z.EncSendContainerState(codecSelfer_containerArrayElem1234) | ||||||
| 				if yyq2[2] { | 				if yyq2[2] { | ||||||
| 					if x.Template == nil { | 					yy12 := &x.Template | ||||||
| 						r.EncodeNil() | 					yy12.CodecEncodeSelf(e) | ||||||
| 					} else { |  | ||||||
| 						x.Template.CodecEncodeSelf(e) |  | ||||||
| 					} |  | ||||||
| 				} else { | 				} else { | ||||||
| 					r.EncodeNil() | 					r.EncodeNil() | ||||||
| 				} | 				} | ||||||
| @@ -16050,11 +16047,8 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { | |||||||
| 					z.EncSendContainerState(codecSelfer_containerMapKey1234) | 					z.EncSendContainerState(codecSelfer_containerMapKey1234) | ||||||
| 					r.EncodeString(codecSelferC_UTF81234, string("template")) | 					r.EncodeString(codecSelferC_UTF81234, string("template")) | ||||||
| 					z.EncSendContainerState(codecSelfer_containerMapValue1234) | 					z.EncSendContainerState(codecSelfer_containerMapValue1234) | ||||||
| 					if x.Template == nil { | 					yy14 := &x.Template | ||||||
| 						r.EncodeNil() | 					yy14.CodecEncodeSelf(e) | ||||||
| 					} else { |  | ||||||
| 						x.Template.CodecEncodeSelf(e) |  | ||||||
| 					} |  | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 			if yyr2 || yy2arr2 { | 			if yyr2 || yy2arr2 { | ||||||
| @@ -16147,14 +16141,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { | |||||||
| 			} | 			} | ||||||
| 		case "template": | 		case "template": | ||||||
| 			if r.TryDecodeAsNil() { | 			if r.TryDecodeAsNil() { | ||||||
| 				if x.Template != nil { | 				x.Template = pkg2_v1.PodTemplateSpec{} | ||||||
| 					x.Template = nil |  | ||||||
| 				} |  | ||||||
| 			} else { | 			} else { | ||||||
| 				if x.Template == nil { | 				yyv7 := &x.Template | ||||||
| 					x.Template = new(pkg2_v1.PodTemplateSpec) | 				yyv7.CodecDecodeSelf(d) | ||||||
| 				} |  | ||||||
| 				x.Template.CodecDecodeSelf(d) |  | ||||||
| 			} | 			} | ||||||
| 		default: | 		default: | ||||||
| 			z.DecStructFieldNotFound(-1, yys3) | 			z.DecStructFieldNotFound(-1, yys3) | ||||||
| @@ -16229,14 +16219,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { | |||||||
| 	} | 	} | ||||||
| 	z.DecSendContainerState(codecSelfer_containerArrayElem1234) | 	z.DecSendContainerState(codecSelfer_containerArrayElem1234) | ||||||
| 	if r.TryDecodeAsNil() { | 	if r.TryDecodeAsNil() { | ||||||
| 		if x.Template != nil { | 		x.Template = pkg2_v1.PodTemplateSpec{} | ||||||
| 			x.Template = nil |  | ||||||
| 		} |  | ||||||
| 	} else { | 	} else { | ||||||
| 		if x.Template == nil { | 		yyv12 := &x.Template | ||||||
| 			x.Template = new(pkg2_v1.PodTemplateSpec) | 		yyv12.CodecDecodeSelf(d) | ||||||
| 		} |  | ||||||
| 		x.Template.CodecDecodeSelf(d) |  | ||||||
| 	} | 	} | ||||||
| 	for { | 	for { | ||||||
| 		yyj8++ | 		yyj8++ | ||||||
| @@ -20446,7 +20432,7 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode | |||||||
|  |  | ||||||
| 			yyrg1 := len(yyv1) > 0 | 			yyrg1 := len(yyv1) > 0 | ||||||
| 			yyv21 := yyv1 | 			yyv21 := yyv1 | ||||||
| 			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 232) | 			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 576) | ||||||
| 			if yyrt1 { | 			if yyrt1 { | ||||||
| 				if yyrl1 <= cap(yyv1) { | 				if yyrl1 <= cap(yyv1) { | ||||||
| 					yyv1 = yyv1[:yyrl1] | 					yyv1 = yyv1[:yyrl1] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Madhusudan.C.S
					Madhusudan.C.S