pkg/apis/agent/v1alpha1/zz_generated.deepcopy.go (259 lines of code) (raw):
//go:build !ignore_autogenerated
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License 2.0;
// you may not use this file except in compliance with the Elastic License 2.0.
// Code generated by controller-gen. DO NOT EDIT.
package v1alpha1
import (
"github.com/elastic/cloud-on-k8s/v3/pkg/apis/common/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Agent) DeepCopyInto(out *Agent) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
if in.esAssocConfs != nil {
in, out := &in.esAssocConfs, &out.esAssocConfs
*out = make(map[v1.ObjectSelector]v1.AssociationConf, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.kbAssocConf != nil {
in, out := &in.kbAssocConf, &out.kbAssocConf
*out = new(v1.AssociationConf)
**out = **in
}
if in.fsAssocConf != nil {
in, out := &in.fsAssocConf, &out.fsAssocConf
*out = new(v1.AssociationConf)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.
func (in *Agent) DeepCopy() *Agent {
if in == nil {
return nil
}
out := new(Agent)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *Agent) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AgentESAssociation) DeepCopyInto(out *AgentESAssociation) {
*out = *in
if in.Agent != nil {
in, out := &in.Agent, &out.Agent
*out = new(Agent)
(*in).DeepCopyInto(*out)
}
out.ref = in.ref
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentESAssociation.
func (in *AgentESAssociation) DeepCopy() *AgentESAssociation {
if in == nil {
return nil
}
out := new(AgentESAssociation)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AgentFleetServerAssociation) DeepCopyInto(out *AgentFleetServerAssociation) {
*out = *in
if in.Agent != nil {
in, out := &in.Agent, &out.Agent
*out = new(Agent)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentFleetServerAssociation.
func (in *AgentFleetServerAssociation) DeepCopy() *AgentFleetServerAssociation {
if in == nil {
return nil
}
out := new(AgentFleetServerAssociation)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AgentKibanaAssociation) DeepCopyInto(out *AgentKibanaAssociation) {
*out = *in
if in.Agent != nil {
in, out := &in.Agent, &out.Agent
*out = new(Agent)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentKibanaAssociation.
func (in *AgentKibanaAssociation) DeepCopy() *AgentKibanaAssociation {
if in == nil {
return nil
}
out := new(AgentKibanaAssociation)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AgentList) DeepCopyInto(out *AgentList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Agent, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentList.
func (in *AgentList) DeepCopy() *AgentList {
if in == nil {
return nil
}
out := new(AgentList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AgentList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AgentSpec) DeepCopyInto(out *AgentSpec) {
*out = *in
if in.ElasticsearchRefs != nil {
in, out := &in.ElasticsearchRefs, &out.ElasticsearchRefs
*out = make([]Output, len(*in))
copy(*out, *in)
}
if in.Config != nil {
in, out := &in.Config, &out.Config
*out = (*in).DeepCopy()
}
if in.ConfigRef != nil {
in, out := &in.ConfigRef, &out.ConfigRef
*out = new(v1.ConfigSource)
**out = **in
}
if in.SecureSettings != nil {
in, out := &in.SecureSettings, &out.SecureSettings
*out = make([]v1.SecretSource, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.DaemonSet != nil {
in, out := &in.DaemonSet, &out.DaemonSet
*out = new(DaemonSetSpec)
(*in).DeepCopyInto(*out)
}
if in.Deployment != nil {
in, out := &in.Deployment, &out.Deployment
*out = new(DeploymentSpec)
(*in).DeepCopyInto(*out)
}
if in.StatefulSet != nil {
in, out := &in.StatefulSet, &out.StatefulSet
*out = new(StatefulSetSpec)
(*in).DeepCopyInto(*out)
}
if in.RevisionHistoryLimit != nil {
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
*out = new(int32)
**out = **in
}
in.HTTP.DeepCopyInto(&out.HTTP)
out.KibanaRef = in.KibanaRef
out.FleetServerRef = in.FleetServerRef
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentSpec.
func (in *AgentSpec) DeepCopy() *AgentSpec {
if in == nil {
return nil
}
out := new(AgentSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AgentStatus) DeepCopyInto(out *AgentStatus) {
*out = *in
if in.ElasticsearchAssociationsStatus != nil {
in, out := &in.ElasticsearchAssociationsStatus, &out.ElasticsearchAssociationsStatus
*out = make(v1.AssociationStatusMap, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentStatus.
func (in *AgentStatus) DeepCopy() *AgentStatus {
if in == nil {
return nil
}
out := new(AgentStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) {
*out = *in
in.PodTemplate.DeepCopyInto(&out.PodTemplate)
in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpec.
func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec {
if in == nil {
return nil
}
out := new(DaemonSetSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) {
*out = *in
in.PodTemplate.DeepCopyInto(&out.PodTemplate)
if in.Replicas != nil {
in, out := &in.Replicas, &out.Replicas
*out = new(int32)
**out = **in
}
in.Strategy.DeepCopyInto(&out.Strategy)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec.
func (in *DeploymentSpec) DeepCopy() *DeploymentSpec {
if in == nil {
return nil
}
out := new(DeploymentSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Output) DeepCopyInto(out *Output) {
*out = *in
out.ObjectSelector = in.ObjectSelector
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.
func (in *Output) DeepCopy() *Output {
if in == nil {
return nil
}
out := new(Output)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) {
*out = *in
in.PodTemplate.DeepCopyInto(&out.PodTemplate)
if in.Replicas != nil {
in, out := &in.Replicas, &out.Replicas
*out = new(int32)
**out = **in
}
if in.VolumeClaimTemplates != nil {
in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates
*out = make([]corev1.PersistentVolumeClaim, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec.
func (in *StatefulSetSpec) DeepCopy() *StatefulSetSpec {
if in == nil {
return nil
}
out := new(StatefulSetSpec)
in.DeepCopyInto(out)
return out
}