github.com/spotahome/redis-operator@v1.2.4/api/redisfailover/v1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // Code generated by deepcopy-gen. DO NOT EDIT. 5 6 package v1 7 8 import ( 9 corev1 "k8s.io/api/core/v1" 10 runtime "k8s.io/apimachinery/pkg/runtime" 11 ) 12 13 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 14 func (in *AuthSettings) DeepCopyInto(out *AuthSettings) { 15 *out = *in 16 return 17 } 18 19 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSettings. 20 func (in *AuthSettings) DeepCopy() *AuthSettings { 21 if in == nil { 22 return nil 23 } 24 out := new(AuthSettings) 25 in.DeepCopyInto(out) 26 return out 27 } 28 29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 30 func (in *BootstrapSettings) DeepCopyInto(out *BootstrapSettings) { 31 *out = *in 32 return 33 } 34 35 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapSettings. 36 func (in *BootstrapSettings) DeepCopy() *BootstrapSettings { 37 if in == nil { 38 return nil 39 } 40 out := new(BootstrapSettings) 41 in.DeepCopyInto(out) 42 return out 43 } 44 45 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 46 func (in *EmbeddedObjectMetadata) DeepCopyInto(out *EmbeddedObjectMetadata) { 47 *out = *in 48 if in.Labels != nil { 49 in, out := &in.Labels, &out.Labels 50 *out = make(map[string]string, len(*in)) 51 for key, val := range *in { 52 (*out)[key] = val 53 } 54 } 55 if in.Annotations != nil { 56 in, out := &in.Annotations, &out.Annotations 57 *out = make(map[string]string, len(*in)) 58 for key, val := range *in { 59 (*out)[key] = val 60 } 61 } 62 return 63 } 64 65 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedObjectMetadata. 66 func (in *EmbeddedObjectMetadata) DeepCopy() *EmbeddedObjectMetadata { 67 if in == nil { 68 return nil 69 } 70 out := new(EmbeddedObjectMetadata) 71 in.DeepCopyInto(out) 72 return out 73 } 74 75 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 76 func (in *EmbeddedPersistentVolumeClaim) DeepCopyInto(out *EmbeddedPersistentVolumeClaim) { 77 *out = *in 78 out.TypeMeta = in.TypeMeta 79 in.EmbeddedObjectMetadata.DeepCopyInto(&out.EmbeddedObjectMetadata) 80 in.Spec.DeepCopyInto(&out.Spec) 81 in.Status.DeepCopyInto(&out.Status) 82 return 83 } 84 85 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedPersistentVolumeClaim. 86 func (in *EmbeddedPersistentVolumeClaim) DeepCopy() *EmbeddedPersistentVolumeClaim { 87 if in == nil { 88 return nil 89 } 90 out := new(EmbeddedPersistentVolumeClaim) 91 in.DeepCopyInto(out) 92 return out 93 } 94 95 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 96 func (in *Exporter) DeepCopyInto(out *Exporter) { 97 *out = *in 98 if in.ContainerSecurityContext != nil { 99 in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext 100 *out = new(corev1.SecurityContext) 101 (*in).DeepCopyInto(*out) 102 } 103 if in.Args != nil { 104 in, out := &in.Args, &out.Args 105 *out = make([]string, len(*in)) 106 copy(*out, *in) 107 } 108 if in.Env != nil { 109 in, out := &in.Env, &out.Env 110 *out = make([]corev1.EnvVar, len(*in)) 111 for i := range *in { 112 (*in)[i].DeepCopyInto(&(*out)[i]) 113 } 114 } 115 if in.Resources != nil { 116 in, out := &in.Resources, &out.Resources 117 *out = new(corev1.ResourceRequirements) 118 (*in).DeepCopyInto(*out) 119 } 120 return 121 } 122 123 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exporter. 124 func (in *Exporter) DeepCopy() *Exporter { 125 if in == nil { 126 return nil 127 } 128 out := new(Exporter) 129 in.DeepCopyInto(out) 130 return out 131 } 132 133 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 134 func (in *RedisCommandRename) DeepCopyInto(out *RedisCommandRename) { 135 *out = *in 136 return 137 } 138 139 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisCommandRename. 140 func (in *RedisCommandRename) DeepCopy() *RedisCommandRename { 141 if in == nil { 142 return nil 143 } 144 out := new(RedisCommandRename) 145 in.DeepCopyInto(out) 146 return out 147 } 148 149 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 150 func (in *RedisFailover) DeepCopyInto(out *RedisFailover) { 151 *out = *in 152 out.TypeMeta = in.TypeMeta 153 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 154 in.Spec.DeepCopyInto(&out.Spec) 155 return 156 } 157 158 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailover. 159 func (in *RedisFailover) DeepCopy() *RedisFailover { 160 if in == nil { 161 return nil 162 } 163 out := new(RedisFailover) 164 in.DeepCopyInto(out) 165 return out 166 } 167 168 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 169 func (in *RedisFailover) DeepCopyObject() runtime.Object { 170 if c := in.DeepCopy(); c != nil { 171 return c 172 } 173 return nil 174 } 175 176 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 177 func (in *RedisFailoverList) DeepCopyInto(out *RedisFailoverList) { 178 *out = *in 179 out.TypeMeta = in.TypeMeta 180 in.ListMeta.DeepCopyInto(&out.ListMeta) 181 if in.Items != nil { 182 in, out := &in.Items, &out.Items 183 *out = make([]RedisFailover, len(*in)) 184 for i := range *in { 185 (*in)[i].DeepCopyInto(&(*out)[i]) 186 } 187 } 188 return 189 } 190 191 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailoverList. 192 func (in *RedisFailoverList) DeepCopy() *RedisFailoverList { 193 if in == nil { 194 return nil 195 } 196 out := new(RedisFailoverList) 197 in.DeepCopyInto(out) 198 return out 199 } 200 201 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 202 func (in *RedisFailoverList) DeepCopyObject() runtime.Object { 203 if c := in.DeepCopy(); c != nil { 204 return c 205 } 206 return nil 207 } 208 209 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 210 func (in *RedisFailoverSpec) DeepCopyInto(out *RedisFailoverSpec) { 211 *out = *in 212 in.Redis.DeepCopyInto(&out.Redis) 213 in.Sentinel.DeepCopyInto(&out.Sentinel) 214 out.Auth = in.Auth 215 if in.LabelWhitelist != nil { 216 in, out := &in.LabelWhitelist, &out.LabelWhitelist 217 *out = make([]string, len(*in)) 218 copy(*out, *in) 219 } 220 if in.BootstrapNode != nil { 221 in, out := &in.BootstrapNode, &out.BootstrapNode 222 *out = new(BootstrapSettings) 223 **out = **in 224 } 225 return 226 } 227 228 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisFailoverSpec. 229 func (in *RedisFailoverSpec) DeepCopy() *RedisFailoverSpec { 230 if in == nil { 231 return nil 232 } 233 out := new(RedisFailoverSpec) 234 in.DeepCopyInto(out) 235 return out 236 } 237 238 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 239 func (in *RedisSettings) DeepCopyInto(out *RedisSettings) { 240 *out = *in 241 in.Resources.DeepCopyInto(&out.Resources) 242 if in.CustomConfig != nil { 243 in, out := &in.CustomConfig, &out.CustomConfig 244 *out = make([]string, len(*in)) 245 copy(*out, *in) 246 } 247 if in.CustomCommandRenames != nil { 248 in, out := &in.CustomCommandRenames, &out.CustomCommandRenames 249 *out = make([]RedisCommandRename, len(*in)) 250 copy(*out, *in) 251 } 252 if in.Command != nil { 253 in, out := &in.Command, &out.Command 254 *out = make([]string, len(*in)) 255 copy(*out, *in) 256 } 257 in.Storage.DeepCopyInto(&out.Storage) 258 if in.InitContainers != nil { 259 in, out := &in.InitContainers, &out.InitContainers 260 *out = make([]corev1.Container, len(*in)) 261 for i := range *in { 262 (*in)[i].DeepCopyInto(&(*out)[i]) 263 } 264 } 265 in.Exporter.DeepCopyInto(&out.Exporter) 266 if in.ExtraContainers != nil { 267 in, out := &in.ExtraContainers, &out.ExtraContainers 268 *out = make([]corev1.Container, len(*in)) 269 for i := range *in { 270 (*in)[i].DeepCopyInto(&(*out)[i]) 271 } 272 } 273 if in.Affinity != nil { 274 in, out := &in.Affinity, &out.Affinity 275 *out = new(corev1.Affinity) 276 (*in).DeepCopyInto(*out) 277 } 278 if in.SecurityContext != nil { 279 in, out := &in.SecurityContext, &out.SecurityContext 280 *out = new(corev1.PodSecurityContext) 281 (*in).DeepCopyInto(*out) 282 } 283 if in.ContainerSecurityContext != nil { 284 in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext 285 *out = new(corev1.SecurityContext) 286 (*in).DeepCopyInto(*out) 287 } 288 if in.ImagePullSecrets != nil { 289 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 290 *out = make([]corev1.LocalObjectReference, len(*in)) 291 copy(*out, *in) 292 } 293 if in.Tolerations != nil { 294 in, out := &in.Tolerations, &out.Tolerations 295 *out = make([]corev1.Toleration, len(*in)) 296 for i := range *in { 297 (*in)[i].DeepCopyInto(&(*out)[i]) 298 } 299 } 300 if in.TopologySpreadConstraints != nil { 301 in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints 302 *out = make([]corev1.TopologySpreadConstraint, len(*in)) 303 for i := range *in { 304 (*in)[i].DeepCopyInto(&(*out)[i]) 305 } 306 } 307 if in.NodeSelector != nil { 308 in, out := &in.NodeSelector, &out.NodeSelector 309 *out = make(map[string]string, len(*in)) 310 for key, val := range *in { 311 (*out)[key] = val 312 } 313 } 314 if in.PodAnnotations != nil { 315 in, out := &in.PodAnnotations, &out.PodAnnotations 316 *out = make(map[string]string, len(*in)) 317 for key, val := range *in { 318 (*out)[key] = val 319 } 320 } 321 if in.ServiceAnnotations != nil { 322 in, out := &in.ServiceAnnotations, &out.ServiceAnnotations 323 *out = make(map[string]string, len(*in)) 324 for key, val := range *in { 325 (*out)[key] = val 326 } 327 } 328 if in.ExtraVolumes != nil { 329 in, out := &in.ExtraVolumes, &out.ExtraVolumes 330 *out = make([]corev1.Volume, len(*in)) 331 for i := range *in { 332 (*in)[i].DeepCopyInto(&(*out)[i]) 333 } 334 } 335 if in.ExtraVolumeMounts != nil { 336 in, out := &in.ExtraVolumeMounts, &out.ExtraVolumeMounts 337 *out = make([]corev1.VolumeMount, len(*in)) 338 for i := range *in { 339 (*in)[i].DeepCopyInto(&(*out)[i]) 340 } 341 } 342 return 343 } 344 345 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSettings. 346 func (in *RedisSettings) DeepCopy() *RedisSettings { 347 if in == nil { 348 return nil 349 } 350 out := new(RedisSettings) 351 in.DeepCopyInto(out) 352 return out 353 } 354 355 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 356 func (in *RedisStorage) DeepCopyInto(out *RedisStorage) { 357 *out = *in 358 if in.EmptyDir != nil { 359 in, out := &in.EmptyDir, &out.EmptyDir 360 *out = new(corev1.EmptyDirVolumeSource) 361 (*in).DeepCopyInto(*out) 362 } 363 if in.PersistentVolumeClaim != nil { 364 in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim 365 *out = new(EmbeddedPersistentVolumeClaim) 366 (*in).DeepCopyInto(*out) 367 } 368 return 369 } 370 371 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStorage. 372 func (in *RedisStorage) DeepCopy() *RedisStorage { 373 if in == nil { 374 return nil 375 } 376 out := new(RedisStorage) 377 in.DeepCopyInto(out) 378 return out 379 } 380 381 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 382 func (in *SentinelConfigCopy) DeepCopyInto(out *SentinelConfigCopy) { 383 *out = *in 384 if in.ContainerSecurityContext != nil { 385 in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext 386 *out = new(corev1.SecurityContext) 387 (*in).DeepCopyInto(*out) 388 } 389 return 390 } 391 392 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelConfigCopy. 393 func (in *SentinelConfigCopy) DeepCopy() *SentinelConfigCopy { 394 if in == nil { 395 return nil 396 } 397 out := new(SentinelConfigCopy) 398 in.DeepCopyInto(out) 399 return out 400 } 401 402 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 403 func (in *SentinelSettings) DeepCopyInto(out *SentinelSettings) { 404 *out = *in 405 in.Resources.DeepCopyInto(&out.Resources) 406 if in.CustomConfig != nil { 407 in, out := &in.CustomConfig, &out.CustomConfig 408 *out = make([]string, len(*in)) 409 copy(*out, *in) 410 } 411 if in.Command != nil { 412 in, out := &in.Command, &out.Command 413 *out = make([]string, len(*in)) 414 copy(*out, *in) 415 } 416 if in.Affinity != nil { 417 in, out := &in.Affinity, &out.Affinity 418 *out = new(corev1.Affinity) 419 (*in).DeepCopyInto(*out) 420 } 421 if in.SecurityContext != nil { 422 in, out := &in.SecurityContext, &out.SecurityContext 423 *out = new(corev1.PodSecurityContext) 424 (*in).DeepCopyInto(*out) 425 } 426 if in.ContainerSecurityContext != nil { 427 in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext 428 *out = new(corev1.SecurityContext) 429 (*in).DeepCopyInto(*out) 430 } 431 if in.ImagePullSecrets != nil { 432 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 433 *out = make([]corev1.LocalObjectReference, len(*in)) 434 copy(*out, *in) 435 } 436 if in.Tolerations != nil { 437 in, out := &in.Tolerations, &out.Tolerations 438 *out = make([]corev1.Toleration, len(*in)) 439 for i := range *in { 440 (*in)[i].DeepCopyInto(&(*out)[i]) 441 } 442 } 443 if in.TopologySpreadConstraints != nil { 444 in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints 445 *out = make([]corev1.TopologySpreadConstraint, len(*in)) 446 for i := range *in { 447 (*in)[i].DeepCopyInto(&(*out)[i]) 448 } 449 } 450 if in.NodeSelector != nil { 451 in, out := &in.NodeSelector, &out.NodeSelector 452 *out = make(map[string]string, len(*in)) 453 for key, val := range *in { 454 (*out)[key] = val 455 } 456 } 457 if in.PodAnnotations != nil { 458 in, out := &in.PodAnnotations, &out.PodAnnotations 459 *out = make(map[string]string, len(*in)) 460 for key, val := range *in { 461 (*out)[key] = val 462 } 463 } 464 if in.ServiceAnnotations != nil { 465 in, out := &in.ServiceAnnotations, &out.ServiceAnnotations 466 *out = make(map[string]string, len(*in)) 467 for key, val := range *in { 468 (*out)[key] = val 469 } 470 } 471 if in.InitContainers != nil { 472 in, out := &in.InitContainers, &out.InitContainers 473 *out = make([]corev1.Container, len(*in)) 474 for i := range *in { 475 (*in)[i].DeepCopyInto(&(*out)[i]) 476 } 477 } 478 in.Exporter.DeepCopyInto(&out.Exporter) 479 if in.ExtraContainers != nil { 480 in, out := &in.ExtraContainers, &out.ExtraContainers 481 *out = make([]corev1.Container, len(*in)) 482 for i := range *in { 483 (*in)[i].DeepCopyInto(&(*out)[i]) 484 } 485 } 486 in.ConfigCopy.DeepCopyInto(&out.ConfigCopy) 487 if in.ExtraVolumes != nil { 488 in, out := &in.ExtraVolumes, &out.ExtraVolumes 489 *out = make([]corev1.Volume, len(*in)) 490 for i := range *in { 491 (*in)[i].DeepCopyInto(&(*out)[i]) 492 } 493 } 494 if in.ExtraVolumeMounts != nil { 495 in, out := &in.ExtraVolumeMounts, &out.ExtraVolumeMounts 496 *out = make([]corev1.VolumeMount, len(*in)) 497 for i := range *in { 498 (*in)[i].DeepCopyInto(&(*out)[i]) 499 } 500 } 501 return 502 } 503 504 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelSettings. 505 func (in *SentinelSettings) DeepCopy() *SentinelSettings { 506 if in == nil { 507 return nil 508 } 509 out := new(SentinelSettings) 510 in.DeepCopyInto(out) 511 return out 512 }