1401 lines
40 KiB
Go
1401 lines
40 KiB
Go
//go:build !ignore_autogenerated
|
|
// +build !ignore_autogenerated
|
|
|
|
/*
|
|
Copyright 2023 Compose, Zalando SE
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
*/
|
|
|
|
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
|
|
package v1
|
|
|
|
import (
|
|
config "github.com/zalando/postgres-operator/pkg/util/config"
|
|
corev1 "k8s.io/api/core/v1"
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/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 *AWSGCPConfiguration) DeepCopyInto(out *AWSGCPConfiguration) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSGCPConfiguration.
|
|
func (in *AWSGCPConfiguration) DeepCopy() *AWSGCPConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AWSGCPConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AdditionalVolume) DeepCopyInto(out *AdditionalVolume) {
|
|
*out = *in
|
|
if in.TargetContainers != nil {
|
|
in, out := &in.TargetContainers, &out.TargetContainers
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
in.VolumeSource.DeepCopyInto(&out.VolumeSource)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdditionalVolume.
|
|
func (in *AdditionalVolume) DeepCopy() *AdditionalVolume {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AdditionalVolume)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *CloneDescription) DeepCopyInto(out *CloneDescription) {
|
|
*out = *in
|
|
if in.S3ForcePathStyle != nil {
|
|
in, out := &in.S3ForcePathStyle, &out.S3ForcePathStyle
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloneDescription.
|
|
func (in *CloneDescription) DeepCopy() *CloneDescription {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(CloneDescription)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ConnectionPooler) DeepCopyInto(out *ConnectionPooler) {
|
|
*out = *in
|
|
if in.NumberOfInstances != nil {
|
|
in, out := &in.NumberOfInstances, &out.NumberOfInstances
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxDBConnections != nil {
|
|
in, out := &in.MaxDBConnections, &out.MaxDBConnections
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.Resources != nil {
|
|
in, out := &in.Resources, &out.Resources
|
|
*out = new(Resources)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPooler.
|
|
func (in *ConnectionPooler) DeepCopy() *ConnectionPooler {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ConnectionPooler)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ConnectionPoolerConfiguration) DeepCopyInto(out *ConnectionPoolerConfiguration) {
|
|
*out = *in
|
|
if in.NumberOfInstances != nil {
|
|
in, out := &in.NumberOfInstances, &out.NumberOfInstances
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxDBConnections != nil {
|
|
in, out := &in.MaxDBConnections, &out.MaxDBConnections
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolerConfiguration.
|
|
func (in *ConnectionPoolerConfiguration) DeepCopy() *ConnectionPoolerConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ConnectionPoolerConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *KubernetesMetaConfiguration) DeepCopyInto(out *KubernetesMetaConfiguration) {
|
|
*out = *in
|
|
if in.SpiloAllowPrivilegeEscalation != nil {
|
|
in, out := &in.SpiloAllowPrivilegeEscalation, &out.SpiloAllowPrivilegeEscalation
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.SpiloRunAsUser != nil {
|
|
in, out := &in.SpiloRunAsUser, &out.SpiloRunAsUser
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.SpiloRunAsGroup != nil {
|
|
in, out := &in.SpiloRunAsGroup, &out.SpiloRunAsGroup
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.SpiloFSGroup != nil {
|
|
in, out := &in.SpiloFSGroup, &out.SpiloFSGroup
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.AdditionalPodCapabilities != nil {
|
|
in, out := &in.AdditionalPodCapabilities, &out.AdditionalPodCapabilities
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.EnablePodDisruptionBudget != nil {
|
|
in, out := &in.EnablePodDisruptionBudget, &out.EnablePodDisruptionBudget
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableInitContainers != nil {
|
|
in, out := &in.EnableInitContainers, &out.EnableInitContainers
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableSidecars != nil {
|
|
in, out := &in.EnableSidecars, &out.EnableSidecars
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.SharePgSocketWithSidecars != nil {
|
|
in, out := &in.SharePgSocketWithSidecars, &out.SharePgSocketWithSidecars
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
out.OAuthTokenSecretName = in.OAuthTokenSecretName
|
|
out.InfrastructureRolesSecretName = in.InfrastructureRolesSecretName
|
|
if in.InfrastructureRolesDefs != nil {
|
|
in, out := &in.InfrastructureRolesDefs, &out.InfrastructureRolesDefs
|
|
*out = make([]*config.InfrastructureRole, len(*in))
|
|
for i := range *in {
|
|
if (*in)[i] != nil {
|
|
in, out := &(*in)[i], &(*out)[i]
|
|
*out = new(config.InfrastructureRole)
|
|
**out = **in
|
|
}
|
|
}
|
|
}
|
|
if in.ClusterLabels != nil {
|
|
in, out := &in.ClusterLabels, &out.ClusterLabels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.InheritedLabels != nil {
|
|
in, out := &in.InheritedLabels, &out.InheritedLabels
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.InheritedAnnotations != nil {
|
|
in, out := &in.InheritedAnnotations, &out.InheritedAnnotations
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.DownscalerAnnotations != nil {
|
|
in, out := &in.DownscalerAnnotations, &out.DownscalerAnnotations
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.IgnoredAnnotations != nil {
|
|
in, out := &in.IgnoredAnnotations, &out.IgnoredAnnotations
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.NodeReadinessLabel != nil {
|
|
in, out := &in.NodeReadinessLabel, &out.NodeReadinessLabel
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.CustomPodAnnotations != nil {
|
|
in, out := &in.CustomPodAnnotations, &out.CustomPodAnnotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.PodToleration != nil {
|
|
in, out := &in.PodToleration, &out.PodToleration
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
out.PodEnvironmentConfigMap = in.PodEnvironmentConfigMap
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesMetaConfiguration.
|
|
func (in *KubernetesMetaConfiguration) DeepCopy() *KubernetesMetaConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(KubernetesMetaConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LoadBalancerConfiguration) DeepCopyInto(out *LoadBalancerConfiguration) {
|
|
*out = *in
|
|
if in.CustomServiceAnnotations != nil {
|
|
in, out := &in.CustomServiceAnnotations, &out.CustomServiceAnnotations
|
|
*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 LoadBalancerConfiguration.
|
|
func (in *LoadBalancerConfiguration) DeepCopy() *LoadBalancerConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LoadBalancerConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *LoggingRESTAPIConfiguration) DeepCopyInto(out *LoggingRESTAPIConfiguration) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingRESTAPIConfiguration.
|
|
func (in *LoggingRESTAPIConfiguration) DeepCopy() *LoggingRESTAPIConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(LoggingRESTAPIConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) {
|
|
*out = *in
|
|
in.StartTime.DeepCopyInto(&out.StartTime)
|
|
in.EndTime.DeepCopyInto(&out.EndTime)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindow.
|
|
func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(MaintenanceWindow)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *MajorVersionUpgradeConfiguration) DeepCopyInto(out *MajorVersionUpgradeConfiguration) {
|
|
*out = *in
|
|
if in.MajorVersionUpgradeTeamAllowList != nil {
|
|
in, out := &in.MajorVersionUpgradeTeamAllowList, &out.MajorVersionUpgradeTeamAllowList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MajorVersionUpgradeConfiguration.
|
|
func (in *MajorVersionUpgradeConfiguration) DeepCopy() *MajorVersionUpgradeConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(MajorVersionUpgradeConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *OperatorConfiguration) DeepCopyInto(out *OperatorConfiguration) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Configuration.DeepCopyInto(&out.Configuration)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConfiguration.
|
|
func (in *OperatorConfiguration) DeepCopy() *OperatorConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OperatorConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *OperatorConfiguration) 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 *OperatorConfigurationData) DeepCopyInto(out *OperatorConfigurationData) {
|
|
*out = *in
|
|
if in.EnableCRDRegistration != nil {
|
|
in, out := &in.EnableCRDRegistration, &out.EnableCRDRegistration
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableCRDValidation != nil {
|
|
in, out := &in.EnableCRDValidation, &out.EnableCRDValidation
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.CRDCategories != nil {
|
|
in, out := &in.CRDCategories, &out.CRDCategories
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.ShmVolume != nil {
|
|
in, out := &in.ShmVolume, &out.ShmVolume
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.SidecarImages != nil {
|
|
in, out := &in.SidecarImages, &out.SidecarImages
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.SidecarContainers != nil {
|
|
in, out := &in.SidecarContainers, &out.SidecarContainers
|
|
*out = make([]corev1.Container, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
in.PostgresUsersConfiguration.DeepCopyInto(&out.PostgresUsersConfiguration)
|
|
in.MajorVersionUpgrade.DeepCopyInto(&out.MajorVersionUpgrade)
|
|
in.Kubernetes.DeepCopyInto(&out.Kubernetes)
|
|
out.PostgresPodResources = in.PostgresPodResources
|
|
out.Timeouts = in.Timeouts
|
|
in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
|
|
out.AWSGCP = in.AWSGCP
|
|
out.OperatorDebug = in.OperatorDebug
|
|
in.TeamsAPI.DeepCopyInto(&out.TeamsAPI)
|
|
out.LoggingRESTAPI = in.LoggingRESTAPI
|
|
out.Scalyr = in.Scalyr
|
|
out.LogicalBackup = in.LogicalBackup
|
|
in.ConnectionPooler.DeepCopyInto(&out.ConnectionPooler)
|
|
in.Patroni.DeepCopyInto(&out.Patroni)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConfigurationData.
|
|
func (in *OperatorConfigurationData) DeepCopy() *OperatorConfigurationData {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OperatorConfigurationData)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *OperatorConfigurationList) DeepCopyInto(out *OperatorConfigurationList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]OperatorConfiguration, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConfigurationList.
|
|
func (in *OperatorConfigurationList) DeepCopy() *OperatorConfigurationList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OperatorConfigurationList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *OperatorConfigurationList) 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 *OperatorDebugConfiguration) DeepCopyInto(out *OperatorDebugConfiguration) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorDebugConfiguration.
|
|
func (in *OperatorDebugConfiguration) DeepCopy() *OperatorDebugConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OperatorDebugConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *OperatorLogicalBackupConfiguration) DeepCopyInto(out *OperatorLogicalBackupConfiguration) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorLogicalBackupConfiguration.
|
|
func (in *OperatorLogicalBackupConfiguration) DeepCopy() *OperatorLogicalBackupConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OperatorLogicalBackupConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *OperatorTimeouts) DeepCopyInto(out *OperatorTimeouts) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorTimeouts.
|
|
func (in *OperatorTimeouts) DeepCopy() *OperatorTimeouts {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OperatorTimeouts)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Patroni) DeepCopyInto(out *Patroni) {
|
|
*out = *in
|
|
if in.InitDB != nil {
|
|
in, out := &in.InitDB, &out.InitDB
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.PgHba != nil {
|
|
in, out := &in.PgHba, &out.PgHba
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Slots != nil {
|
|
in, out := &in.Slots, &out.Slots
|
|
*out = make(map[string]map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
var outVal map[string]string
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
if in.FailsafeMode != nil {
|
|
in, out := &in.FailsafeMode, &out.FailsafeMode
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Patroni.
|
|
func (in *Patroni) DeepCopy() *Patroni {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Patroni)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PatroniConfiguration) DeepCopyInto(out *PatroniConfiguration) {
|
|
*out = *in
|
|
if in.FailsafeMode != nil {
|
|
in, out := &in.FailsafeMode, &out.FailsafeMode
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatroniConfiguration.
|
|
func (in *PatroniConfiguration) DeepCopy() *PatroniConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PatroniConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PostgresPodResourcesDefaults) DeepCopyInto(out *PostgresPodResourcesDefaults) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresPodResourcesDefaults.
|
|
func (in *PostgresPodResourcesDefaults) DeepCopy() *PostgresPodResourcesDefaults {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresPodResourcesDefaults)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec) {
|
|
*out = *in
|
|
in.PostgresqlParam.DeepCopyInto(&out.PostgresqlParam)
|
|
in.Volume.DeepCopyInto(&out.Volume)
|
|
in.Patroni.DeepCopyInto(&out.Patroni)
|
|
if in.Resources != nil {
|
|
in, out := &in.Resources, &out.Resources
|
|
*out = new(Resources)
|
|
**out = **in
|
|
}
|
|
if in.EnableConnectionPooler != nil {
|
|
in, out := &in.EnableConnectionPooler, &out.EnableConnectionPooler
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableReplicaConnectionPooler != nil {
|
|
in, out := &in.EnableReplicaConnectionPooler, &out.EnableReplicaConnectionPooler
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.ConnectionPooler != nil {
|
|
in, out := &in.ConnectionPooler, &out.ConnectionPooler
|
|
*out = new(ConnectionPooler)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.SpiloRunAsUser != nil {
|
|
in, out := &in.SpiloRunAsUser, &out.SpiloRunAsUser
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.SpiloRunAsGroup != nil {
|
|
in, out := &in.SpiloRunAsGroup, &out.SpiloRunAsGroup
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.SpiloFSGroup != nil {
|
|
in, out := &in.SpiloFSGroup, &out.SpiloFSGroup
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.EnableMasterLoadBalancer != nil {
|
|
in, out := &in.EnableMasterLoadBalancer, &out.EnableMasterLoadBalancer
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableMasterPoolerLoadBalancer != nil {
|
|
in, out := &in.EnableMasterPoolerLoadBalancer, &out.EnableMasterPoolerLoadBalancer
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableReplicaLoadBalancer != nil {
|
|
in, out := &in.EnableReplicaLoadBalancer, &out.EnableReplicaLoadBalancer
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.EnableReplicaPoolerLoadBalancer != nil {
|
|
in, out := &in.EnableReplicaPoolerLoadBalancer, &out.EnableReplicaPoolerLoadBalancer
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.UseLoadBalancer != nil {
|
|
in, out := &in.UseLoadBalancer, &out.UseLoadBalancer
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.ReplicaLoadBalancer != nil {
|
|
in, out := &in.ReplicaLoadBalancer, &out.ReplicaLoadBalancer
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.AllowedSourceRanges != nil {
|
|
in, out := &in.AllowedSourceRanges, &out.AllowedSourceRanges
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Users != nil {
|
|
in, out := &in.Users, &out.Users
|
|
*out = make(map[string]UserFlags, len(*in))
|
|
for key, val := range *in {
|
|
var outVal []string
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = make(UserFlags, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
if in.UsersWithSecretRotation != nil {
|
|
in, out := &in.UsersWithSecretRotation, &out.UsersWithSecretRotation
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.UsersWithInPlaceSecretRotation != nil {
|
|
in, out := &in.UsersWithInPlaceSecretRotation, &out.UsersWithInPlaceSecretRotation
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.MaintenanceWindows != nil {
|
|
in, out := &in.MaintenanceWindows, &out.MaintenanceWindows
|
|
*out = make([]MaintenanceWindow, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Clone != nil {
|
|
in, out := &in.Clone, &out.Clone
|
|
*out = new(CloneDescription)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Databases != nil {
|
|
in, out := &in.Databases, &out.Databases
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.PreparedDatabases != nil {
|
|
in, out := &in.PreparedDatabases, &out.PreparedDatabases
|
|
*out = make(map[string]PreparedDatabase, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = *val.DeepCopy()
|
|
}
|
|
}
|
|
if in.SchedulerName != nil {
|
|
in, out := &in.SchedulerName, &out.SchedulerName
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.NodeAffinity != nil {
|
|
in, out := &in.NodeAffinity, &out.NodeAffinity
|
|
*out = new(corev1.NodeAffinity)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Tolerations != nil {
|
|
in, out := &in.Tolerations, &out.Tolerations
|
|
*out = make([]corev1.Toleration, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Sidecars != nil {
|
|
in, out := &in.Sidecars, &out.Sidecars
|
|
*out = make([]Sidecar, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.InitContainers != nil {
|
|
in, out := &in.InitContainers, &out.InitContainers
|
|
*out = make([]corev1.Container, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.ShmVolume != nil {
|
|
in, out := &in.ShmVolume, &out.ShmVolume
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
if in.StandbyCluster != nil {
|
|
in, out := &in.StandbyCluster, &out.StandbyCluster
|
|
*out = new(StandbyDescription)
|
|
**out = **in
|
|
}
|
|
if in.PodAnnotations != nil {
|
|
in, out := &in.PodAnnotations, &out.PodAnnotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.ServiceAnnotations != nil {
|
|
in, out := &in.ServiceAnnotations, &out.ServiceAnnotations
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.TLS != nil {
|
|
in, out := &in.TLS, &out.TLS
|
|
*out = new(TLSDescription)
|
|
**out = **in
|
|
}
|
|
if in.AdditionalVolumes != nil {
|
|
in, out := &in.AdditionalVolumes, &out.AdditionalVolumes
|
|
*out = make([]AdditionalVolume, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Streams != nil {
|
|
in, out := &in.Streams, &out.Streams
|
|
*out = make([]Stream, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Env != nil {
|
|
in, out := &in.Env, &out.Env
|
|
*out = make([]corev1.EnvVar, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.InitContainersOld != nil {
|
|
in, out := &in.InitContainersOld, &out.InitContainersOld
|
|
*out = make([]corev1.Container, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSpec.
|
|
func (in *PostgresSpec) DeepCopy() *PostgresSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PostgresStatus) DeepCopyInto(out *PostgresStatus) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresStatus.
|
|
func (in *PostgresStatus) DeepCopy() *PostgresStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PostgresTeam) DeepCopyInto(out *PostgresTeam) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresTeam.
|
|
func (in *PostgresTeam) DeepCopy() *PostgresTeam {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresTeam)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *PostgresTeam) 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 *PostgresTeamList) DeepCopyInto(out *PostgresTeamList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]PostgresTeam, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresTeamList.
|
|
func (in *PostgresTeamList) DeepCopy() *PostgresTeamList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresTeamList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *PostgresTeamList) 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 *PostgresTeamSpec) DeepCopyInto(out *PostgresTeamSpec) {
|
|
*out = *in
|
|
if in.AdditionalSuperuserTeams != nil {
|
|
in, out := &in.AdditionalSuperuserTeams, &out.AdditionalSuperuserTeams
|
|
*out = make(map[string][]string, len(*in))
|
|
for key, val := range *in {
|
|
var outVal []string
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
if in.AdditionalTeams != nil {
|
|
in, out := &in.AdditionalTeams, &out.AdditionalTeams
|
|
*out = make(map[string][]string, len(*in))
|
|
for key, val := range *in {
|
|
var outVal []string
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
if in.AdditionalMembers != nil {
|
|
in, out := &in.AdditionalMembers, &out.AdditionalMembers
|
|
*out = make(map[string][]string, len(*in))
|
|
for key, val := range *in {
|
|
var outVal []string
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresTeamSpec.
|
|
func (in *PostgresTeamSpec) DeepCopy() *PostgresTeamSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresTeamSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PostgresUsersConfiguration) DeepCopyInto(out *PostgresUsersConfiguration) {
|
|
*out = *in
|
|
if in.AdditionalOwnerRoles != nil {
|
|
in, out := &in.AdditionalOwnerRoles, &out.AdditionalOwnerRoles
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresUsersConfiguration.
|
|
func (in *PostgresUsersConfiguration) DeepCopy() *PostgresUsersConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresUsersConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Postgresql) DeepCopyInto(out *Postgresql) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
out.Status = in.Status
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Postgresql.
|
|
func (in *Postgresql) DeepCopy() *Postgresql {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Postgresql)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *Postgresql) 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 *PostgresqlList) DeepCopyInto(out *PostgresqlList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]Postgresql, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresqlList.
|
|
func (in *PostgresqlList) DeepCopy() *PostgresqlList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresqlList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *PostgresqlList) 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 *PostgresqlParam) DeepCopyInto(out *PostgresqlParam) {
|
|
*out = *in
|
|
if in.Parameters != nil {
|
|
in, out := &in.Parameters, &out.Parameters
|
|
*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 PostgresqlParam.
|
|
func (in *PostgresqlParam) DeepCopy() *PostgresqlParam {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PostgresqlParam)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PreparedDatabase) DeepCopyInto(out *PreparedDatabase) {
|
|
*out = *in
|
|
if in.PreparedSchemas != nil {
|
|
in, out := &in.PreparedSchemas, &out.PreparedSchemas
|
|
*out = make(map[string]PreparedSchema, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = *val.DeepCopy()
|
|
}
|
|
}
|
|
if in.Extensions != nil {
|
|
in, out := &in.Extensions, &out.Extensions
|
|
*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 PreparedDatabase.
|
|
func (in *PreparedDatabase) DeepCopy() *PreparedDatabase {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PreparedDatabase)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *PreparedSchema) DeepCopyInto(out *PreparedSchema) {
|
|
*out = *in
|
|
if in.DefaultRoles != nil {
|
|
in, out := &in.DefaultRoles, &out.DefaultRoles
|
|
*out = new(bool)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreparedSchema.
|
|
func (in *PreparedSchema) DeepCopy() *PreparedSchema {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(PreparedSchema)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ResourceDescription) DeepCopyInto(out *ResourceDescription) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDescription.
|
|
func (in *ResourceDescription) DeepCopy() *ResourceDescription {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ResourceDescription)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Resources) DeepCopyInto(out *Resources) {
|
|
*out = *in
|
|
out.ResourceRequests = in.ResourceRequests
|
|
out.ResourceLimits = in.ResourceLimits
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
|
|
func (in *Resources) DeepCopy() *Resources {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Resources)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ScalyrConfiguration) DeepCopyInto(out *ScalyrConfiguration) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalyrConfiguration.
|
|
func (in *ScalyrConfiguration) DeepCopy() *ScalyrConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ScalyrConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Sidecar) DeepCopyInto(out *Sidecar) {
|
|
*out = *in
|
|
if in.Resources != nil {
|
|
in, out := &in.Resources, &out.Resources
|
|
*out = new(Resources)
|
|
**out = **in
|
|
}
|
|
if in.Ports != nil {
|
|
in, out := &in.Ports, &out.Ports
|
|
*out = make([]corev1.ContainerPort, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Env != nil {
|
|
in, out := &in.Env, &out.Env
|
|
*out = make([]corev1.EnvVar, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar.
|
|
func (in *Sidecar) DeepCopy() *Sidecar {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Sidecar)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *StandbyDescription) DeepCopyInto(out *StandbyDescription) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandbyDescription.
|
|
func (in *StandbyDescription) DeepCopy() *StandbyDescription {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(StandbyDescription)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Stream) DeepCopyInto(out *Stream) {
|
|
*out = *in
|
|
if in.Tables != nil {
|
|
in, out := &in.Tables, &out.Tables
|
|
*out = make(map[string]StreamTable, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = *val.DeepCopy()
|
|
}
|
|
}
|
|
if in.Filter != nil {
|
|
in, out := &in.Filter, &out.Filter
|
|
*out = make(map[string]*string, len(*in))
|
|
for key, val := range *in {
|
|
var outVal *string
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
if in.BatchSize != nil {
|
|
in, out := &in.BatchSize, &out.BatchSize
|
|
*out = new(uint32)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stream.
|
|
func (in *Stream) DeepCopy() *Stream {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Stream)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *StreamTable) DeepCopyInto(out *StreamTable) {
|
|
*out = *in
|
|
if in.IdColumn != nil {
|
|
in, out := &in.IdColumn, &out.IdColumn
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
if in.PayloadColumn != nil {
|
|
in, out := &in.PayloadColumn, &out.PayloadColumn
|
|
*out = new(string)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StreamTable.
|
|
func (in *StreamTable) DeepCopy() *StreamTable {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(StreamTable)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TLSDescription) DeepCopyInto(out *TLSDescription) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSDescription.
|
|
func (in *TLSDescription) DeepCopy() *TLSDescription {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TLSDescription)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TeamsAPIConfiguration) DeepCopyInto(out *TeamsAPIConfiguration) {
|
|
*out = *in
|
|
if in.TeamAPIRoleConfiguration != nil {
|
|
in, out := &in.TeamAPIRoleConfiguration, &out.TeamAPIRoleConfiguration
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.ProtectedRoles != nil {
|
|
in, out := &in.ProtectedRoles, &out.ProtectedRoles
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.PostgresSuperuserTeams != nil {
|
|
in, out := &in.PostgresSuperuserTeams, &out.PostgresSuperuserTeams
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamsAPIConfiguration.
|
|
func (in *TeamsAPIConfiguration) DeepCopy() *TeamsAPIConfiguration {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TeamsAPIConfiguration)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in UserFlags) DeepCopyInto(out *UserFlags) {
|
|
{
|
|
in := &in
|
|
*out = make(UserFlags, len(*in))
|
|
copy(*out, *in)
|
|
return
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserFlags.
|
|
func (in UserFlags) DeepCopy() UserFlags {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(UserFlags)
|
|
in.DeepCopyInto(out)
|
|
return *out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Volume) DeepCopyInto(out *Volume) {
|
|
*out = *in
|
|
if in.Selector != nil {
|
|
in, out := &in.Selector, &out.Selector
|
|
*out = new(metav1.LabelSelector)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Iops != nil {
|
|
in, out := &in.Iops, &out.Iops
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
if in.Throughput != nil {
|
|
in, out := &in.Throughput, &out.Throughput
|
|
*out = new(int64)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
|
|
func (in *Volume) DeepCopy() *Volume {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Volume)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|