Reverts agentgateway/agentgateway#1065 because the unittests didn't use a real k8s API server. A real k8s rejects any CRD that attempts to use a null map value, and you cannot easily change the CRD because controller-tools is opinionated about that. I don't want to add new 'remove' APIs for this edge case or kustomize a CRD.
363 lines
10 KiB
Go
363 lines
10 KiB
Go
//go:build !ignore_autogenerated
|
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
apisv1 "sigs.k8s.io/gateway-api/apis/v1"
|
|
)
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Authorization) DeepCopyInto(out *Authorization) {
|
|
*out = *in
|
|
in.Policy.DeepCopyInto(&out.Policy)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Authorization.
|
|
func (in *Authorization) DeepCopy() *Authorization {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Authorization)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AuthorizationPolicy) DeepCopyInto(out *AuthorizationPolicy) {
|
|
*out = *in
|
|
if in.MatchExpressions != nil {
|
|
in, out := &in.MatchExpressions, &out.MatchExpressions
|
|
*out = make([]CELExpression, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicy.
|
|
func (in *AuthorizationPolicy) DeepCopy() *AuthorizationPolicy {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AuthorizationPolicy)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *HeaderModifiers) DeepCopyInto(out *HeaderModifiers) {
|
|
*out = *in
|
|
if in.Request != nil {
|
|
in, out := &in.Request, &out.Request
|
|
*out = new(apisv1.HTTPHeaderFilter)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Response != nil {
|
|
in, out := &in.Response, &out.Response
|
|
*out = new(apisv1.HTTPHeaderFilter)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeaderModifiers.
|
|
func (in *HeaderModifiers) DeepCopy() *HeaderModifiers {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(HeaderModifiers)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *KubernetesResourceOverlay) DeepCopyInto(out *KubernetesResourceOverlay) {
|
|
*out = *in
|
|
if in.Metadata != nil {
|
|
in, out := &in.Metadata, &out.Metadata
|
|
*out = new(ObjectMetadata)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Spec != nil {
|
|
in, out := &in.Spec, &out.Spec
|
|
*out = new(v1.JSON)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesResourceOverlay.
|
|
func (in *KubernetesResourceOverlay) DeepCopy() *KubernetesResourceOverlay {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(KubernetesResourceOverlay)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LocalPolicyTargetReference) DeepCopyInto(out *LocalPolicyTargetReference) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalPolicyTargetReference.
|
|
func (in *LocalPolicyTargetReference) DeepCopy() *LocalPolicyTargetReference {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LocalPolicyTargetReference)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LocalPolicyTargetReferenceWithSectionName) DeepCopyInto(out *LocalPolicyTargetReferenceWithSectionName) {
|
|
*out = *in
|
|
out.LocalPolicyTargetReference = in.LocalPolicyTargetReference
|
|
if in.SectionName != nil {
|
|
in, out := &in.SectionName, &out.SectionName
|
|
*out = new(apisv1.SectionName)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalPolicyTargetReferenceWithSectionName.
|
|
func (in *LocalPolicyTargetReferenceWithSectionName) DeepCopy() *LocalPolicyTargetReferenceWithSectionName {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LocalPolicyTargetReferenceWithSectionName)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LocalPolicyTargetSelector) DeepCopyInto(out *LocalPolicyTargetSelector) {
|
|
*out = *in
|
|
if in.MatchLabels != nil {
|
|
in, out := &in.MatchLabels, &out.MatchLabels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalPolicyTargetSelector.
|
|
func (in *LocalPolicyTargetSelector) DeepCopy() *LocalPolicyTargetSelector {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LocalPolicyTargetSelector)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LocalPolicyTargetSelectorWithSectionName) DeepCopyInto(out *LocalPolicyTargetSelectorWithSectionName) {
|
|
*out = *in
|
|
in.LocalPolicyTargetSelector.DeepCopyInto(&out.LocalPolicyTargetSelector)
|
|
if in.SectionName != nil {
|
|
in, out := &in.SectionName, &out.SectionName
|
|
*out = new(apisv1.SectionName)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalPolicyTargetSelectorWithSectionName.
|
|
func (in *LocalPolicyTargetSelectorWithSectionName) DeepCopy() *LocalPolicyTargetSelectorWithSectionName {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LocalPolicyTargetSelectorWithSectionName)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *NamespacedObjectReference) DeepCopyInto(out *NamespacedObjectReference) {
|
|
*out = *in
|
|
if in.Namespace != nil {
|
|
in, out := &in.Namespace, &out.Namespace
|
|
*out = new(apisv1.Namespace)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedObjectReference.
|
|
func (in *NamespacedObjectReference) DeepCopy() *NamespacedObjectReference {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(NamespacedObjectReference)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ObjectMetadata) DeepCopyInto(out *ObjectMetadata) {
|
|
*out = *in
|
|
if in.Labels != nil {
|
|
in, out := &in.Labels, &out.Labels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.Annotations != nil {
|
|
in, out := &in.Annotations, &out.Annotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetadata.
|
|
func (in *ObjectMetadata) DeepCopy() *ObjectMetadata {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ObjectMetadata)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PolicyAncestorStatus) DeepCopyInto(out *PolicyAncestorStatus) {
|
|
*out = *in
|
|
in.AncestorRef.DeepCopyInto(&out.AncestorRef)
|
|
if in.Conditions != nil {
|
|
in, out := &in.Conditions, &out.Conditions
|
|
*out = make([]metav1.Condition, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyAncestorStatus.
|
|
func (in *PolicyAncestorStatus) DeepCopy() *PolicyAncestorStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PolicyAncestorStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PolicyDisable) DeepCopyInto(out *PolicyDisable) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyDisable.
|
|
func (in *PolicyDisable) DeepCopy() *PolicyDisable {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PolicyDisable)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus) {
|
|
*out = *in
|
|
if in.Conditions != nil {
|
|
in, out := &in.Conditions, &out.Conditions
|
|
*out = make([]metav1.Condition, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Ancestors != nil {
|
|
in, out := &in.Ancestors, &out.Ancestors
|
|
*out = make([]PolicyAncestorStatus, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyStatus.
|
|
func (in *PolicyStatus) DeepCopy() *PolicyStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PolicyStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *StringMatcher) DeepCopyInto(out *StringMatcher) {
|
|
*out = *in
|
|
if in.Exact != nil {
|
|
in, out := &in.Exact, &out.Exact
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Prefix != nil {
|
|
in, out := &in.Prefix, &out.Prefix
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Suffix != nil {
|
|
in, out := &in.Suffix, &out.Suffix
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.Contains != nil {
|
|
in, out := &in.Contains, &out.Contains
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.SafeRegex != nil {
|
|
in, out := &in.SafeRegex, &out.SafeRegex
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.IgnoreCase != nil {
|
|
in, out := &in.IgnoreCase, &out.IgnoreCase
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StringMatcher.
|
|
func (in *StringMatcher) DeepCopy() *StringMatcher {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(StringMatcher)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Timeouts) DeepCopyInto(out *Timeouts) {
|
|
*out = *in
|
|
if in.Request != nil {
|
|
in, out := &in.Request, &out.Request
|
|
*out = new(metav1.Duration)
|
|
**out = **in
|
|
}
|
|
if in.StreamIdle != nil {
|
|
in, out := &in.StreamIdle, &out.StreamIdle
|
|
*out = new(metav1.Duration)
|
|
**out = **in
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timeouts.
|
|
func (in *Timeouts) DeepCopy() *Timeouts {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Timeouts)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|