Generated files
Kubernetes-commit: bbedc4f7ed436d28ed574615a33f8d03f7c8a2f0
This commit is contained in:
parent
a653e5ab1a
commit
0c12043fe4
|
|
@ -117,11 +117,8 @@ func autoConvert_v1_Event_To_audit_Event(in *Event, out *audit.Event, s conversi
|
||||||
out.Stage = audit.Stage(in.Stage)
|
out.Stage = audit.Stage(in.Stage)
|
||||||
out.RequestURI = in.RequestURI
|
out.RequestURI = in.RequestURI
|
||||||
out.Verb = in.Verb
|
out.Verb = in.Verb
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
out.User = in.User
|
||||||
if err := s.Convert(&in.User, &out.User, 0); err != nil {
|
out.ImpersonatedUser = (*authenticationv1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
||||||
return err
|
|
||||||
}
|
|
||||||
out.ImpersonatedUser = (*audit.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
|
||||||
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
||||||
out.UserAgent = in.UserAgent
|
out.UserAgent = in.UserAgent
|
||||||
out.ObjectRef = (*audit.ObjectReference)(unsafe.Pointer(in.ObjectRef))
|
out.ObjectRef = (*audit.ObjectReference)(unsafe.Pointer(in.ObjectRef))
|
||||||
|
|
@ -145,10 +142,7 @@ func autoConvert_audit_Event_To_v1_Event(in *audit.Event, out *Event, s conversi
|
||||||
out.Stage = Stage(in.Stage)
|
out.Stage = Stage(in.Stage)
|
||||||
out.RequestURI = in.RequestURI
|
out.RequestURI = in.RequestURI
|
||||||
out.Verb = in.Verb
|
out.Verb = in.Verb
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
out.User = in.User
|
||||||
if err := s.Convert(&in.User, &out.User, 0); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
out.ImpersonatedUser = (*authenticationv1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
out.ImpersonatedUser = (*authenticationv1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
||||||
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
||||||
out.UserAgent = in.UserAgent
|
out.UserAgent = in.UserAgent
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ package v1alpha1
|
||||||
import (
|
import (
|
||||||
unsafe "unsafe"
|
unsafe "unsafe"
|
||||||
|
|
||||||
authenticationv1 "k8s.io/api/authentication/v1"
|
v1 "k8s.io/api/authentication/v1"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
|
|
@ -139,11 +139,8 @@ func autoConvert_v1alpha1_Event_To_audit_Event(in *Event, out *audit.Event, s co
|
||||||
out.Stage = audit.Stage(in.Stage)
|
out.Stage = audit.Stage(in.Stage)
|
||||||
out.RequestURI = in.RequestURI
|
out.RequestURI = in.RequestURI
|
||||||
out.Verb = in.Verb
|
out.Verb = in.Verb
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
out.User = in.User
|
||||||
if err := s.Convert(&in.User, &out.User, 0); err != nil {
|
out.ImpersonatedUser = (*v1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
||||||
return err
|
|
||||||
}
|
|
||||||
out.ImpersonatedUser = (*audit.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
|
||||||
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
||||||
out.UserAgent = in.UserAgent
|
out.UserAgent = in.UserAgent
|
||||||
if in.ObjectRef != nil {
|
if in.ObjectRef != nil {
|
||||||
|
|
@ -155,7 +152,7 @@ func autoConvert_v1alpha1_Event_To_audit_Event(in *Event, out *audit.Event, s co
|
||||||
} else {
|
} else {
|
||||||
out.ObjectRef = nil
|
out.ObjectRef = nil
|
||||||
}
|
}
|
||||||
out.ResponseStatus = (*v1.Status)(unsafe.Pointer(in.ResponseStatus))
|
out.ResponseStatus = (*metav1.Status)(unsafe.Pointer(in.ResponseStatus))
|
||||||
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
||||||
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
||||||
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
||||||
|
|
@ -170,11 +167,8 @@ func autoConvert_audit_Event_To_v1alpha1_Event(in *audit.Event, out *Event, s co
|
||||||
out.Stage = Stage(in.Stage)
|
out.Stage = Stage(in.Stage)
|
||||||
out.RequestURI = in.RequestURI
|
out.RequestURI = in.RequestURI
|
||||||
out.Verb = in.Verb
|
out.Verb = in.Verb
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
out.User = in.User
|
||||||
if err := s.Convert(&in.User, &out.User, 0); err != nil {
|
out.ImpersonatedUser = (*v1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
||||||
return err
|
|
||||||
}
|
|
||||||
out.ImpersonatedUser = (*authenticationv1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
|
||||||
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
||||||
out.UserAgent = in.UserAgent
|
out.UserAgent = in.UserAgent
|
||||||
if in.ObjectRef != nil {
|
if in.ObjectRef != nil {
|
||||||
|
|
@ -186,7 +180,7 @@ func autoConvert_audit_Event_To_v1alpha1_Event(in *audit.Event, out *Event, s co
|
||||||
} else {
|
} else {
|
||||||
out.ObjectRef = nil
|
out.ObjectRef = nil
|
||||||
}
|
}
|
||||||
out.ResponseStatus = (*v1.Status)(unsafe.Pointer(in.ResponseStatus))
|
out.ResponseStatus = (*metav1.Status)(unsafe.Pointer(in.ResponseStatus))
|
||||||
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
||||||
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
||||||
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ package v1beta1
|
||||||
import (
|
import (
|
||||||
unsafe "unsafe"
|
unsafe "unsafe"
|
||||||
|
|
||||||
authenticationv1 "k8s.io/api/authentication/v1"
|
v1 "k8s.io/api/authentication/v1"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
|
|
@ -129,15 +129,12 @@ func autoConvert_v1beta1_Event_To_audit_Event(in *Event, out *audit.Event, s con
|
||||||
out.Stage = audit.Stage(in.Stage)
|
out.Stage = audit.Stage(in.Stage)
|
||||||
out.RequestURI = in.RequestURI
|
out.RequestURI = in.RequestURI
|
||||||
out.Verb = in.Verb
|
out.Verb = in.Verb
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
out.User = in.User
|
||||||
if err := s.Convert(&in.User, &out.User, 0); err != nil {
|
out.ImpersonatedUser = (*v1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
||||||
return err
|
|
||||||
}
|
|
||||||
out.ImpersonatedUser = (*audit.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
|
||||||
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
||||||
out.UserAgent = in.UserAgent
|
out.UserAgent = in.UserAgent
|
||||||
out.ObjectRef = (*audit.ObjectReference)(unsafe.Pointer(in.ObjectRef))
|
out.ObjectRef = (*audit.ObjectReference)(unsafe.Pointer(in.ObjectRef))
|
||||||
out.ResponseStatus = (*v1.Status)(unsafe.Pointer(in.ResponseStatus))
|
out.ResponseStatus = (*metav1.Status)(unsafe.Pointer(in.ResponseStatus))
|
||||||
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
||||||
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
||||||
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
||||||
|
|
@ -152,15 +149,12 @@ func autoConvert_audit_Event_To_v1beta1_Event(in *audit.Event, out *Event, s con
|
||||||
out.Stage = Stage(in.Stage)
|
out.Stage = Stage(in.Stage)
|
||||||
out.RequestURI = in.RequestURI
|
out.RequestURI = in.RequestURI
|
||||||
out.Verb = in.Verb
|
out.Verb = in.Verb
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
out.User = in.User
|
||||||
if err := s.Convert(&in.User, &out.User, 0); err != nil {
|
out.ImpersonatedUser = (*v1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
||||||
return err
|
|
||||||
}
|
|
||||||
out.ImpersonatedUser = (*authenticationv1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
|
|
||||||
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
|
||||||
out.UserAgent = in.UserAgent
|
out.UserAgent = in.UserAgent
|
||||||
out.ObjectRef = (*ObjectReference)(unsafe.Pointer(in.ObjectRef))
|
out.ObjectRef = (*ObjectReference)(unsafe.Pointer(in.ObjectRef))
|
||||||
out.ResponseStatus = (*v1.Status)(unsafe.Pointer(in.ResponseStatus))
|
out.ResponseStatus = (*metav1.Status)(unsafe.Pointer(in.ResponseStatus))
|
||||||
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
out.RequestObject = (*runtime.Unknown)(unsafe.Pointer(in.RequestObject))
|
||||||
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
out.ResponseObject = (*runtime.Unknown)(unsafe.Pointer(in.ResponseObject))
|
||||||
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
out.RequestReceivedTimestamp = in.RequestReceivedTimestamp
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ limitations under the License.
|
||||||
package audit
|
package audit
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/api/authentication/v1"
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -32,7 +33,7 @@ func (in *Event) DeepCopyInto(out *Event) {
|
||||||
in.User.DeepCopyInto(&out.User)
|
in.User.DeepCopyInto(&out.User)
|
||||||
if in.ImpersonatedUser != nil {
|
if in.ImpersonatedUser != nil {
|
||||||
in, out := &in.ImpersonatedUser, &out.ImpersonatedUser
|
in, out := &in.ImpersonatedUser, &out.ImpersonatedUser
|
||||||
*out = new(UserInfo)
|
*out = new(v1.UserInfo)
|
||||||
(*in).DeepCopyInto(*out)
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
if in.SourceIPs != nil {
|
if in.SourceIPs != nil {
|
||||||
|
|
@ -47,7 +48,7 @@ func (in *Event) DeepCopyInto(out *Event) {
|
||||||
}
|
}
|
||||||
if in.ResponseStatus != nil {
|
if in.ResponseStatus != nil {
|
||||||
in, out := &in.ResponseStatus, &out.ResponseStatus
|
in, out := &in.ResponseStatus, &out.ResponseStatus
|
||||||
*out = new(v1.Status)
|
*out = new(metav1.Status)
|
||||||
(*in).DeepCopyInto(*out)
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
if in.RequestObject != nil {
|
if in.RequestObject != nil {
|
||||||
|
|
@ -123,26 +124,6 @@ func (in *EventList) DeepCopyObject() runtime.Object {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in ExtraValue) DeepCopyInto(out *ExtraValue) {
|
|
||||||
{
|
|
||||||
in := &in
|
|
||||||
*out = make(ExtraValue, len(*in))
|
|
||||||
copy(*out, *in)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
|
|
||||||
func (in ExtraValue) DeepCopy() ExtraValue {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(ExtraValue)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return *out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *GroupResources) DeepCopyInto(out *GroupResources) {
|
func (in *GroupResources) DeepCopyInto(out *GroupResources) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
|
@ -308,39 +289,3 @@ func (in *PolicyRule) DeepCopy() *PolicyRule {
|
||||||
in.DeepCopyInto(out)
|
in.DeepCopyInto(out)
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *UserInfo) DeepCopyInto(out *UserInfo) {
|
|
||||||
*out = *in
|
|
||||||
if in.Groups != nil {
|
|
||||||
in, out := &in.Groups, &out.Groups
|
|
||||||
*out = make([]string, len(*in))
|
|
||||||
copy(*out, *in)
|
|
||||||
}
|
|
||||||
if in.Extra != nil {
|
|
||||||
in, out := &in.Extra, &out.Extra
|
|
||||||
*out = make(map[string]ExtraValue, len(*in))
|
|
||||||
for key, val := range *in {
|
|
||||||
var outVal []string
|
|
||||||
if val == nil {
|
|
||||||
(*out)[key] = nil
|
|
||||||
} else {
|
|
||||||
in, out := &val, &outVal
|
|
||||||
*out = make(ExtraValue, len(*in))
|
|
||||||
copy(*out, *in)
|
|
||||||
}
|
|
||||||
(*out)[key] = outVal
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
|
|
||||||
func (in *UserInfo) DeepCopy() *UserInfo {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(UserInfo)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue