zz_generated.deepcopy.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. //go:build !ignore_autogenerated
  2. // +build !ignore_autogenerated
  3. /*
  4. Copyright 2023.
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. */
  15. // Code generated by controller-gen. DO NOT EDIT.
  16. package v1
  17. import (
  18. corev1 "k8s.io/api/core/v1"
  19. "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 *CronJob) DeepCopyInto(out *CronJob) {
  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 CronJob.
  30. func (in *CronJob) DeepCopy() *CronJob {
  31. if in == nil {
  32. return nil
  33. }
  34. out := new(CronJob)
  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 *CronJob) 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 *CronJobList) DeepCopyInto(out *CronJobList) {
  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([]CronJob, 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 CronJobList.
  59. func (in *CronJobList) DeepCopy() *CronJobList {
  60. if in == nil {
  61. return nil
  62. }
  63. out := new(CronJobList)
  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 *CronJobList) 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 *CronJobSpec) DeepCopyInto(out *CronJobSpec) {
  76. *out = *in
  77. if in.StartingDeadlineSeconds != nil {
  78. in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
  79. *out = new(int64)
  80. **out = **in
  81. }
  82. if in.Suspend != nil {
  83. in, out := &in.Suspend, &out.Suspend
  84. *out = new(bool)
  85. **out = **in
  86. }
  87. in.JobTemplate.DeepCopyInto(&out.JobTemplate)
  88. if in.SuccessfulJobsHistoryLimit != nil {
  89. in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit
  90. *out = new(int32)
  91. **out = **in
  92. }
  93. if in.FailedJobsHistoryLimit != nil {
  94. in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit
  95. *out = new(int32)
  96. **out = **in
  97. }
  98. }
  99. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec.
  100. func (in *CronJobSpec) DeepCopy() *CronJobSpec {
  101. if in == nil {
  102. return nil
  103. }
  104. out := new(CronJobSpec)
  105. in.DeepCopyInto(out)
  106. return out
  107. }
  108. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  109. func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus) {
  110. *out = *in
  111. if in.Active != nil {
  112. in, out := &in.Active, &out.Active
  113. *out = make([]corev1.ObjectReference, len(*in))
  114. copy(*out, *in)
  115. }
  116. if in.LastScheduleTime != nil {
  117. in, out := &in.LastScheduleTime, &out.LastScheduleTime
  118. *out = (*in).DeepCopy()
  119. }
  120. }
  121. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus.
  122. func (in *CronJobStatus) DeepCopy() *CronJobStatus {
  123. if in == nil {
  124. return nil
  125. }
  126. out := new(CronJobStatus)
  127. in.DeepCopyInto(out)
  128. return out
  129. }