zz_generated.deepcopy.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2016 The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // This file was autogenerated by deepcopy-gen. Do not edit it manually!
  15. package v1alpha1
  16. import (
  17. conversion "k8s.io/kubernetes/pkg/conversion"
  18. runtime "k8s.io/kubernetes/pkg/runtime"
  19. reflect "reflect"
  20. )
  21. func init() {
  22. SchemeBuilder.Register(RegisterDeepCopies)
  23. }
  24. // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
  25. // to allow building arbitrary schemes.
  26. func RegisterDeepCopies(scheme *runtime.Scheme) error {
  27. return scheme.AddGeneratedDeepCopyFuncs(
  28. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})},
  29. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})},
  31. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})},
  32. )
  33. }
  34. func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error {
  35. {
  36. in := in.(*KubeProxyConfiguration)
  37. out := out.(*KubeProxyConfiguration)
  38. out.TypeMeta = in.TypeMeta
  39. out.BindAddress = in.BindAddress
  40. out.ClusterCIDR = in.ClusterCIDR
  41. out.HealthzBindAddress = in.HealthzBindAddress
  42. out.HealthzPort = in.HealthzPort
  43. out.HostnameOverride = in.HostnameOverride
  44. if in.IPTablesMasqueradeBit != nil {
  45. in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
  46. *out = new(int32)
  47. **out = **in
  48. } else {
  49. out.IPTablesMasqueradeBit = nil
  50. }
  51. out.IPTablesSyncPeriod = in.IPTablesSyncPeriod
  52. out.KubeconfigPath = in.KubeconfigPath
  53. out.MasqueradeAll = in.MasqueradeAll
  54. out.Master = in.Master
  55. if in.OOMScoreAdj != nil {
  56. in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
  57. *out = new(int32)
  58. **out = **in
  59. } else {
  60. out.OOMScoreAdj = nil
  61. }
  62. out.Mode = in.Mode
  63. out.PortRange = in.PortRange
  64. out.ResourceContainer = in.ResourceContainer
  65. out.UDPIdleTimeout = in.UDPIdleTimeout
  66. out.ConntrackMax = in.ConntrackMax
  67. out.ConntrackMaxPerCore = in.ConntrackMaxPerCore
  68. out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout
  69. return nil
  70. }
  71. }
  72. func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error {
  73. {
  74. in := in.(*KubeSchedulerConfiguration)
  75. out := out.(*KubeSchedulerConfiguration)
  76. out.TypeMeta = in.TypeMeta
  77. out.Port = in.Port
  78. out.Address = in.Address
  79. out.AlgorithmProvider = in.AlgorithmProvider
  80. out.PolicyConfigFile = in.PolicyConfigFile
  81. if in.EnableProfiling != nil {
  82. in, out := &in.EnableProfiling, &out.EnableProfiling
  83. *out = new(bool)
  84. **out = **in
  85. } else {
  86. out.EnableProfiling = nil
  87. }
  88. out.ContentType = in.ContentType
  89. out.KubeAPIQPS = in.KubeAPIQPS
  90. out.KubeAPIBurst = in.KubeAPIBurst
  91. out.SchedulerName = in.SchedulerName
  92. out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight
  93. out.FailureDomains = in.FailureDomains
  94. if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil {
  95. return err
  96. }
  97. return nil
  98. }
  99. }
  100. func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error {
  101. {
  102. in := in.(*KubeletConfiguration)
  103. out := out.(*KubeletConfiguration)
  104. out.TypeMeta = in.TypeMeta
  105. out.PodManifestPath = in.PodManifestPath
  106. out.SyncFrequency = in.SyncFrequency
  107. out.FileCheckFrequency = in.FileCheckFrequency
  108. out.HTTPCheckFrequency = in.HTTPCheckFrequency
  109. out.ManifestURL = in.ManifestURL
  110. out.ManifestURLHeader = in.ManifestURLHeader
  111. if in.EnableServer != nil {
  112. in, out := &in.EnableServer, &out.EnableServer
  113. *out = new(bool)
  114. **out = **in
  115. } else {
  116. out.EnableServer = nil
  117. }
  118. out.Address = in.Address
  119. out.Port = in.Port
  120. out.ReadOnlyPort = in.ReadOnlyPort
  121. out.TLSCertFile = in.TLSCertFile
  122. out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
  123. out.CertDirectory = in.CertDirectory
  124. out.HostnameOverride = in.HostnameOverride
  125. out.PodInfraContainerImage = in.PodInfraContainerImage
  126. out.DockerEndpoint = in.DockerEndpoint
  127. out.RootDirectory = in.RootDirectory
  128. out.SeccompProfileRoot = in.SeccompProfileRoot
  129. if in.AllowPrivileged != nil {
  130. in, out := &in.AllowPrivileged, &out.AllowPrivileged
  131. *out = new(bool)
  132. **out = **in
  133. } else {
  134. out.AllowPrivileged = nil
  135. }
  136. if in.HostNetworkSources != nil {
  137. in, out := &in.HostNetworkSources, &out.HostNetworkSources
  138. *out = make([]string, len(*in))
  139. copy(*out, *in)
  140. } else {
  141. out.HostNetworkSources = nil
  142. }
  143. if in.HostPIDSources != nil {
  144. in, out := &in.HostPIDSources, &out.HostPIDSources
  145. *out = make([]string, len(*in))
  146. copy(*out, *in)
  147. } else {
  148. out.HostPIDSources = nil
  149. }
  150. if in.HostIPCSources != nil {
  151. in, out := &in.HostIPCSources, &out.HostIPCSources
  152. *out = make([]string, len(*in))
  153. copy(*out, *in)
  154. } else {
  155. out.HostIPCSources = nil
  156. }
  157. if in.RegistryPullQPS != nil {
  158. in, out := &in.RegistryPullQPS, &out.RegistryPullQPS
  159. *out = new(int32)
  160. **out = **in
  161. } else {
  162. out.RegistryPullQPS = nil
  163. }
  164. out.RegistryBurst = in.RegistryBurst
  165. if in.EventRecordQPS != nil {
  166. in, out := &in.EventRecordQPS, &out.EventRecordQPS
  167. *out = new(int32)
  168. **out = **in
  169. } else {
  170. out.EventRecordQPS = nil
  171. }
  172. out.EventBurst = in.EventBurst
  173. if in.EnableDebuggingHandlers != nil {
  174. in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers
  175. *out = new(bool)
  176. **out = **in
  177. } else {
  178. out.EnableDebuggingHandlers = nil
  179. }
  180. out.MinimumGCAge = in.MinimumGCAge
  181. out.MaxPerPodContainerCount = in.MaxPerPodContainerCount
  182. if in.MaxContainerCount != nil {
  183. in, out := &in.MaxContainerCount, &out.MaxContainerCount
  184. *out = new(int32)
  185. **out = **in
  186. } else {
  187. out.MaxContainerCount = nil
  188. }
  189. out.CAdvisorPort = in.CAdvisorPort
  190. out.HealthzPort = in.HealthzPort
  191. out.HealthzBindAddress = in.HealthzBindAddress
  192. if in.OOMScoreAdj != nil {
  193. in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
  194. *out = new(int32)
  195. **out = **in
  196. } else {
  197. out.OOMScoreAdj = nil
  198. }
  199. if in.RegisterNode != nil {
  200. in, out := &in.RegisterNode, &out.RegisterNode
  201. *out = new(bool)
  202. **out = **in
  203. } else {
  204. out.RegisterNode = nil
  205. }
  206. out.ClusterDomain = in.ClusterDomain
  207. out.MasterServiceNamespace = in.MasterServiceNamespace
  208. out.ClusterDNS = in.ClusterDNS
  209. out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout
  210. out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
  211. out.ImageMinimumGCAge = in.ImageMinimumGCAge
  212. if in.ImageGCHighThresholdPercent != nil {
  213. in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent
  214. *out = new(int32)
  215. **out = **in
  216. } else {
  217. out.ImageGCHighThresholdPercent = nil
  218. }
  219. if in.ImageGCLowThresholdPercent != nil {
  220. in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent
  221. *out = new(int32)
  222. **out = **in
  223. } else {
  224. out.ImageGCLowThresholdPercent = nil
  225. }
  226. out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB
  227. out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
  228. out.NetworkPluginName = in.NetworkPluginName
  229. out.NetworkPluginDir = in.NetworkPluginDir
  230. out.NetworkPluginMTU = in.NetworkPluginMTU
  231. out.VolumePluginDir = in.VolumePluginDir
  232. out.CloudProvider = in.CloudProvider
  233. out.CloudConfigFile = in.CloudConfigFile
  234. out.KubeletCgroups = in.KubeletCgroups
  235. out.RuntimeCgroups = in.RuntimeCgroups
  236. out.SystemCgroups = in.SystemCgroups
  237. out.CgroupRoot = in.CgroupRoot
  238. if in.CgroupsPerQOS != nil {
  239. in, out := &in.CgroupsPerQOS, &out.CgroupsPerQOS
  240. *out = new(bool)
  241. **out = **in
  242. } else {
  243. out.CgroupsPerQOS = nil
  244. }
  245. out.ContainerRuntime = in.ContainerRuntime
  246. out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint
  247. out.RemoteImageEndpoint = in.RemoteImageEndpoint
  248. out.RuntimeRequestTimeout = in.RuntimeRequestTimeout
  249. out.RktPath = in.RktPath
  250. out.RktAPIEndpoint = in.RktAPIEndpoint
  251. out.RktStage1Image = in.RktStage1Image
  252. if in.LockFilePath != nil {
  253. in, out := &in.LockFilePath, &out.LockFilePath
  254. *out = new(string)
  255. **out = **in
  256. } else {
  257. out.LockFilePath = nil
  258. }
  259. out.ExitOnLockContention = in.ExitOnLockContention
  260. if in.ConfigureCBR0 != nil {
  261. in, out := &in.ConfigureCBR0, &out.ConfigureCBR0
  262. *out = new(bool)
  263. **out = **in
  264. } else {
  265. out.ConfigureCBR0 = nil
  266. }
  267. out.HairpinMode = in.HairpinMode
  268. out.BabysitDaemons = in.BabysitDaemons
  269. out.MaxPods = in.MaxPods
  270. out.NvidiaGPUs = in.NvidiaGPUs
  271. out.DockerExecHandlerName = in.DockerExecHandlerName
  272. out.PodCIDR = in.PodCIDR
  273. out.ResolverConfig = in.ResolverConfig
  274. if in.CPUCFSQuota != nil {
  275. in, out := &in.CPUCFSQuota, &out.CPUCFSQuota
  276. *out = new(bool)
  277. **out = **in
  278. } else {
  279. out.CPUCFSQuota = nil
  280. }
  281. if in.Containerized != nil {
  282. in, out := &in.Containerized, &out.Containerized
  283. *out = new(bool)
  284. **out = **in
  285. } else {
  286. out.Containerized = nil
  287. }
  288. out.MaxOpenFiles = in.MaxOpenFiles
  289. if in.ReconcileCIDR != nil {
  290. in, out := &in.ReconcileCIDR, &out.ReconcileCIDR
  291. *out = new(bool)
  292. **out = **in
  293. } else {
  294. out.ReconcileCIDR = nil
  295. }
  296. if in.RegisterSchedulable != nil {
  297. in, out := &in.RegisterSchedulable, &out.RegisterSchedulable
  298. *out = new(bool)
  299. **out = **in
  300. } else {
  301. out.RegisterSchedulable = nil
  302. }
  303. out.ContentType = in.ContentType
  304. if in.KubeAPIQPS != nil {
  305. in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
  306. *out = new(int32)
  307. **out = **in
  308. } else {
  309. out.KubeAPIQPS = nil
  310. }
  311. out.KubeAPIBurst = in.KubeAPIBurst
  312. if in.SerializeImagePulls != nil {
  313. in, out := &in.SerializeImagePulls, &out.SerializeImagePulls
  314. *out = new(bool)
  315. **out = **in
  316. } else {
  317. out.SerializeImagePulls = nil
  318. }
  319. out.ExperimentalFlannelOverlay = in.ExperimentalFlannelOverlay
  320. out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency
  321. out.NodeIP = in.NodeIP
  322. if in.NodeLabels != nil {
  323. in, out := &in.NodeLabels, &out.NodeLabels
  324. *out = make(map[string]string)
  325. for key, val := range *in {
  326. (*out)[key] = val
  327. }
  328. } else {
  329. out.NodeLabels = nil
  330. }
  331. out.NonMasqueradeCIDR = in.NonMasqueradeCIDR
  332. out.EnableCustomMetrics = in.EnableCustomMetrics
  333. if in.EvictionHard != nil {
  334. in, out := &in.EvictionHard, &out.EvictionHard
  335. *out = new(string)
  336. **out = **in
  337. } else {
  338. out.EvictionHard = nil
  339. }
  340. out.EvictionSoft = in.EvictionSoft
  341. out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod
  342. out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod
  343. out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod
  344. out.EvictionMinimumReclaim = in.EvictionMinimumReclaim
  345. out.PodsPerCore = in.PodsPerCore
  346. if in.EnableControllerAttachDetach != nil {
  347. in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach
  348. *out = new(bool)
  349. **out = **in
  350. } else {
  351. out.EnableControllerAttachDetach = nil
  352. }
  353. if in.SystemReserved != nil {
  354. in, out := &in.SystemReserved, &out.SystemReserved
  355. *out = make(map[string]string)
  356. for key, val := range *in {
  357. (*out)[key] = val
  358. }
  359. } else {
  360. out.SystemReserved = nil
  361. }
  362. if in.KubeReserved != nil {
  363. in, out := &in.KubeReserved, &out.KubeReserved
  364. *out = make(map[string]string)
  365. for key, val := range *in {
  366. (*out)[key] = val
  367. }
  368. } else {
  369. out.KubeReserved = nil
  370. }
  371. out.ProtectKernelDefaults = in.ProtectKernelDefaults
  372. if in.MakeIPTablesUtilChains != nil {
  373. in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains
  374. *out = new(bool)
  375. **out = **in
  376. } else {
  377. out.MakeIPTablesUtilChains = nil
  378. }
  379. if in.IPTablesMasqueradeBit != nil {
  380. in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
  381. *out = new(int32)
  382. **out = **in
  383. } else {
  384. out.IPTablesMasqueradeBit = nil
  385. }
  386. if in.IPTablesDropBit != nil {
  387. in, out := &in.IPTablesDropBit, &out.IPTablesDropBit
  388. *out = new(int32)
  389. **out = **in
  390. } else {
  391. out.IPTablesDropBit = nil
  392. }
  393. if in.AllowedUnsafeSysctls != nil {
  394. in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
  395. *out = make([]string, len(*in))
  396. copy(*out, *in)
  397. } else {
  398. out.AllowedUnsafeSysctls = nil
  399. }
  400. return nil
  401. }
  402. }
  403. func DeepCopy_v1alpha1_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error {
  404. {
  405. in := in.(*LeaderElectionConfiguration)
  406. out := out.(*LeaderElectionConfiguration)
  407. if in.LeaderElect != nil {
  408. in, out := &in.LeaderElect, &out.LeaderElect
  409. *out = new(bool)
  410. **out = **in
  411. } else {
  412. out.LeaderElect = nil
  413. }
  414. out.LeaseDuration = in.LeaseDuration
  415. out.RenewDeadline = in.RenewDeadline
  416. out.RetryPeriod = in.RetryPeriod
  417. return nil
  418. }
  419. }