mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Merge branch 'sdminonne-container_sidecar'
This commit is contained in:
@@ -187,6 +187,28 @@ func deepCopy_api_ContainerPort(in api.ContainerPort, out *api.ContainerPort, c
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_api_DownwardAPIVolumeFile(in api.DownwardAPIVolumeFile, out *api.DownwardAPIVolumeFile, c *conversion.Cloner) error {
|
||||
out.Path = in.Path
|
||||
if err := deepCopy_api_ObjectFieldSelector(in.FieldRef, &out.FieldRef, c); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_api_DownwardAPIVolumeSource(in api.DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, c *conversion.Cloner) error {
|
||||
if in.Items != nil {
|
||||
out.Items = make([]api.DownwardAPIVolumeFile, len(in.Items))
|
||||
for i := range in.Items {
|
||||
if err := deepCopy_api_DownwardAPIVolumeFile(in.Items[i], &out.Items[i], c); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.Items = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_api_EmptyDirVolumeSource(in api.EmptyDirVolumeSource, out *api.EmptyDirVolumeSource, c *conversion.Cloner) error {
|
||||
out.Medium = in.Medium
|
||||
return nil
|
||||
@@ -708,6 +730,14 @@ func deepCopy_api_VolumeSource(in api.VolumeSource, out *api.VolumeSource, c *co
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
if in.DownwardAPI != nil {
|
||||
out.DownwardAPI = new(api.DownwardAPIVolumeSource)
|
||||
if err := deepCopy_api_DownwardAPIVolumeSource(*in.DownwardAPI, out.DownwardAPI, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.DownwardAPI = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -1090,6 +1120,8 @@ func init() {
|
||||
deepCopy_api_CinderVolumeSource,
|
||||
deepCopy_api_Container,
|
||||
deepCopy_api_ContainerPort,
|
||||
deepCopy_api_DownwardAPIVolumeFile,
|
||||
deepCopy_api_DownwardAPIVolumeSource,
|
||||
deepCopy_api_EmptyDirVolumeSource,
|
||||
deepCopy_api_EnvVar,
|
||||
deepCopy_api_EnvVarSource,
|
||||
|
||||
@@ -205,6 +205,34 @@ func convert_api_ContainerPort_To_v1_ContainerPort(in *api.ContainerPort, out *v
|
||||
return nil
|
||||
}
|
||||
|
||||
func convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.DownwardAPIVolumeFile, out *v1.DownwardAPIVolumeFile, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.DownwardAPIVolumeFile))(in)
|
||||
}
|
||||
out.Path = in.Path
|
||||
if err := convert_api_ObjectFieldSelector_To_v1_ObjectFieldSelector(&in.FieldRef, &out.FieldRef, s); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func convert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(in *api.DownwardAPIVolumeSource, out *v1.DownwardAPIVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.DownwardAPIVolumeSource))(in)
|
||||
}
|
||||
if in.Items != nil {
|
||||
out.Items = make([]v1.DownwardAPIVolumeFile, len(in.Items))
|
||||
for i := range in.Items {
|
||||
if err := convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(&in.Items[i], &out.Items[i], s); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.Items = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in *api.EmptyDirVolumeSource, out *v1.EmptyDirVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*api.EmptyDirVolumeSource))(in)
|
||||
@@ -756,6 +784,14 @@ func convert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out *v1.V
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
if in.DownwardAPI != nil {
|
||||
out.DownwardAPI = new(v1.DownwardAPIVolumeSource)
|
||||
if err := convert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(in.DownwardAPI, out.DownwardAPI, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.DownwardAPI = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -936,6 +972,34 @@ func convert_v1_ContainerPort_To_api_ContainerPort(in *v1.ContainerPort, out *ap
|
||||
return nil
|
||||
}
|
||||
|
||||
func convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in *v1.DownwardAPIVolumeFile, out *api.DownwardAPIVolumeFile, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.DownwardAPIVolumeFile))(in)
|
||||
}
|
||||
out.Path = in.Path
|
||||
if err := convert_v1_ObjectFieldSelector_To_api_ObjectFieldSelector(&in.FieldRef, &out.FieldRef, s); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in *v1.DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.DownwardAPIVolumeSource))(in)
|
||||
}
|
||||
if in.Items != nil {
|
||||
out.Items = make([]api.DownwardAPIVolumeFile, len(in.Items))
|
||||
for i := range in.Items {
|
||||
if err := convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(&in.Items[i], &out.Items[i], s); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.Items = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource(in *v1.EmptyDirVolumeSource, out *api.EmptyDirVolumeSource, s conversion.Scope) error {
|
||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||
defaulting.(func(*v1.EmptyDirVolumeSource))(in)
|
||||
@@ -1487,6 +1551,14 @@ func convert_v1_VolumeSource_To_api_VolumeSource(in *v1.VolumeSource, out *api.V
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
if in.DownwardAPI != nil {
|
||||
out.DownwardAPI = new(api.DownwardAPIVolumeSource)
|
||||
if err := convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in.DownwardAPI, out.DownwardAPI, s); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.DownwardAPI = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2196,6 +2268,8 @@ func init() {
|
||||
convert_api_CinderVolumeSource_To_v1_CinderVolumeSource,
|
||||
convert_api_ContainerPort_To_v1_ContainerPort,
|
||||
convert_api_Container_To_v1_Container,
|
||||
convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile,
|
||||
convert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource,
|
||||
convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource,
|
||||
convert_api_EnvVarSource_To_v1_EnvVarSource,
|
||||
convert_api_EnvVar_To_v1_EnvVar,
|
||||
@@ -2260,6 +2334,8 @@ func init() {
|
||||
convert_v1_DeploymentList_To_expapi_DeploymentList,
|
||||
convert_v1_DeploymentStatus_To_expapi_DeploymentStatus,
|
||||
convert_v1_Deployment_To_expapi_Deployment,
|
||||
convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile,
|
||||
convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource,
|
||||
convert_v1_EmptyDirVolumeSource_To_api_EmptyDirVolumeSource,
|
||||
convert_v1_EnvVarSource_To_api_EnvVarSource,
|
||||
convert_v1_EnvVar_To_api_EnvVar,
|
||||
|
||||
@@ -204,6 +204,28 @@ func deepCopy_v1_ContainerPort(in v1.ContainerPort, out *v1.ContainerPort, c *co
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_v1_DownwardAPIVolumeFile(in v1.DownwardAPIVolumeFile, out *v1.DownwardAPIVolumeFile, c *conversion.Cloner) error {
|
||||
out.Path = in.Path
|
||||
if err := deepCopy_v1_ObjectFieldSelector(in.FieldRef, &out.FieldRef, c); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_v1_DownwardAPIVolumeSource(in v1.DownwardAPIVolumeSource, out *v1.DownwardAPIVolumeSource, c *conversion.Cloner) error {
|
||||
if in.Items != nil {
|
||||
out.Items = make([]v1.DownwardAPIVolumeFile, len(in.Items))
|
||||
for i := range in.Items {
|
||||
if err := deepCopy_v1_DownwardAPIVolumeFile(in.Items[i], &out.Items[i], c); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.Items = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_v1_EmptyDirVolumeSource(in v1.EmptyDirVolumeSource, out *v1.EmptyDirVolumeSource, c *conversion.Cloner) error {
|
||||
out.Medium = in.Medium
|
||||
return nil
|
||||
@@ -726,6 +748,14 @@ func deepCopy_v1_VolumeSource(in v1.VolumeSource, out *v1.VolumeSource, c *conve
|
||||
} else {
|
||||
out.CephFS = nil
|
||||
}
|
||||
if in.DownwardAPI != nil {
|
||||
out.DownwardAPI = new(v1.DownwardAPIVolumeSource)
|
||||
if err := deepCopy_v1_DownwardAPIVolumeSource(*in.DownwardAPI, out.DownwardAPI, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.DownwardAPI = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -1113,6 +1143,8 @@ func init() {
|
||||
deepCopy_v1_CinderVolumeSource,
|
||||
deepCopy_v1_Container,
|
||||
deepCopy_v1_ContainerPort,
|
||||
deepCopy_v1_DownwardAPIVolumeFile,
|
||||
deepCopy_v1_DownwardAPIVolumeSource,
|
||||
deepCopy_v1_EmptyDirVolumeSource,
|
||||
deepCopy_v1_EnvVar,
|
||||
deepCopy_v1_EnvVarSource,
|
||||
|
||||
Reference in New Issue
Block a user