diff --git a/pkg/types/powervc/doc.go b/pkg/types/powervc/doc.go index 17163c9e96d..bc83ca1ba23 100644 --- a/pkg/types/powervc/doc.go +++ b/pkg/types/powervc/doc.go @@ -1,5 +1,6 @@ // Package powervc contains PowerVC-OpenStack-specific structures for // installer configuration and management. +// +k8s:deepcopy-gen=package package powervc // Name is the name for the Openstack platform. diff --git a/pkg/types/powervc/zz_generated.deepcopy.go b/pkg/types/powervc/zz_generated.deepcopy.go new file mode 100644 index 00000000000..095c79a4829 --- /dev/null +++ b/pkg/types/powervc/zz_generated.deepcopy.go @@ -0,0 +1,219 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by deepcopy-gen. DO NOT EDIT. + +package powervc + +import ( + v1 "github.com/openshift/api/config/v1" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FixedIP) DeepCopyInto(out *FixedIP) { + *out = *in + out.Subnet = in.Subnet + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FixedIP. +func (in *FixedIP) DeepCopy() *FixedIP { + if in == nil { + return nil + } + out := new(FixedIP) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MachinePool) DeepCopyInto(out *MachinePool) { + *out = *in + if in.RootVolume != nil { + in, out := &in.RootVolume, &out.RootVolume + *out = new(RootVolume) + (*in).DeepCopyInto(*out) + } + if in.AdditionalNetworkIDs != nil { + in, out := &in.AdditionalNetworkIDs, &out.AdditionalNetworkIDs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.AdditionalSecurityGroupIDs != nil { + in, out := &in.AdditionalSecurityGroupIDs, &out.AdditionalSecurityGroupIDs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Zones != nil { + in, out := &in.Zones, &out.Zones + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePool. +func (in *MachinePool) DeepCopy() *MachinePool { + if in == nil { + return nil + } + out := new(MachinePool) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Metadata) DeepCopyInto(out *Metadata) { + *out = *in + if in.Identifier != nil { + in, out := &in.Identifier, &out.Identifier + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata. +func (in *Metadata) DeepCopy() *Metadata { + if in == nil { + return nil + } + out := new(Metadata) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NetworkFilter) DeepCopyInto(out *NetworkFilter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkFilter. +func (in *NetworkFilter) DeepCopy() *NetworkFilter { + if in == nil { + return nil + } + out := new(NetworkFilter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Platform) DeepCopyInto(out *Platform) { + *out = *in + if in.DefaultMachinePlatform != nil { + in, out := &in.DefaultMachinePlatform, &out.DefaultMachinePlatform + *out = new(MachinePool) + (*in).DeepCopyInto(*out) + } + if in.ExternalDNS != nil { + in, out := &in.ExternalDNS, &out.ExternalDNS + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ClusterOSImageProperties != nil { + in, out := &in.ClusterOSImageProperties, &out.ClusterOSImageProperties + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.APIVIPs != nil { + in, out := &in.APIVIPs, &out.APIVIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.IngressVIPs != nil { + in, out := &in.IngressVIPs, &out.IngressVIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ControlPlanePort != nil { + in, out := &in.ControlPlanePort, &out.ControlPlanePort + *out = new(PortTarget) + (*in).DeepCopyInto(*out) + } + if in.LoadBalancer != nil { + in, out := &in.LoadBalancer, &out.LoadBalancer + *out = new(v1.OpenStackPlatformLoadBalancer) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform. +func (in *Platform) DeepCopy() *Platform { + if in == nil { + return nil + } + out := new(Platform) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PortTarget) DeepCopyInto(out *PortTarget) { + *out = *in + out.Network = in.Network + if in.FixedIPs != nil { + in, out := &in.FixedIPs, &out.FixedIPs + *out = make([]FixedIP, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortTarget. +func (in *PortTarget) DeepCopy() *PortTarget { + if in == nil { + return nil + } + out := new(PortTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RootVolume) DeepCopyInto(out *RootVolume) { + *out = *in + if in.Types != nil { + in, out := &in.Types, &out.Types + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Zones != nil { + in, out := &in.Zones, &out.Zones + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootVolume. +func (in *RootVolume) DeepCopy() *RootVolume { + if in == nil { + return nil + } + out := new(RootVolume) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubnetFilter) DeepCopyInto(out *SubnetFilter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetFilter. +func (in *SubnetFilter) DeepCopy() *SubnetFilter { + if in == nil { + return nil + } + out := new(SubnetFilter) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/types/zz_generated.deepcopy.go b/pkg/types/zz_generated.deepcopy.go index 199d4c496aa..4486127295d 100644 --- a/pkg/types/zz_generated.deepcopy.go +++ b/pkg/types/zz_generated.deepcopy.go @@ -18,6 +18,7 @@ import ( nutanix "github.com/openshift/installer/pkg/types/nutanix" openstack "github.com/openshift/installer/pkg/types/openstack" ovirt "github.com/openshift/installer/pkg/types/ovirt" + powervc "github.com/openshift/installer/pkg/types/powervc" powervs "github.com/openshift/installer/pkg/types/powervs" vsphere "github.com/openshift/installer/pkg/types/vsphere" ) @@ -136,6 +137,11 @@ func (in *ClusterPlatformMetadata) DeepCopyInto(out *ClusterPlatformMetadata) { *out = new(ovirt.Metadata) **out = **in } + if in.PowerVC != nil { + in, out := &in.PowerVC, &out.PowerVC + *out = new(powervc.Metadata) + (*in).DeepCopyInto(*out) + } if in.PowerVS != nil { in, out := &in.PowerVS, &out.PowerVS *out = new(powervs.Metadata) @@ -549,6 +555,11 @@ func (in *MachinePoolPlatform) DeepCopyInto(out *MachinePoolPlatform) { *out = new(ovirt.MachinePool) (*in).DeepCopyInto(*out) } + if in.PowerVC != nil { + in, out := &in.PowerVC, &out.PowerVC + *out = new(powervc.MachinePool) + (*in).DeepCopyInto(*out) + } if in.PowerVS != nil { in, out := &in.PowerVS, &out.PowerVS *out = new(powervs.MachinePool) @@ -709,6 +720,11 @@ func (in *Platform) DeepCopyInto(out *Platform) { *out = new(openstack.Platform) (*in).DeepCopyInto(*out) } + if in.PowerVC != nil { + in, out := &in.PowerVC, &out.PowerVC + *out = new(powervc.Platform) + (*in).DeepCopyInto(*out) + } if in.PowerVS != nil { in, out := &in.PowerVS, &out.PowerVS *out = new(powervs.Platform)