Kubernetes RabbitMQ operator https://github.com/tekliner/rabbitmq-operator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

253 lines
6.9 KiB

  1. // +build !ignore_autogenerated
  2. // Code generated by operator-sdk. DO NOT EDIT.
  3. package v1
  4. import (
  5. corev1 "k8s.io/api/core/v1"
  6. metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  7. runtime "k8s.io/apimachinery/pkg/runtime"
  8. )
  9. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  10. func (in *Rabbitmq) DeepCopyInto(out *Rabbitmq) {
  11. *out = *in
  12. out.TypeMeta = in.TypeMeta
  13. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  14. in.Spec.DeepCopyInto(&out.Spec)
  15. out.Status = in.Status
  16. return
  17. }
  18. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rabbitmq.
  19. func (in *Rabbitmq) DeepCopy() *Rabbitmq {
  20. if in == nil {
  21. return nil
  22. }
  23. out := new(Rabbitmq)
  24. in.DeepCopyInto(out)
  25. return out
  26. }
  27. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  28. func (in *Rabbitmq) DeepCopyObject() runtime.Object {
  29. if c := in.DeepCopy(); c != nil {
  30. return c
  31. }
  32. return nil
  33. }
  34. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  35. func (in *RabbitmqAuth) DeepCopyInto(out *RabbitmqAuth) {
  36. *out = *in
  37. if in.Config != nil {
  38. in, out := &in.Config, &out.Config
  39. *out = make([]string, len(*in))
  40. copy(*out, *in)
  41. }
  42. return
  43. }
  44. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqAuth.
  45. func (in *RabbitmqAuth) DeepCopy() *RabbitmqAuth {
  46. if in == nil {
  47. return nil
  48. }
  49. out := new(RabbitmqAuth)
  50. in.DeepCopyInto(out)
  51. return out
  52. }
  53. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  54. func (in *RabbitmqImage) DeepCopyInto(out *RabbitmqImage) {
  55. *out = *in
  56. return
  57. }
  58. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqImage.
  59. func (in *RabbitmqImage) DeepCopy() *RabbitmqImage {
  60. if in == nil {
  61. return nil
  62. }
  63. out := new(RabbitmqImage)
  64. in.DeepCopyInto(out)
  65. return out
  66. }
  67. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  68. func (in *RabbitmqList) DeepCopyInto(out *RabbitmqList) {
  69. *out = *in
  70. out.TypeMeta = in.TypeMeta
  71. out.ListMeta = in.ListMeta
  72. if in.Items != nil {
  73. in, out := &in.Items, &out.Items
  74. *out = make([]Rabbitmq, len(*in))
  75. for i := range *in {
  76. (*in)[i].DeepCopyInto(&(*out)[i])
  77. }
  78. }
  79. return
  80. }
  81. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqList.
  82. func (in *RabbitmqList) DeepCopy() *RabbitmqList {
  83. if in == nil {
  84. return nil
  85. }
  86. out := new(RabbitmqList)
  87. in.DeepCopyInto(out)
  88. return out
  89. }
  90. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  91. func (in *RabbitmqList) DeepCopyObject() runtime.Object {
  92. if c := in.DeepCopy(); c != nil {
  93. return c
  94. }
  95. return nil
  96. }
  97. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  98. func (in *RabbitmqPolicy) DeepCopyInto(out *RabbitmqPolicy) {
  99. *out = *in
  100. out.Definition = in.Definition
  101. return
  102. }
  103. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqPolicy.
  104. func (in *RabbitmqPolicy) DeepCopy() *RabbitmqPolicy {
  105. if in == nil {
  106. return nil
  107. }
  108. out := new(RabbitmqPolicy)
  109. in.DeepCopyInto(out)
  110. return out
  111. }
  112. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  113. func (in *RabbitmqPolicyDefinition) DeepCopyInto(out *RabbitmqPolicyDefinition) {
  114. *out = *in
  115. return
  116. }
  117. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqPolicyDefinition.
  118. func (in *RabbitmqPolicyDefinition) DeepCopy() *RabbitmqPolicyDefinition {
  119. if in == nil {
  120. return nil
  121. }
  122. out := new(RabbitmqPolicyDefinition)
  123. in.DeepCopyInto(out)
  124. return out
  125. }
  126. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  127. func (in *RabbitmqSSL) DeepCopyInto(out *RabbitmqSSL) {
  128. *out = *in
  129. return
  130. }
  131. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSSL.
  132. func (in *RabbitmqSSL) DeepCopy() *RabbitmqSSL {
  133. if in == nil {
  134. return nil
  135. }
  136. out := new(RabbitmqSSL)
  137. in.DeepCopyInto(out)
  138. return out
  139. }
  140. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  141. func (in *RabbitmqSpec) DeepCopyInto(out *RabbitmqSpec) {
  142. *out = *in
  143. in.RabbitmqPdb.DeepCopyInto(&out.RabbitmqPdb)
  144. out.RabbitmqSSL = in.RabbitmqSSL
  145. in.RabbitmqAuth.DeepCopyInto(&out.RabbitmqAuth)
  146. if in.RabbitmqPolicies != nil {
  147. in, out := &in.RabbitmqPolicies, &out.RabbitmqPolicies
  148. *out = make([]RabbitmqPolicy, len(*in))
  149. copy(*out, *in)
  150. }
  151. if in.RabbitmqPlugins != nil {
  152. in, out := &in.RabbitmqPlugins, &out.RabbitmqPlugins
  153. *out = make([]string, len(*in))
  154. copy(*out, *in)
  155. }
  156. if in.K8SENV != nil {
  157. in, out := &in.K8SENV, &out.K8SENV
  158. *out = make([]corev1.EnvVar, len(*in))
  159. for i := range *in {
  160. (*in)[i].DeepCopyInto(&(*out)[i])
  161. }
  162. }
  163. out.K8SImage = in.K8SImage
  164. if in.K8SLabels != nil {
  165. in, out := &in.K8SLabels, &out.K8SLabels
  166. *out = make([]metav1.LabelSelector, len(*in))
  167. for i := range *in {
  168. (*in)[i].DeepCopyInto(&(*out)[i])
  169. }
  170. }
  171. out.RabbitmqVolumeSize = in.RabbitmqVolumeSize.DeepCopy()
  172. if in.RabbitmqPodRequests != nil {
  173. in, out := &in.RabbitmqPodRequests, &out.RabbitmqPodRequests
  174. *out = make(corev1.ResourceList, len(*in))
  175. for key, val := range *in {
  176. (*out)[key] = val.DeepCopy()
  177. }
  178. }
  179. if in.RabbitmqPodLimits != nil {
  180. in, out := &in.RabbitmqPodLimits, &out.RabbitmqPodLimits
  181. *out = make(corev1.ResourceList, len(*in))
  182. for key, val := range *in {
  183. (*out)[key] = val.DeepCopy()
  184. }
  185. }
  186. if in.RabbitmqAffinity != nil {
  187. in, out := &in.RabbitmqAffinity, &out.RabbitmqAffinity
  188. *out = new(corev1.Affinity)
  189. (*in).DeepCopyInto(*out)
  190. }
  191. if in.NodeSelector != nil {
  192. in, out := &in.NodeSelector, &out.NodeSelector
  193. *out = make(map[string]string, len(*in))
  194. for key, val := range *in {
  195. (*out)[key] = val
  196. }
  197. }
  198. if in.Tolerations != nil {
  199. in, out := &in.Tolerations, &out.Tolerations
  200. *out = make([]corev1.Toleration, len(*in))
  201. for i := range *in {
  202. (*in)[i].DeepCopyInto(&(*out)[i])
  203. }
  204. }
  205. return
  206. }
  207. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSpec.
  208. func (in *RabbitmqSpec) DeepCopy() *RabbitmqSpec {
  209. if in == nil {
  210. return nil
  211. }
  212. out := new(RabbitmqSpec)
  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 *RabbitmqStatus) DeepCopyInto(out *RabbitmqStatus) {
  218. *out = *in
  219. return
  220. }
  221. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqStatus.
  222. func (in *RabbitmqStatus) DeepCopy() *RabbitmqStatus {
  223. if in == nil {
  224. return nil
  225. }
  226. out := new(RabbitmqStatus)
  227. in.DeepCopyInto(out)
  228. return out
  229. }