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.
 
 
 

252 lines
6.8 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. out.RabbitmqSSL = in.RabbitmqSSL
  144. in.RabbitmqAuth.DeepCopyInto(&out.RabbitmqAuth)
  145. if in.RabbitmqPolicies != nil {
  146. in, out := &in.RabbitmqPolicies, &out.RabbitmqPolicies
  147. *out = make([]RabbitmqPolicy, len(*in))
  148. copy(*out, *in)
  149. }
  150. if in.RabbitmqPlugins != nil {
  151. in, out := &in.RabbitmqPlugins, &out.RabbitmqPlugins
  152. *out = make([]string, len(*in))
  153. copy(*out, *in)
  154. }
  155. if in.K8SENV != nil {
  156. in, out := &in.K8SENV, &out.K8SENV
  157. *out = make([]corev1.EnvVar, len(*in))
  158. for i := range *in {
  159. (*in)[i].DeepCopyInto(&(*out)[i])
  160. }
  161. }
  162. out.K8SImage = in.K8SImage
  163. if in.K8SLabels != nil {
  164. in, out := &in.K8SLabels, &out.K8SLabels
  165. *out = make([]metav1.LabelSelector, len(*in))
  166. for i := range *in {
  167. (*in)[i].DeepCopyInto(&(*out)[i])
  168. }
  169. }
  170. out.RabbitmqVolumeSize = in.RabbitmqVolumeSize.DeepCopy()
  171. if in.RabbitmqPodRequests != nil {
  172. in, out := &in.RabbitmqPodRequests, &out.RabbitmqPodRequests
  173. *out = make(corev1.ResourceList, len(*in))
  174. for key, val := range *in {
  175. (*out)[key] = val.DeepCopy()
  176. }
  177. }
  178. if in.RabbitmqPodLimits != nil {
  179. in, out := &in.RabbitmqPodLimits, &out.RabbitmqPodLimits
  180. *out = make(corev1.ResourceList, len(*in))
  181. for key, val := range *in {
  182. (*out)[key] = val.DeepCopy()
  183. }
  184. }
  185. if in.RabbitmqAffinity != nil {
  186. in, out := &in.RabbitmqAffinity, &out.RabbitmqAffinity
  187. *out = new(corev1.Affinity)
  188. (*in).DeepCopyInto(*out)
  189. }
  190. if in.NodeSelector != nil {
  191. in, out := &in.NodeSelector, &out.NodeSelector
  192. *out = make(map[string]string, len(*in))
  193. for key, val := range *in {
  194. (*out)[key] = val
  195. }
  196. }
  197. if in.Tolerations != nil {
  198. in, out := &in.Tolerations, &out.Tolerations
  199. *out = make([]corev1.Toleration, len(*in))
  200. for i := range *in {
  201. (*in)[i].DeepCopyInto(&(*out)[i])
  202. }
  203. }
  204. return
  205. }
  206. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSpec.
  207. func (in *RabbitmqSpec) DeepCopy() *RabbitmqSpec {
  208. if in == nil {
  209. return nil
  210. }
  211. out := new(RabbitmqSpec)
  212. in.DeepCopyInto(out)
  213. return out
  214. }
  215. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  216. func (in *RabbitmqStatus) DeepCopyInto(out *RabbitmqStatus) {
  217. *out = *in
  218. return
  219. }
  220. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqStatus.
  221. func (in *RabbitmqStatus) DeepCopy() *RabbitmqStatus {
  222. if in == nil {
  223. return nil
  224. }
  225. out := new(RabbitmqStatus)
  226. in.DeepCopyInto(out)
  227. return out
  228. }