zz_generated.deepcopy.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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. if in.StackRef != nil {
  95. in, out := &in.StackRef, &out.StackRef
  96. *out = new(v1.LocalObjectReference)
  97. **out = **in
  98. }
  99. }
  100. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSpec.
  101. func (in *ComponentSpec) DeepCopy() *ComponentSpec {
  102. if in == nil {
  103. return nil
  104. }
  105. out := new(ComponentSpec)
  106. in.DeepCopyInto(out)
  107. return out
  108. }
  109. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  110. func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus) {
  111. *out = *in
  112. if in.Dependencies != nil {
  113. in, out := &in.Dependencies, &out.Dependencies
  114. *out = make(map[string]map[string]int64, len(*in))
  115. for key, val := range *in {
  116. var outVal map[string]int64
  117. if val == nil {
  118. (*out)[key] = nil
  119. } else {
  120. inVal := (*in)[key]
  121. in, out := &inVal, &outVal
  122. *out = make(map[string]int64, len(*in))
  123. for key, val := range *in {
  124. (*out)[key] = val
  125. }
  126. }
  127. (*out)[key] = outVal
  128. }
  129. }
  130. if in.Conditions != nil {
  131. in, out := &in.Conditions, &out.Conditions
  132. *out = make([]metav1.Condition, len(*in))
  133. for i := range *in {
  134. (*in)[i].DeepCopyInto(&(*out)[i])
  135. }
  136. }
  137. }
  138. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
  139. func (in *ComponentStatus) DeepCopy() *ComponentStatus {
  140. if in == nil {
  141. return nil
  142. }
  143. out := new(ComponentStatus)
  144. in.DeepCopyInto(out)
  145. return out
  146. }
  147. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  148. func (in *ConditionalArgs) DeepCopyInto(out *ConditionalArgs) {
  149. *out = *in
  150. if in.Args != nil {
  151. in, out := &in.Args, &out.Args
  152. *out = make([]string, len(*in))
  153. copy(*out, *in)
  154. }
  155. }
  156. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionalArgs.
  157. func (in *ConditionalArgs) DeepCopy() *ConditionalArgs {
  158. if in == nil {
  159. return nil
  160. }
  161. out := new(ConditionalArgs)
  162. in.DeepCopyInto(out)
  163. return out
  164. }
  165. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  166. func (in *OptionalComponent) DeepCopyInto(out *OptionalComponent) {
  167. *out = *in
  168. if in.Template != nil {
  169. in, out := &in.Template, &out.Template
  170. *out = new(Template)
  171. (*in).DeepCopyInto(*out)
  172. }
  173. }
  174. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OptionalComponent.
  175. func (in *OptionalComponent) DeepCopy() *OptionalComponent {
  176. if in == nil {
  177. return nil
  178. }
  179. out := new(OptionalComponent)
  180. in.DeepCopyInto(out)
  181. return out
  182. }
  183. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  184. func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec) {
  185. *out = *in
  186. if in.Command != nil {
  187. in, out := &in.Command, &out.Command
  188. *out = make([]string, len(*in))
  189. copy(*out, *in)
  190. }
  191. if in.Args != nil {
  192. in, out := &in.Args, &out.Args
  193. *out = make([]string, len(*in))
  194. copy(*out, *in)
  195. }
  196. if in.ExtraArgs != nil {
  197. in, out := &in.ExtraArgs, &out.ExtraArgs
  198. *out = make([]string, len(*in))
  199. copy(*out, *in)
  200. }
  201. if in.ConditionalArgs != nil {
  202. in, out := &in.ConditionalArgs, &out.ConditionalArgs
  203. *out = make([]ConditionalArgs, len(*in))
  204. for i := range *in {
  205. (*in)[i].DeepCopyInto(&(*out)[i])
  206. }
  207. }
  208. if in.Env != nil {
  209. in, out := &in.Env, &out.Env
  210. *out = make([]v1.EnvVar, len(*in))
  211. for i := range *in {
  212. (*in)[i].DeepCopyInto(&(*out)[i])
  213. }
  214. }
  215. if in.EnvFrom != nil {
  216. in, out := &in.EnvFrom, &out.EnvFrom
  217. *out = make([]v1.EnvFromSource, len(*in))
  218. for i := range *in {
  219. (*in)[i].DeepCopyInto(&(*out)[i])
  220. }
  221. }
  222. if in.VolumeMounts != nil {
  223. in, out := &in.VolumeMounts, &out.VolumeMounts
  224. *out = make([]v1.VolumeMount, len(*in))
  225. for i := range *in {
  226. (*in)[i].DeepCopyInto(&(*out)[i])
  227. }
  228. }
  229. }
  230. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeSpec.
  231. func (in *RuntimeSpec) DeepCopy() *RuntimeSpec {
  232. if in == nil {
  233. return nil
  234. }
  235. out := new(RuntimeSpec)
  236. in.DeepCopyInto(out)
  237. return out
  238. }
  239. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  240. func (in *Stack) DeepCopyInto(out *Stack) {
  241. *out = *in
  242. out.TypeMeta = in.TypeMeta
  243. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  244. in.Spec.DeepCopyInto(&out.Spec)
  245. in.Status.DeepCopyInto(&out.Status)
  246. }
  247. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stack.
  248. func (in *Stack) DeepCopy() *Stack {
  249. if in == nil {
  250. return nil
  251. }
  252. out := new(Stack)
  253. in.DeepCopyInto(out)
  254. return out
  255. }
  256. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  257. func (in *Stack) DeepCopyObject() runtime.Object {
  258. if c := in.DeepCopy(); c != nil {
  259. return c
  260. }
  261. return nil
  262. }
  263. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  264. func (in *StackComponentStatus) DeepCopyInto(out *StackComponentStatus) {
  265. *out = *in
  266. }
  267. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackComponentStatus.
  268. func (in *StackComponentStatus) DeepCopy() *StackComponentStatus {
  269. if in == nil {
  270. return nil
  271. }
  272. out := new(StackComponentStatus)
  273. in.DeepCopyInto(out)
  274. return out
  275. }
  276. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  277. func (in *StackList) DeepCopyInto(out *StackList) {
  278. *out = *in
  279. out.TypeMeta = in.TypeMeta
  280. in.ListMeta.DeepCopyInto(&out.ListMeta)
  281. if in.Items != nil {
  282. in, out := &in.Items, &out.Items
  283. *out = make([]Stack, len(*in))
  284. for i := range *in {
  285. (*in)[i].DeepCopyInto(&(*out)[i])
  286. }
  287. }
  288. }
  289. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackList.
  290. func (in *StackList) DeepCopy() *StackList {
  291. if in == nil {
  292. return nil
  293. }
  294. out := new(StackList)
  295. in.DeepCopyInto(out)
  296. return out
  297. }
  298. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  299. func (in *StackList) DeepCopyObject() runtime.Object {
  300. if c := in.DeepCopy(); c != nil {
  301. return c
  302. }
  303. return nil
  304. }
  305. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  306. func (in *StackSpec) DeepCopyInto(out *StackSpec) {
  307. *out = *in
  308. if in.SharedVolumes != nil {
  309. in, out := &in.SharedVolumes, &out.SharedVolumes
  310. *out = make([]string, len(*in))
  311. copy(*out, *in)
  312. }
  313. if in.Gateway != nil {
  314. in, out := &in.Gateway, &out.Gateway
  315. *out = new(OptionalComponent)
  316. (*in).DeepCopyInto(*out)
  317. }
  318. if in.VectorStore != nil {
  319. in, out := &in.VectorStore, &out.VectorStore
  320. *out = new(OptionalComponent)
  321. (*in).DeepCopyInto(*out)
  322. }
  323. if in.GraphStore != nil {
  324. in, out := &in.GraphStore, &out.GraphStore
  325. *out = new(OptionalComponent)
  326. (*in).DeepCopyInto(*out)
  327. }
  328. if in.Database != nil {
  329. in, out := &in.Database, &out.Database
  330. *out = new(OptionalComponent)
  331. (*in).DeepCopyInto(*out)
  332. }
  333. if in.Observability != nil {
  334. in, out := &in.Observability, &out.Observability
  335. *out = new(OptionalComponent)
  336. (*in).DeepCopyInto(*out)
  337. }
  338. }
  339. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec.
  340. func (in *StackSpec) DeepCopy() *StackSpec {
  341. if in == nil {
  342. return nil
  343. }
  344. out := new(StackSpec)
  345. in.DeepCopyInto(out)
  346. return out
  347. }
  348. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  349. func (in *StackStatus) DeepCopyInto(out *StackStatus) {
  350. *out = *in
  351. out.ComponentStatus = in.ComponentStatus
  352. if in.Conditions != nil {
  353. in, out := &in.Conditions, &out.Conditions
  354. *out = make([]metav1.Condition, len(*in))
  355. for i := range *in {
  356. (*in)[i].DeepCopyInto(&(*out)[i])
  357. }
  358. }
  359. }
  360. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackStatus.
  361. func (in *StackStatus) DeepCopy() *StackStatus {
  362. if in == nil {
  363. return nil
  364. }
  365. out := new(StackStatus)
  366. in.DeepCopyInto(out)
  367. return out
  368. }
  369. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  370. func (in *Template) DeepCopyInto(out *Template) {
  371. *out = *in
  372. in.Metadata.DeepCopyInto(&out.Metadata)
  373. in.Spec.DeepCopyInto(&out.Spec)
  374. }
  375. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
  376. func (in *Template) DeepCopy() *Template {
  377. if in == nil {
  378. return nil
  379. }
  380. out := new(Template)
  381. in.DeepCopyInto(out)
  382. return out
  383. }
  384. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  385. func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec) {
  386. *out = *in
  387. in.Runtime.DeepCopyInto(&out.Runtime)
  388. if in.Volumes != nil {
  389. in, out := &in.Volumes, &out.Volumes
  390. *out = make([]v1.Volume, len(*in))
  391. for i := range *in {
  392. (*in)[i].DeepCopyInto(&(*out)[i])
  393. }
  394. }
  395. in.Resources.DeepCopyInto(&out.Resources)
  396. if in.NodeSelector != nil {
  397. in, out := &in.NodeSelector, &out.NodeSelector
  398. *out = make(map[string]string, len(*in))
  399. for key, val := range *in {
  400. (*out)[key] = val
  401. }
  402. }
  403. if in.Affinity != nil {
  404. in, out := &in.Affinity, &out.Affinity
  405. *out = new(v1.Affinity)
  406. (*in).DeepCopyInto(*out)
  407. }
  408. if in.Tolerations != nil {
  409. in, out := &in.Tolerations, &out.Tolerations
  410. *out = make([]v1.Toleration, len(*in))
  411. for i := range *in {
  412. (*in)[i].DeepCopyInto(&(*out)[i])
  413. }
  414. }
  415. if in.TopologySpreadConstraints != nil {
  416. in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints
  417. *out = make([]v1.TopologySpreadConstraint, len(*in))
  418. for i := range *in {
  419. (*in)[i].DeepCopyInto(&(*out)[i])
  420. }
  421. }
  422. if in.SecurityContext != nil {
  423. in, out := &in.SecurityContext, &out.SecurityContext
  424. *out = new(v1.PodSecurityContext)
  425. (*in).DeepCopyInto(*out)
  426. }
  427. }
  428. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateSpec.
  429. func (in *TemplateSpec) DeepCopy() *TemplateSpec {
  430. if in == nil {
  431. return nil
  432. }
  433. out := new(TemplateSpec)
  434. in.DeepCopyInto(out)
  435. return out
  436. }