zz_generated.deepcopy.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. //go:build !ignore_autogenerated
  2. /*
  3. Copyright 2026 LocoStack.
  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. // Code generated by controller-gen. DO NOT EDIT.
  15. package v1alpha1
  16. import (
  17. "k8s.io/api/core/v1"
  18. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. )
  21. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  22. func (in *Component) DeepCopyInto(out *Component) {
  23. *out = *in
  24. out.TypeMeta = in.TypeMeta
  25. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  26. in.Spec.DeepCopyInto(&out.Spec)
  27. in.Status.DeepCopyInto(&out.Status)
  28. }
  29. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
  30. func (in *Component) DeepCopy() *Component {
  31. if in == nil {
  32. return nil
  33. }
  34. out := new(Component)
  35. in.DeepCopyInto(out)
  36. return out
  37. }
  38. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  39. func (in *Component) DeepCopyObject() runtime.Object {
  40. if c := in.DeepCopy(); c != nil {
  41. return c
  42. }
  43. return nil
  44. }
  45. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  46. func (in *ComponentList) DeepCopyInto(out *ComponentList) {
  47. *out = *in
  48. out.TypeMeta = in.TypeMeta
  49. in.ListMeta.DeepCopyInto(&out.ListMeta)
  50. if in.Items != nil {
  51. in, out := &in.Items, &out.Items
  52. *out = make([]Component, len(*in))
  53. for i := range *in {
  54. (*in)[i].DeepCopyInto(&(*out)[i])
  55. }
  56. }
  57. }
  58. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentList.
  59. func (in *ComponentList) DeepCopy() *ComponentList {
  60. if in == nil {
  61. return nil
  62. }
  63. out := new(ComponentList)
  64. in.DeepCopyInto(out)
  65. return out
  66. }
  67. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  68. func (in *ComponentList) DeepCopyObject() runtime.Object {
  69. if c := in.DeepCopy(); c != nil {
  70. return c
  71. }
  72. return nil
  73. }
  74. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  75. func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec) {
  76. *out = *in
  77. if in.Template != nil {
  78. in, out := &in.Template, &out.Template
  79. *out = new(Template)
  80. (*in).DeepCopyInto(*out)
  81. }
  82. if in.Variables != nil {
  83. in, out := &in.Variables, &out.Variables
  84. *out = make(map[string]string, len(*in))
  85. for key, val := range *in {
  86. (*out)[key] = val
  87. }
  88. }
  89. if in.Dependencies != nil {
  90. in, out := &in.Dependencies, &out.Dependencies
  91. *out = make([]v1.ObjectReference, len(*in))
  92. copy(*out, *in)
  93. }
  94. }
  95. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSpec.
  96. func (in *ComponentSpec) DeepCopy() *ComponentSpec {
  97. if in == nil {
  98. return nil
  99. }
  100. out := new(ComponentSpec)
  101. in.DeepCopyInto(out)
  102. return out
  103. }
  104. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  105. func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus) {
  106. *out = *in
  107. if in.Dependencies != nil {
  108. in, out := &in.Dependencies, &out.Dependencies
  109. *out = make(map[string]map[string]int64, len(*in))
  110. for key, val := range *in {
  111. var outVal map[string]int64
  112. if val == nil {
  113. (*out)[key] = nil
  114. } else {
  115. inVal := (*in)[key]
  116. in, out := &inVal, &outVal
  117. *out = make(map[string]int64, len(*in))
  118. for key, val := range *in {
  119. (*out)[key] = val
  120. }
  121. }
  122. (*out)[key] = outVal
  123. }
  124. }
  125. if in.Conditions != nil {
  126. in, out := &in.Conditions, &out.Conditions
  127. *out = make([]metav1.Condition, len(*in))
  128. for i := range *in {
  129. (*in)[i].DeepCopyInto(&(*out)[i])
  130. }
  131. }
  132. }
  133. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
  134. func (in *ComponentStatus) DeepCopy() *ComponentStatus {
  135. if in == nil {
  136. return nil
  137. }
  138. out := new(ComponentStatus)
  139. in.DeepCopyInto(out)
  140. return out
  141. }
  142. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  143. func (in *ConditionalArgs) DeepCopyInto(out *ConditionalArgs) {
  144. *out = *in
  145. if in.Args != nil {
  146. in, out := &in.Args, &out.Args
  147. *out = make([]string, len(*in))
  148. copy(*out, *in)
  149. }
  150. }
  151. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionalArgs.
  152. func (in *ConditionalArgs) DeepCopy() *ConditionalArgs {
  153. if in == nil {
  154. return nil
  155. }
  156. out := new(ConditionalArgs)
  157. in.DeepCopyInto(out)
  158. return out
  159. }
  160. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  161. func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec) {
  162. *out = *in
  163. if in.Command != nil {
  164. in, out := &in.Command, &out.Command
  165. *out = make([]string, len(*in))
  166. copy(*out, *in)
  167. }
  168. if in.Args != nil {
  169. in, out := &in.Args, &out.Args
  170. *out = make([]string, len(*in))
  171. copy(*out, *in)
  172. }
  173. if in.ExtraArgs != nil {
  174. in, out := &in.ExtraArgs, &out.ExtraArgs
  175. *out = make([]string, len(*in))
  176. copy(*out, *in)
  177. }
  178. if in.ConditionalArgs != nil {
  179. in, out := &in.ConditionalArgs, &out.ConditionalArgs
  180. *out = make([]ConditionalArgs, len(*in))
  181. for i := range *in {
  182. (*in)[i].DeepCopyInto(&(*out)[i])
  183. }
  184. }
  185. if in.Env != nil {
  186. in, out := &in.Env, &out.Env
  187. *out = make([]v1.EnvVar, len(*in))
  188. for i := range *in {
  189. (*in)[i].DeepCopyInto(&(*out)[i])
  190. }
  191. }
  192. if in.EnvFrom != nil {
  193. in, out := &in.EnvFrom, &out.EnvFrom
  194. *out = make([]v1.EnvFromSource, len(*in))
  195. for i := range *in {
  196. (*in)[i].DeepCopyInto(&(*out)[i])
  197. }
  198. }
  199. if in.VolumeMounts != nil {
  200. in, out := &in.VolumeMounts, &out.VolumeMounts
  201. *out = make([]v1.VolumeMount, len(*in))
  202. for i := range *in {
  203. (*in)[i].DeepCopyInto(&(*out)[i])
  204. }
  205. }
  206. }
  207. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeSpec.
  208. func (in *RuntimeSpec) DeepCopy() *RuntimeSpec {
  209. if in == nil {
  210. return nil
  211. }
  212. out := new(RuntimeSpec)
  213. in.DeepCopyInto(out)
  214. return out
  215. }
  216. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  217. func (in *Template) DeepCopyInto(out *Template) {
  218. *out = *in
  219. in.Metadata.DeepCopyInto(&out.Metadata)
  220. in.Spec.DeepCopyInto(&out.Spec)
  221. }
  222. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
  223. func (in *Template) DeepCopy() *Template {
  224. if in == nil {
  225. return nil
  226. }
  227. out := new(Template)
  228. in.DeepCopyInto(out)
  229. return out
  230. }
  231. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  232. func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec) {
  233. *out = *in
  234. in.Runtime.DeepCopyInto(&out.Runtime)
  235. if in.Volumes != nil {
  236. in, out := &in.Volumes, &out.Volumes
  237. *out = make([]v1.Volume, len(*in))
  238. for i := range *in {
  239. (*in)[i].DeepCopyInto(&(*out)[i])
  240. }
  241. }
  242. in.Resources.DeepCopyInto(&out.Resources)
  243. if in.NodeSelector != nil {
  244. in, out := &in.NodeSelector, &out.NodeSelector
  245. *out = make(map[string]string, len(*in))
  246. for key, val := range *in {
  247. (*out)[key] = val
  248. }
  249. }
  250. if in.Affinity != nil {
  251. in, out := &in.Affinity, &out.Affinity
  252. *out = new(v1.Affinity)
  253. (*in).DeepCopyInto(*out)
  254. }
  255. if in.Tolerations != nil {
  256. in, out := &in.Tolerations, &out.Tolerations
  257. *out = make([]v1.Toleration, len(*in))
  258. for i := range *in {
  259. (*in)[i].DeepCopyInto(&(*out)[i])
  260. }
  261. }
  262. if in.TopologySpreadConstraints != nil {
  263. in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints
  264. *out = make([]v1.TopologySpreadConstraint, len(*in))
  265. for i := range *in {
  266. (*in)[i].DeepCopyInto(&(*out)[i])
  267. }
  268. }
  269. if in.SecurityContext != nil {
  270. in, out := &in.SecurityContext, &out.SecurityContext
  271. *out = new(v1.PodSecurityContext)
  272. (*in).DeepCopyInto(*out)
  273. }
  274. }
  275. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateSpec.
  276. func (in *TemplateSpec) DeepCopy() *TemplateSpec {
  277. if in == nil {
  278. return nil
  279. }
  280. out := new(TemplateSpec)
  281. in.DeepCopyInto(out)
  282. return out
  283. }