zz_generated.deepcopy.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  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 deepcopy-gen. DO NOT EDIT.
  15. package admission
  16. import (
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. runtime "k8s.io/apimachinery/pkg/runtime"
  19. )
  20. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  21. func (in *AdmissionRequest) DeepCopyInto(out *AdmissionRequest) {
  22. *out = *in
  23. out.Kind = in.Kind
  24. out.Resource = in.Resource
  25. if in.RequestKind != nil {
  26. in, out := &in.RequestKind, &out.RequestKind
  27. *out = new(v1.GroupVersionKind)
  28. **out = **in
  29. }
  30. if in.RequestResource != nil {
  31. in, out := &in.RequestResource, &out.RequestResource
  32. *out = new(v1.GroupVersionResource)
  33. **out = **in
  34. }
  35. in.UserInfo.DeepCopyInto(&out.UserInfo)
  36. if in.Object != nil {
  37. out.Object = in.Object.DeepCopyObject()
  38. }
  39. if in.OldObject != nil {
  40. out.OldObject = in.OldObject.DeepCopyObject()
  41. }
  42. if in.DryRun != nil {
  43. in, out := &in.DryRun, &out.DryRun
  44. *out = new(bool)
  45. **out = **in
  46. }
  47. if in.Options != nil {
  48. out.Options = in.Options.DeepCopyObject()
  49. }
  50. return
  51. }
  52. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionRequest.
  53. func (in *AdmissionRequest) DeepCopy() *AdmissionRequest {
  54. if in == nil {
  55. return nil
  56. }
  57. out := new(AdmissionRequest)
  58. in.DeepCopyInto(out)
  59. return out
  60. }
  61. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  62. func (in *AdmissionResponse) DeepCopyInto(out *AdmissionResponse) {
  63. *out = *in
  64. if in.Result != nil {
  65. in, out := &in.Result, &out.Result
  66. *out = new(v1.Status)
  67. (*in).DeepCopyInto(*out)
  68. }
  69. if in.Patch != nil {
  70. in, out := &in.Patch, &out.Patch
  71. *out = make([]byte, len(*in))
  72. copy(*out, *in)
  73. }
  74. if in.PatchType != nil {
  75. in, out := &in.PatchType, &out.PatchType
  76. *out = new(PatchType)
  77. **out = **in
  78. }
  79. if in.AuditAnnotations != nil {
  80. in, out := &in.AuditAnnotations, &out.AuditAnnotations
  81. *out = make(map[string]string, len(*in))
  82. for key, val := range *in {
  83. (*out)[key] = val
  84. }
  85. }
  86. return
  87. }
  88. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionResponse.
  89. func (in *AdmissionResponse) DeepCopy() *AdmissionResponse {
  90. if in == nil {
  91. return nil
  92. }
  93. out := new(AdmissionResponse)
  94. in.DeepCopyInto(out)
  95. return out
  96. }
  97. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  98. func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) {
  99. *out = *in
  100. out.TypeMeta = in.TypeMeta
  101. if in.Request != nil {
  102. in, out := &in.Request, &out.Request
  103. *out = new(AdmissionRequest)
  104. (*in).DeepCopyInto(*out)
  105. }
  106. if in.Response != nil {
  107. in, out := &in.Response, &out.Response
  108. *out = new(AdmissionResponse)
  109. (*in).DeepCopyInto(*out)
  110. }
  111. return
  112. }
  113. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview.
  114. func (in *AdmissionReview) DeepCopy() *AdmissionReview {
  115. if in == nil {
  116. return nil
  117. }
  118. out := new(AdmissionReview)
  119. in.DeepCopyInto(out)
  120. return out
  121. }
  122. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  123. func (in *AdmissionReview) DeepCopyObject() runtime.Object {
  124. if c := in.DeepCopy(); c != nil {
  125. return c
  126. }
  127. return nil
  128. }