本文整理匯總了Golang中k8s/io/kubernetes/pkg/api/v1.VolumeSource.ConfigMap方法的典型用法代碼示例。如果您正苦於以下問題:Golang VolumeSource.ConfigMap方法的具體用法?Golang VolumeSource.ConfigMap怎麽用?Golang VolumeSource.ConfigMap使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類k8s/io/kubernetes/pkg/api/v1.VolumeSource
的用法示例。
在下文中一共展示了VolumeSource.ConfigMap方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: deepCopy_v1_VolumeSource
//.........這裏部分代碼省略.........
out.NFS = nil
}
if in.ISCSI != nil {
out.ISCSI = new(v1.ISCSIVolumeSource)
if err := deepCopy_v1_ISCSIVolumeSource(*in.ISCSI, out.ISCSI, c); err != nil {
return err
}
} else {
out.ISCSI = nil
}
if in.Glusterfs != nil {
out.Glusterfs = new(v1.GlusterfsVolumeSource)
if err := deepCopy_v1_GlusterfsVolumeSource(*in.Glusterfs, out.Glusterfs, c); err != nil {
return err
}
} else {
out.Glusterfs = nil
}
if in.PersistentVolumeClaim != nil {
out.PersistentVolumeClaim = new(v1.PersistentVolumeClaimVolumeSource)
if err := deepCopy_v1_PersistentVolumeClaimVolumeSource(*in.PersistentVolumeClaim, out.PersistentVolumeClaim, c); err != nil {
return err
}
} else {
out.PersistentVolumeClaim = nil
}
if in.RBD != nil {
out.RBD = new(v1.RBDVolumeSource)
if err := deepCopy_v1_RBDVolumeSource(*in.RBD, out.RBD, c); err != nil {
return err
}
} else {
out.RBD = nil
}
if in.FlexVolume != nil {
out.FlexVolume = new(v1.FlexVolumeSource)
if err := deepCopy_v1_FlexVolumeSource(*in.FlexVolume, out.FlexVolume, c); err != nil {
return err
}
} else {
out.FlexVolume = nil
}
if in.Cinder != nil {
out.Cinder = new(v1.CinderVolumeSource)
if err := deepCopy_v1_CinderVolumeSource(*in.Cinder, out.Cinder, c); err != nil {
return err
}
} else {
out.Cinder = nil
}
if in.CephFS != nil {
out.CephFS = new(v1.CephFSVolumeSource)
if err := deepCopy_v1_CephFSVolumeSource(*in.CephFS, out.CephFS, c); err != nil {
return err
}
} else {
out.CephFS = nil
}
if in.Flocker != nil {
out.Flocker = new(v1.FlockerVolumeSource)
if err := deepCopy_v1_FlockerVolumeSource(*in.Flocker, out.Flocker, c); err != nil {
return err
}
} else {
out.Flocker = 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
}
if in.FC != nil {
out.FC = new(v1.FCVolumeSource)
if err := deepCopy_v1_FCVolumeSource(*in.FC, out.FC, c); err != nil {
return err
}
} else {
out.FC = nil
}
if in.AzureFile != nil {
out.AzureFile = new(v1.AzureFileVolumeSource)
if err := deepCopy_v1_AzureFileVolumeSource(*in.AzureFile, out.AzureFile, c); err != nil {
return err
}
} else {
out.AzureFile = nil
}
if in.ConfigMap != nil {
out.ConfigMap = new(v1.ConfigMapVolumeSource)
if err := deepCopy_v1_ConfigMapVolumeSource(*in.ConfigMap, out.ConfigMap, c); err != nil {
return err
}
} else {
out.ConfigMap = nil
}
return nil
}