| //go:build !ignore_autogenerated |
| // +build !ignore_autogenerated |
| |
| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| // Code generated by controller-gen. DO NOT EDIT. |
| |
| package zk_api |
| |
| import ( |
| "k8s.io/api/core/v1" |
| runtime "k8s.io/apimachinery/pkg/runtime" |
| ) |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *AdminServerServicePolicy) DeepCopyInto(out *AdminServerServicePolicy) { |
| *out = *in |
| 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 AdminServerServicePolicy. |
| func (in *AdminServerServicePolicy) DeepCopy() *AdminServerServicePolicy { |
| if in == nil { |
| return nil |
| } |
| out := new(AdminServerServicePolicy) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *ClientServicePolicy) DeepCopyInto(out *ClientServicePolicy) { |
| *out = *in |
| 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 ClientServicePolicy. |
| func (in *ClientServicePolicy) DeepCopy() *ClientServicePolicy { |
| if in == nil { |
| return nil |
| } |
| out := new(ClientServicePolicy) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) { |
| *out = *in |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition. |
| func (in *ClusterCondition) DeepCopy() *ClusterCondition { |
| if in == nil { |
| return nil |
| } |
| out := new(ClusterCondition) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *ContainerImage) DeepCopyInto(out *ContainerImage) { |
| *out = *in |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImage. |
| func (in *ContainerImage) DeepCopy() *ContainerImage { |
| if in == nil { |
| return nil |
| } |
| out := new(ContainerImage) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *Ephemeral) DeepCopyInto(out *Ephemeral) { |
| *out = *in |
| in.EmptyDirVolumeSource.DeepCopyInto(&out.EmptyDirVolumeSource) |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ephemeral. |
| func (in *Ephemeral) DeepCopy() *Ephemeral { |
| if in == nil { |
| return nil |
| } |
| out := new(Ephemeral) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *HeadlessServicePolicy) DeepCopyInto(out *HeadlessServicePolicy) { |
| *out = *in |
| 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 HeadlessServicePolicy. |
| func (in *HeadlessServicePolicy) DeepCopy() *HeadlessServicePolicy { |
| if in == nil { |
| return nil |
| } |
| out := new(HeadlessServicePolicy) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *MembersStatus) DeepCopyInto(out *MembersStatus) { |
| *out = *in |
| if in.Ready != nil { |
| in, out := &in.Ready, &out.Ready |
| *out = make([]string, len(*in)) |
| copy(*out, *in) |
| } |
| if in.Unready != nil { |
| in, out := &in.Unready, &out.Unready |
| *out = make([]string, len(*in)) |
| copy(*out, *in) |
| } |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembersStatus. |
| func (in *MembersStatus) DeepCopy() *MembersStatus { |
| if in == nil { |
| return nil |
| } |
| out := new(MembersStatus) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *Persistence) DeepCopyInto(out *Persistence) { |
| *out = *in |
| in.PersistentVolumeClaimSpec.DeepCopyInto(&out.PersistentVolumeClaimSpec) |
| 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 Persistence. |
| func (in *Persistence) DeepCopy() *Persistence { |
| if in == nil { |
| return nil |
| } |
| out := new(Persistence) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *PodPolicy) DeepCopyInto(out *PodPolicy) { |
| *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.NodeSelector != nil { |
| in, out := &in.NodeSelector, &out.NodeSelector |
| *out = make(map[string]string, len(*in)) |
| for key, val := range *in { |
| (*out)[key] = val |
| } |
| } |
| if in.Affinity != nil { |
| in, out := &in.Affinity, &out.Affinity |
| *out = new(v1.Affinity) |
| (*in).DeepCopyInto(*out) |
| } |
| in.Resources.DeepCopyInto(&out.Resources) |
| if in.Tolerations != nil { |
| in, out := &in.Tolerations, &out.Tolerations |
| *out = make([]v1.Toleration, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| if in.Env != nil { |
| in, out := &in.Env, &out.Env |
| *out = make([]v1.EnvVar, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| 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 |
| } |
| } |
| if in.SecurityContext != nil { |
| in, out := &in.SecurityContext, &out.SecurityContext |
| *out = new(v1.PodSecurityContext) |
| (*in).DeepCopyInto(*out) |
| } |
| if in.ImagePullSecrets != nil { |
| in, out := &in.ImagePullSecrets, &out.ImagePullSecrets |
| *out = make([]v1.LocalObjectReference, len(*in)) |
| copy(*out, *in) |
| } |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPolicy. |
| func (in *PodPolicy) DeepCopy() *PodPolicy { |
| if in == nil { |
| return nil |
| } |
| out := new(PodPolicy) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *Ports) DeepCopyInto(out *Ports) { |
| *out = *in |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ports. |
| func (in *Ports) DeepCopy() *Ports { |
| if in == nil { |
| return nil |
| } |
| out := new(Ports) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *Probe) DeepCopyInto(out *Probe) { |
| *out = *in |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probe. |
| func (in *Probe) DeepCopy() *Probe { |
| if in == nil { |
| return nil |
| } |
| out := new(Probe) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *Probes) DeepCopyInto(out *Probes) { |
| *out = *in |
| if in.ReadinessProbe != nil { |
| in, out := &in.ReadinessProbe, &out.ReadinessProbe |
| *out = new(Probe) |
| **out = **in |
| } |
| if in.LivenessProbe != nil { |
| in, out := &in.LivenessProbe, &out.LivenessProbe |
| *out = new(Probe) |
| **out = **in |
| } |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probes. |
| func (in *Probes) DeepCopy() *Probes { |
| if in == nil { |
| return nil |
| } |
| out := new(Probes) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *ZookeeperCluster) DeepCopyInto(out *ZookeeperCluster) { |
| *out = *in |
| out.TypeMeta = in.TypeMeta |
| in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) |
| in.Spec.DeepCopyInto(&out.Spec) |
| in.Status.DeepCopyInto(&out.Status) |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZookeeperCluster. |
| func (in *ZookeeperCluster) DeepCopy() *ZookeeperCluster { |
| if in == nil { |
| return nil |
| } |
| out := new(ZookeeperCluster) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. |
| func (in *ZookeeperCluster) 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 *ZookeeperClusterList) DeepCopyInto(out *ZookeeperClusterList) { |
| *out = *in |
| out.TypeMeta = in.TypeMeta |
| in.ListMeta.DeepCopyInto(&out.ListMeta) |
| if in.Items != nil { |
| in, out := &in.Items, &out.Items |
| *out = make([]ZookeeperCluster, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZookeeperClusterList. |
| func (in *ZookeeperClusterList) DeepCopy() *ZookeeperClusterList { |
| if in == nil { |
| return nil |
| } |
| out := new(ZookeeperClusterList) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. |
| func (in *ZookeeperClusterList) 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 *ZookeeperClusterSpec) DeepCopyInto(out *ZookeeperClusterSpec) { |
| *out = *in |
| out.Image = in.Image |
| 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.Ports != nil { |
| in, out := &in.Ports, &out.Ports |
| *out = make([]v1.ContainerPort, len(*in)) |
| copy(*out, *in) |
| } |
| in.Pod.DeepCopyInto(&out.Pod) |
| in.AdminServerService.DeepCopyInto(&out.AdminServerService) |
| in.ClientService.DeepCopyInto(&out.ClientService) |
| in.HeadlessService.DeepCopyInto(&out.HeadlessService) |
| if in.Persistence != nil { |
| in, out := &in.Persistence, &out.Persistence |
| *out = new(Persistence) |
| (*in).DeepCopyInto(*out) |
| } |
| if in.Ephemeral != nil { |
| in, out := &in.Ephemeral, &out.Ephemeral |
| *out = new(Ephemeral) |
| (*in).DeepCopyInto(*out) |
| } |
| in.Conf.DeepCopyInto(&out.Conf) |
| if in.Containers != nil { |
| in, out := &in.Containers, &out.Containers |
| *out = make([]v1.Container, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| if in.InitContainers != nil { |
| in, out := &in.InitContainers, &out.InitContainers |
| *out = make([]v1.Container, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| if in.Volumes != nil { |
| in, out := &in.Volumes, &out.Volumes |
| *out = make([]v1.Volume, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| if in.VolumeMounts != nil { |
| in, out := &in.VolumeMounts, &out.VolumeMounts |
| *out = make([]v1.VolumeMount, len(*in)) |
| for i := range *in { |
| (*in)[i].DeepCopyInto(&(*out)[i]) |
| } |
| } |
| if in.Probes != nil { |
| in, out := &in.Probes, &out.Probes |
| *out = new(Probes) |
| (*in).DeepCopyInto(*out) |
| } |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZookeeperClusterSpec. |
| func (in *ZookeeperClusterSpec) DeepCopy() *ZookeeperClusterSpec { |
| if in == nil { |
| return nil |
| } |
| out := new(ZookeeperClusterSpec) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *ZookeeperClusterStatus) DeepCopyInto(out *ZookeeperClusterStatus) { |
| *out = *in |
| in.Members.DeepCopyInto(&out.Members) |
| if in.Conditions != nil { |
| in, out := &in.Conditions, &out.Conditions |
| *out = make([]ClusterCondition, len(*in)) |
| copy(*out, *in) |
| } |
| } |
| |
| // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZookeeperClusterStatus. |
| func (in *ZookeeperClusterStatus) DeepCopy() *ZookeeperClusterStatus { |
| if in == nil { |
| return nil |
| } |
| out := new(ZookeeperClusterStatus) |
| in.DeepCopyInto(out) |
| return out |
| } |
| |
| // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| func (in *ZookeeperConfig) DeepCopyInto(out *ZookeeperConfig) { |
| *out = *in |
| if in.AdditionalConfig != nil { |
| in, out := &in.AdditionalConfig, &out.AdditionalConfig |
| *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 ZookeeperConfig. |
| func (in *ZookeeperConfig) DeepCopy() *ZookeeperConfig { |
| if in == nil { |
| return nil |
| } |
| out := new(ZookeeperConfig) |
| in.DeepCopyInto(out) |
| return out |
| } |