diff --git a/apis/applications/v1alpha1/status.go b/apis/applications/v1alpha1/status.go index e6c1f5d..be293d8 100644 --- a/apis/applications/v1alpha1/status.go +++ b/apis/applications/v1alpha1/status.go @@ -1,7 +1,6 @@ package v1alpha1 import ( - "github.com/argoproj/gitops-engine/pkg/health" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -84,7 +83,7 @@ type SyncStatus struct { // HealthStatus contains information about the currently observed health state of an application or resource type HealthStatus struct { // Status holds the status code of the application or resource - Status health.HealthStatusCode `json:"status,omitempty" protobuf:"bytes,1,opt,name=status"` + Status string `json:"status,omitempty" protobuf:"bytes,1,opt,name=status"` // Message is a human-readable informational message describing the health status Message *string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` } diff --git a/apis/applications/v1alpha1/zz_generated.deepcopy.go b/apis/applications/v1alpha1/zz_generated.deepcopy.go index 6f14001..437b055 100644 --- a/apis/applications/v1alpha1/zz_generated.deepcopy.go +++ b/apis/applications/v1alpha1/zz_generated.deepcopy.go @@ -23,7 +23,7 @@ package v1alpha1 import ( "github.com/crossplane/crossplane-runtime/apis/common/v1" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/apis/applicationsets/v1alpha1/zz_generated.deepcopy.go b/apis/applicationsets/v1alpha1/zz_generated.deepcopy.go index 24be0f4..cbcd039 100644 --- a/apis/applicationsets/v1alpha1/zz_generated.deepcopy.go +++ b/apis/applicationsets/v1alpha1/zz_generated.deepcopy.go @@ -25,7 +25,7 @@ import ( "github.com/crossplane/crossplane-runtime/apis/common/v1" apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" ) diff --git a/apis/generate.go b/apis/generate.go index 2f52455..f7e2384 100644 --- a/apis/generate.go +++ b/apis/generate.go @@ -28,14 +28,9 @@ limitations under the License. // Generate crossplane-runtime methodsets (resource.Managed, etc) //go:generate go run -tags generate github.com/crossplane/crossplane-tools/cmd/angryjet generate-methodsets --header-file=../hack/boilerplate.go.txt ./... -// Generate conversion code -//go:generate go run -tags generate github.com/jmattheis/goverter/cmd/goverter gen -output-constraint !ignore_autogenerated ./... - package apis import ( - _ "github.com/jmattheis/goverter/cmd/goverter" //nolint:typecheck - _ "sigs.k8s.io/controller-tools/cmd/controller-gen" //nolint:typecheck _ "github.com/crossplane/crossplane-tools/cmd/angryjet" //nolint:typecheck diff --git a/apis/applications/v1alpha1/conversions.go b/pkg/clients/applications/conversions.go similarity index 72% rename from apis/applications/v1alpha1/conversions.go rename to pkg/clients/applications/conversions.go index 79fafd8..a169ea1 100644 --- a/apis/applications/v1alpha1/conversions.go +++ b/pkg/clients/applications/conversions.go @@ -1,9 +1,11 @@ -package v1alpha1 +package applications import ( argocdv1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "k8s.io/apimachinery/pkg/runtime" + + "github.com/crossplane-contrib/provider-argocd/apis/applications/v1alpha1" ) // Converter helps to convert ArgoCD types to api types of this provider and vise-versa @@ -14,7 +16,7 @@ import ( // goverter:extend ExtV1JSONToRuntimeRawExtension // goverter:struct:comment // +k8s:deepcopy-gen=false // goverter:output:file ./zz_generated.conversion.go -// goverter:output:package github.com/crossplane-contrib/provider-argocd/apis/applications/v1alpha1 +// goverter:output:package github.com/crossplane-contrib/provider-argocd/pkg/clients/applications // +k8s:deepcopy-gen=false type Converter interface { @@ -22,13 +24,13 @@ type Converter interface { // goverter:ignore ServerSelector // goverter:ignore NameRef // goverter:ignore NameSelector - FromArgoDestination(in argocdv1alpha1.ApplicationDestination) ApplicationDestination + FromArgoDestination(in argocdv1alpha1.ApplicationDestination) v1alpha1.ApplicationDestination - ToArgoDestination(in ApplicationDestination) argocdv1alpha1.ApplicationDestination + ToArgoDestination(in v1alpha1.ApplicationDestination) argocdv1alpha1.ApplicationDestination - ToArgoApplicationSpec(in *ApplicationParameters) *argocdv1alpha1.ApplicationSpec + ToArgoApplicationSpec(in *v1alpha1.ApplicationParameters) *argocdv1alpha1.ApplicationSpec - FromArgoApplicationStatus(in *argocdv1alpha1.ApplicationStatus) *ArgoApplicationStatus + FromArgoApplicationStatus(in *argocdv1alpha1.ApplicationStatus) *v1alpha1.ArgoApplicationStatus } // ExtV1JSONToRuntimeRawExtension converts an extv1.JSON into a diff --git a/apis/applications/v1alpha1/zz_generated.conversion.go b/pkg/clients/applications/zz_generated.conversion.go similarity index 80% rename from apis/applications/v1alpha1/zz_generated.conversion.go rename to pkg/clients/applications/zz_generated.conversion.go index 3098491..d37aa81 100755 --- a/apis/applications/v1alpha1/zz_generated.conversion.go +++ b/pkg/clients/applications/zz_generated.conversion.go @@ -1,12 +1,12 @@ // Code generated by github.com/jmattheis/goverter, DO NOT EDIT. //go:build !ignore_autogenerated -package v1alpha1 +package applications import ( v1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" - health "github.com/argoproj/gitops-engine/pkg/health" common "github.com/argoproj/gitops-engine/pkg/sync/common" + v1alpha11 "github.com/crossplane-contrib/provider-argocd/apis/applications/v1alpha1" v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" v11 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -17,13 +17,13 @@ import ( // +k8s:deepcopy-gen=false type ConverterImpl struct{} -func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationStatus) *ArgoApplicationStatus { - var pV1alpha1ArgoApplicationStatus *ArgoApplicationStatus +func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationStatus) *v1alpha11.ArgoApplicationStatus { + var pV1alpha1ArgoApplicationStatus *v1alpha11.ArgoApplicationStatus if source != nil { - var v1alpha1ArgoApplicationStatus ArgoApplicationStatus - var v1alpha1ResourceStatusList []ResourceStatus + var v1alpha1ArgoApplicationStatus v1alpha11.ArgoApplicationStatus + var v1alpha1ResourceStatusList []v1alpha11.ResourceStatus if (*source).Resources != nil { - v1alpha1ResourceStatusList = make([]ResourceStatus, len((*source).Resources)) + v1alpha1ResourceStatusList = make([]v1alpha11.ResourceStatus, len((*source).Resources)) for i := 0; i < len((*source).Resources); i++ { v1alpha1ResourceStatusList[i] = c.v1alpha1ResourceStatusToV1alpha1ResourceStatus((*source).Resources[i]) } @@ -32,9 +32,9 @@ func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationSt v1alpha1ArgoApplicationStatus.Sync = c.v1alpha1SyncStatusToV1alpha1SyncStatus((*source).Sync) v1alpha1ArgoApplicationStatus.Health = c.v1alpha1HealthStatusToV1alpha1HealthStatus((*source).Health) v1alpha1ArgoApplicationStatus.History = c.v1alpha1RevisionHistoriesToV1alpha1RevisionHistories((*source).History) - var v1alpha1ApplicationConditionList []ApplicationCondition + var v1alpha1ApplicationConditionList []v1alpha11.ApplicationCondition if (*source).Conditions != nil { - v1alpha1ApplicationConditionList = make([]ApplicationCondition, len((*source).Conditions)) + v1alpha1ApplicationConditionList = make([]v1alpha11.ApplicationCondition, len((*source).Conditions)) for j := 0; j < len((*source).Conditions); j++ { v1alpha1ApplicationConditionList[j] = c.v1alpha1ApplicationConditionToV1alpha1ApplicationCondition((*source).Conditions[j]) } @@ -46,9 +46,9 @@ func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationSt v1alpha1ArgoApplicationStatus.SourceType = c.v1alpha1ApplicationSourceTypeToV1alpha1ApplicationSourceType((*source).SourceType) v1alpha1ArgoApplicationStatus.Summary = c.v1alpha1ApplicationSummaryToV1alpha1ApplicationSummary((*source).Summary) v1alpha1ArgoApplicationStatus.ResourceHealthSource = string((*source).ResourceHealthSource) - var v1alpha1ApplicationSourceTypeList []ApplicationSourceType + var v1alpha1ApplicationSourceTypeList []v1alpha11.ApplicationSourceType if (*source).SourceTypes != nil { - v1alpha1ApplicationSourceTypeList = make([]ApplicationSourceType, len((*source).SourceTypes)) + v1alpha1ApplicationSourceTypeList = make([]v1alpha11.ApplicationSourceType, len((*source).SourceTypes)) for k := 0; k < len((*source).SourceTypes); k++ { v1alpha1ApplicationSourceTypeList[k] = c.v1alpha1ApplicationSourceTypeToV1alpha1ApplicationSourceType((*source).SourceTypes[k]) } @@ -58,8 +58,8 @@ func (c *ConverterImpl) FromArgoApplicationStatus(source *v1alpha1.ApplicationSt } return pV1alpha1ArgoApplicationStatus } -func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) ApplicationDestination { - var v1alpha1ApplicationDestination ApplicationDestination +func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) v1alpha11.ApplicationDestination { + var v1alpha1ApplicationDestination v1alpha11.ApplicationDestination pString := source.Server v1alpha1ApplicationDestination.Server = &pString pString2 := source.Namespace @@ -68,7 +68,7 @@ func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestinati v1alpha1ApplicationDestination.Name = &pString3 return v1alpha1ApplicationDestination } -func (c *ConverterImpl) ToArgoApplicationSpec(source *ApplicationParameters) *v1alpha1.ApplicationSpec { +func (c *ConverterImpl) ToArgoApplicationSpec(source *v1alpha11.ApplicationParameters) *v1alpha1.ApplicationSpec { var pV1alpha1ApplicationSpec *v1alpha1.ApplicationSpec if source != nil { var v1alpha1ApplicationSpec v1alpha1.ApplicationSpec @@ -96,7 +96,7 @@ func (c *ConverterImpl) ToArgoApplicationSpec(source *ApplicationParameters) *v1 } return pV1alpha1ApplicationSpec } -func (c *ConverterImpl) ToArgoDestination(source ApplicationDestination) v1alpha1.ApplicationDestination { +func (c *ConverterImpl) ToArgoDestination(source v1alpha11.ApplicationDestination) v1alpha1.ApplicationDestination { var v1alpha1ApplicationDestination v1alpha1.ApplicationDestination var xstring string if source.Server != nil { @@ -156,10 +156,10 @@ func (c *ConverterImpl) pV1TimeToPV1Time(source *v11.Time) *v11.Time { } return pV1Time } -func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory(source *v1alpha1.ApplicationSourceDirectory) *ApplicationSourceDirectory { - var pV1alpha1ApplicationSourceDirectory *ApplicationSourceDirectory +func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory(source *v1alpha1.ApplicationSourceDirectory) *v1alpha11.ApplicationSourceDirectory { + var pV1alpha1ApplicationSourceDirectory *v1alpha11.ApplicationSourceDirectory if source != nil { - var v1alpha1ApplicationSourceDirectory ApplicationSourceDirectory + var v1alpha1ApplicationSourceDirectory v1alpha11.ApplicationSourceDirectory pBool := (*source).Recurse v1alpha1ApplicationSourceDirectory.Recurse = &pBool v1alpha1ApplicationSourceDirectory.Jsonnet = c.v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet((*source).Jsonnet) @@ -171,7 +171,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceDirectory } -func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory2(source *ApplicationSourceDirectory) *v1alpha1.ApplicationSourceDirectory { +func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory2(source *v1alpha11.ApplicationSourceDirectory) *v1alpha1.ApplicationSourceDirectory { var pV1alpha1ApplicationSourceDirectory *v1alpha1.ApplicationSourceDirectory if source != nil { var v1alpha1ApplicationSourceDirectory v1alpha1.ApplicationSourceDirectory @@ -195,10 +195,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceDirectory } -func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm(source *v1alpha1.ApplicationSourceHelm) *ApplicationSourceHelm { - var pV1alpha1ApplicationSourceHelm *ApplicationSourceHelm +func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm(source *v1alpha1.ApplicationSourceHelm) *v1alpha11.ApplicationSourceHelm { + var pV1alpha1ApplicationSourceHelm *v1alpha11.ApplicationSourceHelm if source != nil { - var v1alpha1ApplicationSourceHelm ApplicationSourceHelm + var v1alpha1ApplicationSourceHelm v1alpha11.ApplicationSourceHelm var stringList []string if (*source).ValueFiles != nil { stringList = make([]string, len((*source).ValueFiles)) @@ -207,9 +207,9 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour } } v1alpha1ApplicationSourceHelm.ValueFiles = stringList - var v1alpha1HelmParameterList []HelmParameter + var v1alpha1HelmParameterList []v1alpha11.HelmParameter if (*source).Parameters != nil { - v1alpha1HelmParameterList = make([]HelmParameter, len((*source).Parameters)) + v1alpha1HelmParameterList = make([]v1alpha11.HelmParameter, len((*source).Parameters)) for j := 0; j < len((*source).Parameters); j++ { v1alpha1HelmParameterList[j] = c.v1alpha1HelmParameterToV1alpha1HelmParameter((*source).Parameters[j]) } @@ -219,9 +219,9 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour v1alpha1ApplicationSourceHelm.ReleaseName = &pString pString2 := (*source).Values v1alpha1ApplicationSourceHelm.Values = &pString2 - var v1alpha1HelmFileParameterList []HelmFileParameter + var v1alpha1HelmFileParameterList []v1alpha11.HelmFileParameter if (*source).FileParameters != nil { - v1alpha1HelmFileParameterList = make([]HelmFileParameter, len((*source).FileParameters)) + v1alpha1HelmFileParameterList = make([]v1alpha11.HelmFileParameter, len((*source).FileParameters)) for k := 0; k < len((*source).FileParameters); k++ { v1alpha1HelmFileParameterList[k] = c.v1alpha1HelmFileParameterToV1alpha1HelmFileParameter((*source).FileParameters[k]) } @@ -240,7 +240,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour } return pV1alpha1ApplicationSourceHelm } -func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm2(source *ApplicationSourceHelm) *v1alpha1.ApplicationSourceHelm { +func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm2(source *v1alpha11.ApplicationSourceHelm) *v1alpha1.ApplicationSourceHelm { var pV1alpha1ApplicationSourceHelm *v1alpha1.ApplicationSourceHelm if source != nil { var v1alpha1ApplicationSourceHelm v1alpha1.ApplicationSourceHelm @@ -303,10 +303,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour } return pV1alpha1ApplicationSourceHelm } -func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize(source *v1alpha1.ApplicationSourceKustomize) *ApplicationSourceKustomize { - var pV1alpha1ApplicationSourceKustomize *ApplicationSourceKustomize +func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize(source *v1alpha1.ApplicationSourceKustomize) *v1alpha11.ApplicationSourceKustomize { + var pV1alpha1ApplicationSourceKustomize *v1alpha11.ApplicationSourceKustomize if source != nil { - var v1alpha1ApplicationSourceKustomize ApplicationSourceKustomize + var v1alpha1ApplicationSourceKustomize v1alpha11.ApplicationSourceKustomize pString := (*source).NamePrefix v1alpha1ApplicationSourceKustomize.NamePrefix = &pString pString2 := (*source).NameSuffix @@ -337,7 +337,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceKustomize } -func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize2(source *ApplicationSourceKustomize) *v1alpha1.ApplicationSourceKustomize { +func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize2(source *v1alpha11.ApplicationSourceKustomize) *v1alpha1.ApplicationSourceKustomize { var pV1alpha1ApplicationSourceKustomize *v1alpha1.ApplicationSourceKustomize if source != nil { var v1alpha1ApplicationSourceKustomize v1alpha1.ApplicationSourceKustomize @@ -392,10 +392,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceKustomize } -func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin(source *v1alpha1.ApplicationSourcePlugin) *ApplicationSourcePlugin { - var pV1alpha1ApplicationSourcePlugin *ApplicationSourcePlugin +func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin(source *v1alpha1.ApplicationSourcePlugin) *v1alpha11.ApplicationSourcePlugin { + var pV1alpha1ApplicationSourcePlugin *v1alpha11.ApplicationSourcePlugin if source != nil { - var v1alpha1ApplicationSourcePlugin ApplicationSourcePlugin + var v1alpha1ApplicationSourcePlugin v1alpha11.ApplicationSourcePlugin pString := (*source).Name v1alpha1ApplicationSourcePlugin.Name = &pString v1alpha1ApplicationSourcePlugin.Env = c.v1alpha1EnvToV1alpha1Env((*source).Env) @@ -404,7 +404,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSo } return pV1alpha1ApplicationSourcePlugin } -func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin2(source *ApplicationSourcePlugin) *v1alpha1.ApplicationSourcePlugin { +func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin2(source *v1alpha11.ApplicationSourcePlugin) *v1alpha1.ApplicationSourcePlugin { var pV1alpha1ApplicationSourcePlugin *v1alpha1.ApplicationSourcePlugin if source != nil { var v1alpha1ApplicationSourcePlugin v1alpha1.ApplicationSourcePlugin @@ -419,15 +419,15 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSo } return pV1alpha1ApplicationSourcePlugin } -func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource(source *v1alpha1.ApplicationSource) *ApplicationSource { - var pV1alpha1ApplicationSource *ApplicationSource +func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource(source *v1alpha1.ApplicationSource) *v1alpha11.ApplicationSource { + var pV1alpha1ApplicationSource *v1alpha11.ApplicationSource if source != nil { v1alpha1ApplicationSource := c.v1alpha1ApplicationSourceToV1alpha1ApplicationSource((*source)) pV1alpha1ApplicationSource = &v1alpha1ApplicationSource } return pV1alpha1ApplicationSource } -func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2(source *ApplicationSource) *v1alpha1.ApplicationSource { +func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2(source *v1alpha11.ApplicationSource) *v1alpha1.ApplicationSource { var pV1alpha1ApplicationSource *v1alpha1.ApplicationSource if source != nil { var v1alpha1ApplicationSource v1alpha1.ApplicationSource @@ -460,10 +460,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2( } return pV1alpha1ApplicationSource } -func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff(source *v1alpha1.Backoff) *Backoff { - var pV1alpha1Backoff *Backoff +func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff(source *v1alpha1.Backoff) *v1alpha11.Backoff { + var pV1alpha1Backoff *v1alpha11.Backoff if source != nil { - var v1alpha1Backoff Backoff + var v1alpha1Backoff v1alpha11.Backoff pString := (*source).Duration v1alpha1Backoff.Duration = &pString var pInt64 *int64 @@ -478,7 +478,7 @@ func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff(source *v1alpha1.Back } return pV1alpha1Backoff } -func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff2(source *Backoff) *v1alpha1.Backoff { +func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff2(source *v1alpha11.Backoff) *v1alpha1.Backoff { var pV1alpha1Backoff *v1alpha1.Backoff if source != nil { var v1alpha1Backoff v1alpha1.Backoff @@ -502,17 +502,17 @@ func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff2(source *Backoff) *v1 } return pV1alpha1Backoff } -func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry(source *v1alpha1.EnvEntry) *EnvEntry { - var pV1alpha1EnvEntry *EnvEntry +func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry(source *v1alpha1.EnvEntry) *v1alpha11.EnvEntry { + var pV1alpha1EnvEntry *v1alpha11.EnvEntry if source != nil { - var v1alpha1EnvEntry EnvEntry + var v1alpha1EnvEntry v1alpha11.EnvEntry v1alpha1EnvEntry.Name = (*source).Name v1alpha1EnvEntry.Value = (*source).Value pV1alpha1EnvEntry = &v1alpha1EnvEntry } return pV1alpha1EnvEntry } -func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry2(source *EnvEntry) *v1alpha1.EnvEntry { +func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry2(source *v1alpha11.EnvEntry) *v1alpha1.EnvEntry { var pV1alpha1EnvEntry *v1alpha1.EnvEntry if source != nil { var v1alpha1EnvEntry v1alpha1.EnvEntry @@ -522,28 +522,28 @@ func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry2(source *EnvEntry) } return pV1alpha1EnvEntry } -func (c *ConverterImpl) pV1alpha1HealthStatusToPV1alpha1HealthStatus(source *v1alpha1.HealthStatus) *HealthStatus { - var pV1alpha1HealthStatus *HealthStatus +func (c *ConverterImpl) pV1alpha1HealthStatusToPV1alpha1HealthStatus(source *v1alpha1.HealthStatus) *v1alpha11.HealthStatus { + var pV1alpha1HealthStatus *v1alpha11.HealthStatus if source != nil { - var v1alpha1HealthStatus HealthStatus - v1alpha1HealthStatus.Status = health.HealthStatusCode((*source).Status) + var v1alpha1HealthStatus v1alpha11.HealthStatus + v1alpha1HealthStatus.Status = string((*source).Status) pString := (*source).Message v1alpha1HealthStatus.Message = &pString pV1alpha1HealthStatus = &v1alpha1HealthStatus } return pV1alpha1HealthStatus } -func (c *ConverterImpl) pV1alpha1InfoToPV1alpha1Info(source *v1alpha1.Info) *Info { - var pV1alpha1Info *Info +func (c *ConverterImpl) pV1alpha1InfoToPV1alpha1Info(source *v1alpha1.Info) *v1alpha11.Info { + var pV1alpha1Info *v1alpha11.Info if source != nil { - var v1alpha1Info Info + var v1alpha1Info v1alpha11.Info v1alpha1Info.Name = (*source).Name v1alpha1Info.Value = (*source).Value pV1alpha1Info = &v1alpha1Info } return pV1alpha1Info } -func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNamespaceMetadata(source *ManagedNamespaceMetadata) *v1alpha1.ManagedNamespaceMetadata { +func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNamespaceMetadata(source *v1alpha11.ManagedNamespaceMetadata) *v1alpha1.ManagedNamespaceMetadata { var pV1alpha1ManagedNamespaceMetadata *v1alpha1.ManagedNamespaceMetadata if source != nil { var v1alpha1ManagedNamespaceMetadata v1alpha1.ManagedNamespaceMetadata @@ -561,12 +561,12 @@ func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNames } return pV1alpha1ManagedNamespaceMetadata } -func (c *ConverterImpl) pV1alpha1OperationStateToPV1alpha1OperationState(source *v1alpha1.OperationState) *OperationState { - var pV1alpha1OperationState *OperationState +func (c *ConverterImpl) pV1alpha1OperationStateToPV1alpha1OperationState(source *v1alpha1.OperationState) *v1alpha11.OperationState { + var pV1alpha1OperationState *v1alpha11.OperationState if source != nil { - var v1alpha1OperationState OperationState + var v1alpha1OperationState v1alpha11.OperationState v1alpha1OperationState.Operation = c.v1alpha1OperationToV1alpha1Operation((*source).Operation) - v1alpha1OperationState.Phase = OperationPhase((*source).Phase) + v1alpha1OperationState.Phase = v1alpha11.OperationPhase((*source).Phase) pString := (*source).Message v1alpha1OperationState.Message = &pString v1alpha1OperationState.SyncResult = c.pV1alpha1SyncOperationResultToPV1alpha1SyncOperationResult((*source).SyncResult) @@ -578,10 +578,10 @@ func (c *ConverterImpl) pV1alpha1OperationStateToPV1alpha1OperationState(source } return pV1alpha1OperationState } -func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source *v1alpha1.OptionalArray) *OptionalArray { - var pV1alpha1OptionalArray *OptionalArray +func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source *v1alpha1.OptionalArray) *v1alpha11.OptionalArray { + var pV1alpha1OptionalArray *v1alpha11.OptionalArray if source != nil { - var v1alpha1OptionalArray OptionalArray + var v1alpha1OptionalArray v1alpha11.OptionalArray var stringList []string if (*source).Array != nil { stringList = make([]string, len((*source).Array)) @@ -594,7 +594,7 @@ func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source *v } return pV1alpha1OptionalArray } -func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source *OptionalArray) *v1alpha1.OptionalArray { +func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source *v1alpha11.OptionalArray) *v1alpha1.OptionalArray { var pV1alpha1OptionalArray *v1alpha1.OptionalArray if source != nil { var v1alpha1OptionalArray v1alpha1.OptionalArray @@ -610,10 +610,10 @@ func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source * } return pV1alpha1OptionalArray } -func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap(source *v1alpha1.OptionalMap) *OptionalMap { - var pV1alpha1OptionalMap *OptionalMap +func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap(source *v1alpha1.OptionalMap) *v1alpha11.OptionalMap { + var pV1alpha1OptionalMap *v1alpha11.OptionalMap if source != nil { - var v1alpha1OptionalMap OptionalMap + var v1alpha1OptionalMap v1alpha11.OptionalMap mapStringString := make(map[string]string, len((*source).Map)) for key, value := range (*source).Map { mapStringString[key] = value @@ -623,7 +623,7 @@ func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap(source *v1alp } return pV1alpha1OptionalMap } -func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap2(source *OptionalMap) *v1alpha1.OptionalMap { +func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap2(source *v1alpha11.OptionalMap) *v1alpha1.OptionalMap { var pV1alpha1OptionalMap *v1alpha1.OptionalMap if source != nil { var v1alpha1OptionalMap v1alpha1.OptionalMap @@ -636,10 +636,10 @@ func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap2(source *Opti } return pV1alpha1OptionalMap } -func (c *ConverterImpl) pV1alpha1ResourceResultToPV1alpha1ResourceResult(source *v1alpha1.ResourceResult) *ResourceResult { - var pV1alpha1ResourceResult *ResourceResult +func (c *ConverterImpl) pV1alpha1ResourceResultToPV1alpha1ResourceResult(source *v1alpha1.ResourceResult) *v1alpha11.ResourceResult { + var pV1alpha1ResourceResult *v1alpha11.ResourceResult if source != nil { - var v1alpha1ResourceResult ResourceResult + var v1alpha1ResourceResult v1alpha11.ResourceResult v1alpha1ResourceResult.Group = (*source).Group v1alpha1ResourceResult.Version = (*source).Version v1alpha1ResourceResult.Kind = (*source).Kind @@ -651,14 +651,14 @@ func (c *ConverterImpl) pV1alpha1ResourceResultToPV1alpha1ResourceResult(source v1alpha1ResourceResult.Message = &pString2 pString3 := c.commonHookTypeToString((*source).HookType) v1alpha1ResourceResult.HookType = &pString3 - v1alpha1ResourceResult.HookPhase = OperationPhase((*source).HookPhase) + v1alpha1ResourceResult.HookPhase = v1alpha11.OperationPhase((*source).HookPhase) pString4 := c.commonSyncPhaseToString((*source).SyncPhase) v1alpha1ResourceResult.SyncPhase = &pString4 pV1alpha1ResourceResult = &v1alpha1ResourceResult } return pV1alpha1ResourceResult } -func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy(source *RetryStrategy) *v1alpha1.RetryStrategy { +func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy(source *v1alpha11.RetryStrategy) *v1alpha1.RetryStrategy { var pV1alpha1RetryStrategy *v1alpha1.RetryStrategy if source != nil { var v1alpha1RetryStrategy v1alpha1.RetryStrategy @@ -672,10 +672,10 @@ func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy(source *R } return pV1alpha1RetryStrategy } -func (c *ConverterImpl) pV1alpha1SyncOperationResultToPV1alpha1SyncOperationResult(source *v1alpha1.SyncOperationResult) *SyncOperationResult { - var pV1alpha1SyncOperationResult *SyncOperationResult +func (c *ConverterImpl) pV1alpha1SyncOperationResultToPV1alpha1SyncOperationResult(source *v1alpha1.SyncOperationResult) *v1alpha11.SyncOperationResult { + var pV1alpha1SyncOperationResult *v1alpha11.SyncOperationResult if source != nil { - var v1alpha1SyncOperationResult SyncOperationResult + var v1alpha1SyncOperationResult v1alpha11.SyncOperationResult v1alpha1SyncOperationResult.Resources = c.v1alpha1ResourceResultsToV1alpha1ResourceResults((*source).Resources) v1alpha1SyncOperationResult.Revision = (*source).Revision v1alpha1SyncOperationResult.Source = c.v1alpha1ApplicationSourceToV1alpha1ApplicationSource((*source).Source) @@ -692,10 +692,10 @@ func (c *ConverterImpl) pV1alpha1SyncOperationResultToPV1alpha1SyncOperationResu } return pV1alpha1SyncOperationResult } -func (c *ConverterImpl) pV1alpha1SyncOperationToPV1alpha1SyncOperation(source *v1alpha1.SyncOperation) *SyncOperation { - var pV1alpha1SyncOperation *SyncOperation +func (c *ConverterImpl) pV1alpha1SyncOperationToPV1alpha1SyncOperation(source *v1alpha1.SyncOperation) *v1alpha11.SyncOperation { + var pV1alpha1SyncOperation *v1alpha11.SyncOperation if source != nil { - var v1alpha1SyncOperation SyncOperation + var v1alpha1SyncOperation v1alpha11.SyncOperation pString := (*source).Revision v1alpha1SyncOperation.Revision = &pString pBool := (*source).Prune @@ -703,9 +703,9 @@ func (c *ConverterImpl) pV1alpha1SyncOperationToPV1alpha1SyncOperation(source *v pBool2 := (*source).DryRun v1alpha1SyncOperation.DryRun = &pBool2 v1alpha1SyncOperation.SyncStrategy = c.pV1alpha1SyncStrategyToPV1alpha1SyncStrategy((*source).SyncStrategy) - var v1alpha1SyncOperationResourceList []SyncOperationResource + var v1alpha1SyncOperationResourceList []v1alpha11.SyncOperationResource if (*source).Resources != nil { - v1alpha1SyncOperationResourceList = make([]SyncOperationResource, len((*source).Resources)) + v1alpha1SyncOperationResourceList = make([]v1alpha11.SyncOperationResource, len((*source).Resources)) for i := 0; i < len((*source).Resources); i++ { v1alpha1SyncOperationResourceList[i] = c.v1alpha1SyncOperationResourceToV1alpha1SyncOperationResource((*source).Resources[i]) } @@ -734,7 +734,7 @@ func (c *ConverterImpl) pV1alpha1SyncOperationToPV1alpha1SyncOperation(source *v } return pV1alpha1SyncOperation } -func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated(source *SyncPolicyAutomated) *v1alpha1.SyncPolicyAutomated { +func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated(source *v1alpha11.SyncPolicyAutomated) *v1alpha1.SyncPolicyAutomated { var pV1alpha1SyncPolicyAutomated *v1alpha1.SyncPolicyAutomated if source != nil { var v1alpha1SyncPolicyAutomated v1alpha1.SyncPolicyAutomated @@ -757,7 +757,7 @@ func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomat } return pV1alpha1SyncPolicyAutomated } -func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source *SyncPolicy) *v1alpha1.SyncPolicy { +func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source *v1alpha11.SyncPolicy) *v1alpha1.SyncPolicy { var pV1alpha1SyncPolicy *v1alpha1.SyncPolicy if source != nil { var v1alpha1SyncPolicy v1alpha1.SyncPolicy @@ -769,29 +769,29 @@ func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source *SyncPol } return pV1alpha1SyncPolicy } -func (c *ConverterImpl) pV1alpha1SyncStrategyApplyToPV1alpha1SyncStrategyApply(source *v1alpha1.SyncStrategyApply) *SyncStrategyApply { - var pV1alpha1SyncStrategyApply *SyncStrategyApply +func (c *ConverterImpl) pV1alpha1SyncStrategyApplyToPV1alpha1SyncStrategyApply(source *v1alpha1.SyncStrategyApply) *v1alpha11.SyncStrategyApply { + var pV1alpha1SyncStrategyApply *v1alpha11.SyncStrategyApply if source != nil { - var v1alpha1SyncStrategyApply SyncStrategyApply + var v1alpha1SyncStrategyApply v1alpha11.SyncStrategyApply pBool := (*source).Force v1alpha1SyncStrategyApply.Force = &pBool pV1alpha1SyncStrategyApply = &v1alpha1SyncStrategyApply } return pV1alpha1SyncStrategyApply } -func (c *ConverterImpl) pV1alpha1SyncStrategyHookToPV1alpha1SyncStrategyHook(source *v1alpha1.SyncStrategyHook) *SyncStrategyHook { - var pV1alpha1SyncStrategyHook *SyncStrategyHook +func (c *ConverterImpl) pV1alpha1SyncStrategyHookToPV1alpha1SyncStrategyHook(source *v1alpha1.SyncStrategyHook) *v1alpha11.SyncStrategyHook { + var pV1alpha1SyncStrategyHook *v1alpha11.SyncStrategyHook if source != nil { - var v1alpha1SyncStrategyHook SyncStrategyHook + var v1alpha1SyncStrategyHook v1alpha11.SyncStrategyHook v1alpha1SyncStrategyHook.SyncStrategyApply = c.v1alpha1SyncStrategyApplyToV1alpha1SyncStrategyApply((*source).SyncStrategyApply) pV1alpha1SyncStrategyHook = &v1alpha1SyncStrategyHook } return pV1alpha1SyncStrategyHook } -func (c *ConverterImpl) pV1alpha1SyncStrategyToPV1alpha1SyncStrategy(source *v1alpha1.SyncStrategy) *SyncStrategy { - var pV1alpha1SyncStrategy *SyncStrategy +func (c *ConverterImpl) pV1alpha1SyncStrategyToPV1alpha1SyncStrategy(source *v1alpha1.SyncStrategy) *v1alpha11.SyncStrategy { + var pV1alpha1SyncStrategy *v1alpha11.SyncStrategy if source != nil { - var v1alpha1SyncStrategy SyncStrategy + var v1alpha1SyncStrategy v1alpha11.SyncStrategy v1alpha1SyncStrategy.Apply = c.pV1alpha1SyncStrategyApplyToPV1alpha1SyncStrategyApply((*source).Apply) v1alpha1SyncStrategy.Hook = c.pV1alpha1SyncStrategyHookToPV1alpha1SyncStrategyHook((*source).Hook) pV1alpha1SyncStrategy = &v1alpha1SyncStrategy @@ -808,26 +808,26 @@ func (c *ConverterImpl) v1TimeToPV1Time(source v11.Time) *v11.Time { v1Time.Time = c.timeTimeToTimeTime(source.Time) return &v1Time } -func (c *ConverterImpl) v1alpha1ApplicationConditionToV1alpha1ApplicationCondition(source v1alpha1.ApplicationCondition) ApplicationCondition { - var v1alpha1ApplicationCondition ApplicationCondition +func (c *ConverterImpl) v1alpha1ApplicationConditionToV1alpha1ApplicationCondition(source v1alpha1.ApplicationCondition) v1alpha11.ApplicationCondition { + var v1alpha1ApplicationCondition v1alpha11.ApplicationCondition v1alpha1ApplicationCondition.Type = source.Type v1alpha1ApplicationCondition.Message = source.Message v1alpha1ApplicationCondition.LastTransitionTime = c.pV1TimeToPV1Time(source.LastTransitionTime) return v1alpha1ApplicationCondition } -func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet(source v1alpha1.ApplicationSourceJsonnet) ApplicationSourceJsonnet { - var v1alpha1ApplicationSourceJsonnet ApplicationSourceJsonnet - var v1alpha1JsonnetVarList []JsonnetVar +func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet(source v1alpha1.ApplicationSourceJsonnet) v1alpha11.ApplicationSourceJsonnet { + var v1alpha1ApplicationSourceJsonnet v1alpha11.ApplicationSourceJsonnet + var v1alpha1JsonnetVarList []v1alpha11.JsonnetVar if source.ExtVars != nil { - v1alpha1JsonnetVarList = make([]JsonnetVar, len(source.ExtVars)) + v1alpha1JsonnetVarList = make([]v1alpha11.JsonnetVar, len(source.ExtVars)) for i := 0; i < len(source.ExtVars); i++ { v1alpha1JsonnetVarList[i] = c.v1alpha1JsonnetVarToV1alpha1JsonnetVar(source.ExtVars[i]) } } v1alpha1ApplicationSourceJsonnet.ExtVars = v1alpha1JsonnetVarList - var v1alpha1JsonnetVarList2 []JsonnetVar + var v1alpha1JsonnetVarList2 []v1alpha11.JsonnetVar if source.TLAs != nil { - v1alpha1JsonnetVarList2 = make([]JsonnetVar, len(source.TLAs)) + v1alpha1JsonnetVarList2 = make([]v1alpha11.JsonnetVar, len(source.TLAs)) for j := 0; j < len(source.TLAs); j++ { v1alpha1JsonnetVarList2[j] = c.v1alpha1JsonnetVarToV1alpha1JsonnetVar(source.TLAs[j]) } @@ -843,7 +843,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSou v1alpha1ApplicationSourceJsonnet.Libs = stringList return v1alpha1ApplicationSourceJsonnet } -func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet2(source ApplicationSourceJsonnet) v1alpha1.ApplicationSourceJsonnet { +func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet2(source v1alpha11.ApplicationSourceJsonnet) v1alpha1.ApplicationSourceJsonnet { var v1alpha1ApplicationSourceJsonnet v1alpha1.ApplicationSourceJsonnet var v1alpha1JsonnetVarList []v1alpha1.JsonnetVar if source.ExtVars != nil { @@ -871,8 +871,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSou v1alpha1ApplicationSourceJsonnet.Libs = stringList return v1alpha1ApplicationSourceJsonnet } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter(source v1alpha1.ApplicationSourcePluginParameter) ApplicationSourcePluginParameter { - var v1alpha1ApplicationSourcePluginParameter ApplicationSourcePluginParameter +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter(source v1alpha1.ApplicationSourcePluginParameter) v1alpha11.ApplicationSourcePluginParameter { + var v1alpha1ApplicationSourcePluginParameter v1alpha11.ApplicationSourcePluginParameter pString := source.Name v1alpha1ApplicationSourcePluginParameter.Name = &pString var pString2 *string @@ -885,7 +885,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1Applic v1alpha1ApplicationSourcePluginParameter.OptionalArray = c.pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source.OptionalArray) return v1alpha1ApplicationSourcePluginParameter } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter2(source ApplicationSourcePluginParameter) v1alpha1.ApplicationSourcePluginParameter { +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter2(source v1alpha11.ApplicationSourcePluginParameter) v1alpha1.ApplicationSourcePluginParameter { var v1alpha1ApplicationSourcePluginParameter v1alpha1.ApplicationSourcePluginParameter var xstring string if source.Name != nil { @@ -902,17 +902,17 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1Applic v1alpha1ApplicationSourcePluginParameter.OptionalArray = c.pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source.OptionalArray) return v1alpha1ApplicationSourcePluginParameter } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters(source v1alpha1.ApplicationSourcePluginParameters) ApplicationSourcePluginParameters { - var v1alpha1ApplicationSourcePluginParameters ApplicationSourcePluginParameters +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters(source v1alpha1.ApplicationSourcePluginParameters) v1alpha11.ApplicationSourcePluginParameters { + var v1alpha1ApplicationSourcePluginParameters v1alpha11.ApplicationSourcePluginParameters if source != nil { - v1alpha1ApplicationSourcePluginParameters = make(ApplicationSourcePluginParameters, len(source)) + v1alpha1ApplicationSourcePluginParameters = make(v1alpha11.ApplicationSourcePluginParameters, len(source)) for i := 0; i < len(source); i++ { v1alpha1ApplicationSourcePluginParameters[i] = c.v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter(source[i]) } } return v1alpha1ApplicationSourcePluginParameters } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters2(source ApplicationSourcePluginParameters) v1alpha1.ApplicationSourcePluginParameters { +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters2(source v1alpha11.ApplicationSourcePluginParameters) v1alpha1.ApplicationSourcePluginParameters { var v1alpha1ApplicationSourcePluginParameters v1alpha1.ApplicationSourcePluginParameters if source != nil { v1alpha1ApplicationSourcePluginParameters = make(v1alpha1.ApplicationSourcePluginParameters, len(source)) @@ -922,8 +922,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1Appli } return v1alpha1ApplicationSourcePluginParameters } -func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source v1alpha1.ApplicationSource) ApplicationSource { - var v1alpha1ApplicationSource ApplicationSource +func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source v1alpha1.ApplicationSource) v1alpha11.ApplicationSource { + var v1alpha1ApplicationSource v1alpha11.ApplicationSource v1alpha1ApplicationSource.RepoURL = source.RepoURL pString := source.Path v1alpha1ApplicationSource.Path = &pString @@ -939,7 +939,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource(sou v1alpha1ApplicationSource.Ref = &pString4 return v1alpha1ApplicationSource } -func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource2(source ApplicationSource) v1alpha1.ApplicationSource { +func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource2(source v1alpha11.ApplicationSource) v1alpha1.ApplicationSource { var v1alpha1ApplicationSource v1alpha1.ApplicationSource v1alpha1ApplicationSource.RepoURL = source.RepoURL var xstring string @@ -968,20 +968,20 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource2(so v1alpha1ApplicationSource.Ref = xstring4 return v1alpha1ApplicationSource } -func (c *ConverterImpl) v1alpha1ApplicationSourceTypeToV1alpha1ApplicationSourceType(source v1alpha1.ApplicationSourceType) ApplicationSourceType { - return ApplicationSourceType(source) +func (c *ConverterImpl) v1alpha1ApplicationSourceTypeToV1alpha1ApplicationSourceType(source v1alpha1.ApplicationSourceType) v1alpha11.ApplicationSourceType { + return v1alpha11.ApplicationSourceType(source) } -func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources(source v1alpha1.ApplicationSources) ApplicationSources { - var v1alpha1ApplicationSources ApplicationSources +func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources(source v1alpha1.ApplicationSources) v1alpha11.ApplicationSources { + var v1alpha1ApplicationSources v1alpha11.ApplicationSources if source != nil { - v1alpha1ApplicationSources = make(ApplicationSources, len(source)) + v1alpha1ApplicationSources = make(v1alpha11.ApplicationSources, len(source)) for i := 0; i < len(source); i++ { v1alpha1ApplicationSources[i] = c.v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source[i]) } } return v1alpha1ApplicationSources } -func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2(source ApplicationSources) v1alpha1.ApplicationSources { +func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2(source v1alpha11.ApplicationSources) v1alpha1.ApplicationSources { var v1alpha1ApplicationSources v1alpha1.ApplicationSources if source != nil { v1alpha1ApplicationSources = make(v1alpha1.ApplicationSources, len(source)) @@ -991,8 +991,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2( } return v1alpha1ApplicationSources } -func (c *ConverterImpl) v1alpha1ApplicationSummaryToV1alpha1ApplicationSummary(source v1alpha1.ApplicationSummary) ApplicationSummary { - var v1alpha1ApplicationSummary ApplicationSummary +func (c *ConverterImpl) v1alpha1ApplicationSummaryToV1alpha1ApplicationSummary(source v1alpha1.ApplicationSummary) v1alpha11.ApplicationSummary { + var v1alpha1ApplicationSummary v1alpha11.ApplicationSummary var stringList []string if source.ExternalURLs != nil { stringList = make([]string, len(source.ExternalURLs)) @@ -1011,24 +1011,24 @@ func (c *ConverterImpl) v1alpha1ApplicationSummaryToV1alpha1ApplicationSummary(s v1alpha1ApplicationSummary.Images = stringList2 return v1alpha1ApplicationSummary } -func (c *ConverterImpl) v1alpha1ComparedToToV1alpha1ComparedTo(source v1alpha1.ComparedTo) ComparedTo { - var v1alpha1ComparedTo ComparedTo +func (c *ConverterImpl) v1alpha1ComparedToToV1alpha1ComparedTo(source v1alpha1.ComparedTo) v1alpha11.ComparedTo { + var v1alpha1ComparedTo v1alpha11.ComparedTo v1alpha1ComparedTo.Source = c.v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source.Source) v1alpha1ComparedTo.Destination = c.FromArgoDestination(source.Destination) v1alpha1ComparedTo.Sources = c.v1alpha1ApplicationSourcesToV1alpha1ApplicationSources(source.Sources) return v1alpha1ComparedTo } -func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env(source v1alpha1.Env) Env { - var v1alpha1Env Env +func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env(source v1alpha1.Env) v1alpha11.Env { + var v1alpha1Env v1alpha11.Env if source != nil { - v1alpha1Env = make(Env, len(source)) + v1alpha1Env = make(v1alpha11.Env, len(source)) for i := 0; i < len(source); i++ { v1alpha1Env[i] = c.pV1alpha1EnvEntryToPV1alpha1EnvEntry(source[i]) } } return v1alpha1Env } -func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env2(source Env) v1alpha1.Env { +func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env2(source v1alpha11.Env) v1alpha1.Env { var v1alpha1Env v1alpha1.Env if source != nil { v1alpha1Env = make(v1alpha1.Env, len(source)) @@ -1038,22 +1038,22 @@ func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env2(source Env) v1alpha1.Env { } return v1alpha1Env } -func (c *ConverterImpl) v1alpha1HealthStatusToV1alpha1HealthStatus(source v1alpha1.HealthStatus) HealthStatus { - var v1alpha1HealthStatus HealthStatus - v1alpha1HealthStatus.Status = health.HealthStatusCode(source.Status) +func (c *ConverterImpl) v1alpha1HealthStatusToV1alpha1HealthStatus(source v1alpha1.HealthStatus) v1alpha11.HealthStatus { + var v1alpha1HealthStatus v1alpha11.HealthStatus + v1alpha1HealthStatus.Status = string(source.Status) pString := source.Message v1alpha1HealthStatus.Message = &pString return v1alpha1HealthStatus } -func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter(source v1alpha1.HelmFileParameter) HelmFileParameter { - var v1alpha1HelmFileParameter HelmFileParameter +func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter(source v1alpha1.HelmFileParameter) v1alpha11.HelmFileParameter { + var v1alpha1HelmFileParameter v1alpha11.HelmFileParameter pString := source.Name v1alpha1HelmFileParameter.Name = &pString pString2 := source.Path v1alpha1HelmFileParameter.Path = &pString2 return v1alpha1HelmFileParameter } -func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter2(source HelmFileParameter) v1alpha1.HelmFileParameter { +func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter2(source v1alpha11.HelmFileParameter) v1alpha1.HelmFileParameter { var v1alpha1HelmFileParameter v1alpha1.HelmFileParameter var xstring string if source.Name != nil { @@ -1067,8 +1067,8 @@ func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter2(so v1alpha1HelmFileParameter.Path = xstring2 return v1alpha1HelmFileParameter } -func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter(source v1alpha1.HelmParameter) HelmParameter { - var v1alpha1HelmParameter HelmParameter +func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter(source v1alpha1.HelmParameter) v1alpha11.HelmParameter { + var v1alpha1HelmParameter v1alpha11.HelmParameter pString := source.Name v1alpha1HelmParameter.Name = &pString pString2 := source.Value @@ -1077,7 +1077,7 @@ func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter(source v1al v1alpha1HelmParameter.ForceString = &pBool return v1alpha1HelmParameter } -func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter2(source HelmParameter) v1alpha1.HelmParameter { +func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter2(source v1alpha11.HelmParameter) v1alpha1.HelmParameter { var v1alpha1HelmParameter v1alpha1.HelmParameter var xstring string if source.Name != nil { @@ -1096,21 +1096,21 @@ func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter2(source Hel v1alpha1HelmParameter.ForceString = xbool return v1alpha1HelmParameter } -func (c *ConverterImpl) v1alpha1InfoToV1alpha1Info(source Info) v1alpha1.Info { +func (c *ConverterImpl) v1alpha1InfoToV1alpha1Info(source v1alpha11.Info) v1alpha1.Info { var v1alpha1Info v1alpha1.Info v1alpha1Info.Name = source.Name v1alpha1Info.Value = source.Value return v1alpha1Info } -func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar(source v1alpha1.JsonnetVar) JsonnetVar { - var v1alpha1JsonnetVar JsonnetVar +func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar(source v1alpha1.JsonnetVar) v1alpha11.JsonnetVar { + var v1alpha1JsonnetVar v1alpha11.JsonnetVar v1alpha1JsonnetVar.Name = source.Name v1alpha1JsonnetVar.Value = source.Value pBool := source.Code v1alpha1JsonnetVar.Code = &pBool return v1alpha1JsonnetVar } -func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar2(source JsonnetVar) v1alpha1.JsonnetVar { +func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar2(source v1alpha11.JsonnetVar) v1alpha1.JsonnetVar { var v1alpha1JsonnetVar v1alpha1.JsonnetVar v1alpha1JsonnetVar.Name = source.Name v1alpha1JsonnetVar.Value = source.Value @@ -1121,17 +1121,17 @@ func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar2(source JsonnetVa v1alpha1JsonnetVar.Code = xbool return v1alpha1JsonnetVar } -func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages(source v1alpha1.KustomizeImages) KustomizeImages { - var v1alpha1KustomizeImages KustomizeImages +func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages(source v1alpha1.KustomizeImages) v1alpha11.KustomizeImages { + var v1alpha1KustomizeImages v1alpha11.KustomizeImages if source != nil { - v1alpha1KustomizeImages = make(KustomizeImages, len(source)) + v1alpha1KustomizeImages = make(v1alpha11.KustomizeImages, len(source)) for i := 0; i < len(source); i++ { - v1alpha1KustomizeImages[i] = KustomizeImage(source[i]) + v1alpha1KustomizeImages[i] = v1alpha11.KustomizeImage(source[i]) } } return v1alpha1KustomizeImages } -func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages2(source KustomizeImages) v1alpha1.KustomizeImages { +func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages2(source v1alpha11.KustomizeImages) v1alpha1.KustomizeImages { var v1alpha1KustomizeImages v1alpha1.KustomizeImages if source != nil { v1alpha1KustomizeImages = make(v1alpha1.KustomizeImages, len(source)) @@ -1141,29 +1141,29 @@ func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages2(source } return v1alpha1KustomizeImages } -func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica(source v1alpha1.KustomizeReplica) KustomizeReplica { - var v1alpha1KustomizeReplica KustomizeReplica +func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica(source v1alpha1.KustomizeReplica) v1alpha11.KustomizeReplica { + var v1alpha1KustomizeReplica v1alpha11.KustomizeReplica v1alpha1KustomizeReplica.Name = source.Name v1alpha1KustomizeReplica.Count = c.intstrIntOrStringToIntstrIntOrString(source.Count) return v1alpha1KustomizeReplica } -func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica2(source KustomizeReplica) v1alpha1.KustomizeReplica { +func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica2(source v1alpha11.KustomizeReplica) v1alpha1.KustomizeReplica { var v1alpha1KustomizeReplica v1alpha1.KustomizeReplica v1alpha1KustomizeReplica.Name = source.Name v1alpha1KustomizeReplica.Count = c.intstrIntOrStringToIntstrIntOrString(source.Count) return v1alpha1KustomizeReplica } -func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas(source v1alpha1.KustomizeReplicas) KustomizeReplicas { - var v1alpha1KustomizeReplicas KustomizeReplicas +func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas(source v1alpha1.KustomizeReplicas) v1alpha11.KustomizeReplicas { + var v1alpha1KustomizeReplicas v1alpha11.KustomizeReplicas if source != nil { - v1alpha1KustomizeReplicas = make(KustomizeReplicas, len(source)) + v1alpha1KustomizeReplicas = make(v1alpha11.KustomizeReplicas, len(source)) for i := 0; i < len(source); i++ { v1alpha1KustomizeReplicas[i] = c.v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica(source[i]) } } return v1alpha1KustomizeReplicas } -func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas2(source KustomizeReplicas) v1alpha1.KustomizeReplicas { +func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas2(source v1alpha11.KustomizeReplicas) v1alpha1.KustomizeReplicas { var v1alpha1KustomizeReplicas v1alpha1.KustomizeReplicas if source != nil { v1alpha1KustomizeReplicas = make(v1alpha1.KustomizeReplicas, len(source)) @@ -1173,21 +1173,21 @@ func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas2(so } return v1alpha1KustomizeReplicas } -func (c *ConverterImpl) v1alpha1OperationInitiatorToV1alpha1OperationInitiator(source v1alpha1.OperationInitiator) OperationInitiator { - var v1alpha1OperationInitiator OperationInitiator +func (c *ConverterImpl) v1alpha1OperationInitiatorToV1alpha1OperationInitiator(source v1alpha1.OperationInitiator) v1alpha11.OperationInitiator { + var v1alpha1OperationInitiator v1alpha11.OperationInitiator pString := source.Username v1alpha1OperationInitiator.Username = &pString pBool := source.Automated v1alpha1OperationInitiator.Automated = &pBool return v1alpha1OperationInitiator } -func (c *ConverterImpl) v1alpha1OperationToV1alpha1Operation(source v1alpha1.Operation) Operation { - var v1alpha1Operation Operation +func (c *ConverterImpl) v1alpha1OperationToV1alpha1Operation(source v1alpha1.Operation) v1alpha11.Operation { + var v1alpha1Operation v1alpha11.Operation v1alpha1Operation.Sync = c.pV1alpha1SyncOperationToPV1alpha1SyncOperation(source.Sync) v1alpha1Operation.InitiatedBy = c.v1alpha1OperationInitiatorToV1alpha1OperationInitiator(source.InitiatedBy) - var pV1alpha1InfoList []*Info + var pV1alpha1InfoList []*v1alpha11.Info if source.Info != nil { - pV1alpha1InfoList = make([]*Info, len(source.Info)) + pV1alpha1InfoList = make([]*v1alpha11.Info, len(source.Info)) for i := 0; i < len(source.Info); i++ { pV1alpha1InfoList[i] = c.pV1alpha1InfoToPV1alpha1Info(source.Info[i]) } @@ -1196,7 +1196,7 @@ func (c *ConverterImpl) v1alpha1OperationToV1alpha1Operation(source v1alpha1.Ope v1alpha1Operation.Retry = c.v1alpha1RetryStrategyToV1alpha1RetryStrategy(source.Retry) return v1alpha1Operation } -func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesListToV1alpha1IgnoreDifferences(source []ResourceIgnoreDifferences) v1alpha1.IgnoreDifferences { +func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesListToV1alpha1IgnoreDifferences(source []v1alpha11.ResourceIgnoreDifferences) v1alpha1.IgnoreDifferences { var v1alpha1IgnoreDifferences v1alpha1.IgnoreDifferences if source != nil { v1alpha1IgnoreDifferences = make(v1alpha1.IgnoreDifferences, len(source)) @@ -1206,7 +1206,7 @@ func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesListToV1alpha1IgnoreDif } return v1alpha1IgnoreDifferences } -func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences(source ResourceIgnoreDifferences) v1alpha1.ResourceIgnoreDifferences { +func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences(source v1alpha11.ResourceIgnoreDifferences) v1alpha1.ResourceIgnoreDifferences { var v1alpha1ResourceIgnoreDifferences v1alpha1.ResourceIgnoreDifferences v1alpha1ResourceIgnoreDifferences.Group = source.Group v1alpha1ResourceIgnoreDifferences.Kind = source.Kind @@ -1238,18 +1238,18 @@ func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnor v1alpha1ResourceIgnoreDifferences.ManagedFieldsManagers = stringList3 return v1alpha1ResourceIgnoreDifferences } -func (c *ConverterImpl) v1alpha1ResourceResultsToV1alpha1ResourceResults(source v1alpha1.ResourceResults) ResourceResults { - var v1alpha1ResourceResults ResourceResults +func (c *ConverterImpl) v1alpha1ResourceResultsToV1alpha1ResourceResults(source v1alpha1.ResourceResults) v1alpha11.ResourceResults { + var v1alpha1ResourceResults v1alpha11.ResourceResults if source != nil { - v1alpha1ResourceResults = make(ResourceResults, len(source)) + v1alpha1ResourceResults = make(v1alpha11.ResourceResults, len(source)) for i := 0; i < len(source); i++ { v1alpha1ResourceResults[i] = c.pV1alpha1ResourceResultToPV1alpha1ResourceResult(source[i]) } } return v1alpha1ResourceResults } -func (c *ConverterImpl) v1alpha1ResourceStatusToV1alpha1ResourceStatus(source v1alpha1.ResourceStatus) ResourceStatus { - var v1alpha1ResourceStatus ResourceStatus +func (c *ConverterImpl) v1alpha1ResourceStatusToV1alpha1ResourceStatus(source v1alpha1.ResourceStatus) v1alpha11.ResourceStatus { + var v1alpha1ResourceStatus v1alpha11.ResourceStatus pString := source.Group v1alpha1ResourceStatus.Group = &pString pString2 := source.Version @@ -1271,25 +1271,25 @@ func (c *ConverterImpl) v1alpha1ResourceStatusToV1alpha1ResourceStatus(source v1 v1alpha1ResourceStatus.SyncWave = &pInt64 return v1alpha1ResourceStatus } -func (c *ConverterImpl) v1alpha1RetryStrategyToV1alpha1RetryStrategy(source v1alpha1.RetryStrategy) RetryStrategy { - var v1alpha1RetryStrategy RetryStrategy +func (c *ConverterImpl) v1alpha1RetryStrategyToV1alpha1RetryStrategy(source v1alpha1.RetryStrategy) v1alpha11.RetryStrategy { + var v1alpha1RetryStrategy v1alpha11.RetryStrategy pInt64 := source.Limit v1alpha1RetryStrategy.Limit = &pInt64 v1alpha1RetryStrategy.Backoff = c.pV1alpha1BackoffToPV1alpha1Backoff(source.Backoff) return v1alpha1RetryStrategy } -func (c *ConverterImpl) v1alpha1RevisionHistoriesToV1alpha1RevisionHistories(source v1alpha1.RevisionHistories) RevisionHistories { - var v1alpha1RevisionHistories RevisionHistories +func (c *ConverterImpl) v1alpha1RevisionHistoriesToV1alpha1RevisionHistories(source v1alpha1.RevisionHistories) v1alpha11.RevisionHistories { + var v1alpha1RevisionHistories v1alpha11.RevisionHistories if source != nil { - v1alpha1RevisionHistories = make(RevisionHistories, len(source)) + v1alpha1RevisionHistories = make(v1alpha11.RevisionHistories, len(source)) for i := 0; i < len(source); i++ { v1alpha1RevisionHistories[i] = c.v1alpha1RevisionHistoryToV1alpha1RevisionHistory(source[i]) } } return v1alpha1RevisionHistories } -func (c *ConverterImpl) v1alpha1RevisionHistoryToV1alpha1RevisionHistory(source v1alpha1.RevisionHistory) RevisionHistory { - var v1alpha1RevisionHistory RevisionHistory +func (c *ConverterImpl) v1alpha1RevisionHistoryToV1alpha1RevisionHistory(source v1alpha1.RevisionHistory) v1alpha11.RevisionHistory { + var v1alpha1RevisionHistory v1alpha11.RevisionHistory pString := source.Revision v1alpha1RevisionHistory.Revision = &pString v1alpha1RevisionHistory.DeployedAt = c.v1TimeToPV1Time(source.DeployedAt) @@ -1308,8 +1308,8 @@ func (c *ConverterImpl) v1alpha1RevisionHistoryToV1alpha1RevisionHistory(source v1alpha1RevisionHistory.Revisions = stringList return v1alpha1RevisionHistory } -func (c *ConverterImpl) v1alpha1SyncOperationResourceToV1alpha1SyncOperationResource(source v1alpha1.SyncOperationResource) SyncOperationResource { - var v1alpha1SyncOperationResource SyncOperationResource +func (c *ConverterImpl) v1alpha1SyncOperationResourceToV1alpha1SyncOperationResource(source v1alpha1.SyncOperationResource) v1alpha11.SyncOperationResource { + var v1alpha1SyncOperationResource v1alpha11.SyncOperationResource pString := source.Group v1alpha1SyncOperationResource.Group = &pString v1alpha1SyncOperationResource.Kind = source.Kind @@ -1318,17 +1318,17 @@ func (c *ConverterImpl) v1alpha1SyncOperationResourceToV1alpha1SyncOperationReso v1alpha1SyncOperationResource.Namespace = &pString2 return v1alpha1SyncOperationResource } -func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions(source v1alpha1.SyncOptions) SyncOptions { - var v1alpha1SyncOptions SyncOptions +func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions(source v1alpha1.SyncOptions) v1alpha11.SyncOptions { + var v1alpha1SyncOptions v1alpha11.SyncOptions if source != nil { - v1alpha1SyncOptions = make(SyncOptions, len(source)) + v1alpha1SyncOptions = make(v1alpha11.SyncOptions, len(source)) for i := 0; i < len(source); i++ { v1alpha1SyncOptions[i] = source[i] } } return v1alpha1SyncOptions } -func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions2(source SyncOptions) v1alpha1.SyncOptions { +func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions2(source v1alpha11.SyncOptions) v1alpha1.SyncOptions { var v1alpha1SyncOptions v1alpha1.SyncOptions if source != nil { v1alpha1SyncOptions = make(v1alpha1.SyncOptions, len(source)) @@ -1341,8 +1341,8 @@ func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions2(source SyncOpt func (c *ConverterImpl) v1alpha1SyncStatusCodeToString(source v1alpha1.SyncStatusCode) string { return string(source) } -func (c *ConverterImpl) v1alpha1SyncStatusToV1alpha1SyncStatus(source v1alpha1.SyncStatus) SyncStatus { - var v1alpha1SyncStatus SyncStatus +func (c *ConverterImpl) v1alpha1SyncStatusToV1alpha1SyncStatus(source v1alpha1.SyncStatus) v1alpha11.SyncStatus { + var v1alpha1SyncStatus v1alpha11.SyncStatus v1alpha1SyncStatus.Status = c.v1alpha1SyncStatusCodeToString(source.Status) v1alpha1SyncStatus.ComparedTo = c.v1alpha1ComparedToToV1alpha1ComparedTo(source.ComparedTo) pString := source.Revision @@ -1357,8 +1357,8 @@ func (c *ConverterImpl) v1alpha1SyncStatusToV1alpha1SyncStatus(source v1alpha1.S v1alpha1SyncStatus.Revisions = stringList return v1alpha1SyncStatus } -func (c *ConverterImpl) v1alpha1SyncStrategyApplyToV1alpha1SyncStrategyApply(source v1alpha1.SyncStrategyApply) SyncStrategyApply { - var v1alpha1SyncStrategyApply SyncStrategyApply +func (c *ConverterImpl) v1alpha1SyncStrategyApplyToV1alpha1SyncStrategyApply(source v1alpha1.SyncStrategyApply) v1alpha11.SyncStrategyApply { + var v1alpha1SyncStrategyApply v1alpha11.SyncStrategyApply pBool := source.Force v1alpha1SyncStrategyApply.Force = &pBool return v1alpha1SyncStrategyApply diff --git a/apis/applicationsets/v1alpha1/conversions.go b/pkg/clients/applicationsets/conversions.go similarity index 66% rename from apis/applicationsets/v1alpha1/conversions.go rename to pkg/clients/applicationsets/conversions.go index 8d9bce0..a9fea08 100644 --- a/apis/applicationsets/v1alpha1/conversions.go +++ b/pkg/clients/applicationsets/conversions.go @@ -1,9 +1,11 @@ -package v1alpha1 +package applicationsets import ( argocdv1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "k8s.io/apimachinery/pkg/runtime" + + "github.com/crossplane-contrib/provider-argocd/apis/applicationsets/v1alpha1" ) // Converter helps to convert ArgoCD types to api types of this provider and vise-versa @@ -14,7 +16,7 @@ import ( // goverter:extend ExtV1JSONToRuntimeRawExtension // goverter:struct:comment // +k8s:deepcopy-gen=false // goverter:output:file ./zz_generated.conversion.go -// goverter:output:package github.com/crossplane-contrib/provider-argocd/apis/applicationsets/v1alpha1 +// goverter:output:package github.com/crossplane-contrib/provider-argocd/pkg/clients/applicationsets // +k8s:deepcopy-gen=false type Converter interface { @@ -22,15 +24,15 @@ type Converter interface { // goverter:ignore ServerSelector // goverter:ignore NameRef // goverter:ignore NameSelector - FromArgoDestination(in argocdv1alpha1.ApplicationDestination) ApplicationDestination + FromArgoDestination(in argocdv1alpha1.ApplicationDestination) v1alpha1.ApplicationDestination - ToArgoDestination(in ApplicationDestination) argocdv1alpha1.ApplicationDestination + ToArgoDestination(in v1alpha1.ApplicationDestination) argocdv1alpha1.ApplicationDestination - ToArgoApplicationSetSpec(in *ApplicationSetParameters) *argocdv1alpha1.ApplicationSetSpec - FromArgoApplicationSetSpec(in *argocdv1alpha1.ApplicationSetSpec) *ApplicationSetParameters + ToArgoApplicationSetSpec(in *v1alpha1.ApplicationSetParameters) *argocdv1alpha1.ApplicationSetSpec + FromArgoApplicationSetSpec(in *argocdv1alpha1.ApplicationSetSpec) *v1alpha1.ApplicationSetParameters - FromArgoApplicationSetStatus(in *argocdv1alpha1.ApplicationSetStatus) *ArgoApplicationSetStatus - ToArgoApplicationSetStatus(in *ArgoApplicationSetStatus) *argocdv1alpha1.ApplicationSetStatus + FromArgoApplicationSetStatus(in *argocdv1alpha1.ApplicationSetStatus) *v1alpha1.ArgoApplicationSetStatus + ToArgoApplicationSetStatus(in *v1alpha1.ArgoApplicationSetStatus) *argocdv1alpha1.ApplicationSetStatus } // ExtV1JSONToRuntimeRawExtension converts an extv1.JSON into a diff --git a/apis/applicationsets/v1alpha1/zz_generated.conversion.go b/pkg/clients/applicationsets/zz_generated.conversion.go similarity index 82% rename from apis/applicationsets/v1alpha1/zz_generated.conversion.go rename to pkg/clients/applicationsets/zz_generated.conversion.go index 45f8b8a..474f454 100755 --- a/apis/applicationsets/v1alpha1/zz_generated.conversion.go +++ b/pkg/clients/applicationsets/zz_generated.conversion.go @@ -1,10 +1,11 @@ // Code generated by github.com/jmattheis/goverter, DO NOT EDIT. //go:build !ignore_autogenerated -package v1alpha1 +package applicationsets import ( v1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" + v1alpha11 "github.com/crossplane-contrib/provider-argocd/apis/applicationsets/v1alpha1" v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" v11 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -15,14 +16,14 @@ import ( // +k8s:deepcopy-gen=false type ConverterImpl struct{} -func (c *ConverterImpl) FromArgoApplicationSetSpec(source *v1alpha1.ApplicationSetSpec) *ApplicationSetParameters { - var pV1alpha1ApplicationSetParameters *ApplicationSetParameters +func (c *ConverterImpl) FromArgoApplicationSetSpec(source *v1alpha1.ApplicationSetSpec) *v1alpha11.ApplicationSetParameters { + var pV1alpha1ApplicationSetParameters *v1alpha11.ApplicationSetParameters if source != nil { - var v1alpha1ApplicationSetParameters ApplicationSetParameters + var v1alpha1ApplicationSetParameters v1alpha11.ApplicationSetParameters v1alpha1ApplicationSetParameters.GoTemplate = (*source).GoTemplate - var v1alpha1ApplicationSetGeneratorList []ApplicationSetGenerator + var v1alpha1ApplicationSetGeneratorList []v1alpha11.ApplicationSetGenerator if (*source).Generators != nil { - v1alpha1ApplicationSetGeneratorList = make([]ApplicationSetGenerator, len((*source).Generators)) + v1alpha1ApplicationSetGeneratorList = make([]v1alpha11.ApplicationSetGenerator, len((*source).Generators)) for i := 0; i < len((*source).Generators); i++ { v1alpha1ApplicationSetGeneratorList[i] = c.v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetGenerator((*source).Generators[i]) } @@ -45,21 +46,21 @@ func (c *ConverterImpl) FromArgoApplicationSetSpec(source *v1alpha1.ApplicationS } return pV1alpha1ApplicationSetParameters } -func (c *ConverterImpl) FromArgoApplicationSetStatus(source *v1alpha1.ApplicationSetStatus) *ArgoApplicationSetStatus { - var pV1alpha1ArgoApplicationSetStatus *ArgoApplicationSetStatus +func (c *ConverterImpl) FromArgoApplicationSetStatus(source *v1alpha1.ApplicationSetStatus) *v1alpha11.ArgoApplicationSetStatus { + var pV1alpha1ArgoApplicationSetStatus *v1alpha11.ArgoApplicationSetStatus if source != nil { - var v1alpha1ArgoApplicationSetStatus ArgoApplicationSetStatus - var v1alpha1ApplicationSetConditionList []ApplicationSetCondition + var v1alpha1ArgoApplicationSetStatus v1alpha11.ArgoApplicationSetStatus + var v1alpha1ApplicationSetConditionList []v1alpha11.ApplicationSetCondition if (*source).Conditions != nil { - v1alpha1ApplicationSetConditionList = make([]ApplicationSetCondition, len((*source).Conditions)) + v1alpha1ApplicationSetConditionList = make([]v1alpha11.ApplicationSetCondition, len((*source).Conditions)) for i := 0; i < len((*source).Conditions); i++ { v1alpha1ApplicationSetConditionList[i] = c.v1alpha1ApplicationSetConditionToV1alpha1ApplicationSetCondition((*source).Conditions[i]) } } v1alpha1ArgoApplicationSetStatus.Conditions = v1alpha1ApplicationSetConditionList - var v1alpha1ApplicationSetApplicationStatusList []ApplicationSetApplicationStatus + var v1alpha1ApplicationSetApplicationStatusList []v1alpha11.ApplicationSetApplicationStatus if (*source).ApplicationStatus != nil { - v1alpha1ApplicationSetApplicationStatusList = make([]ApplicationSetApplicationStatus, len((*source).ApplicationStatus)) + v1alpha1ApplicationSetApplicationStatusList = make([]v1alpha11.ApplicationSetApplicationStatus, len((*source).ApplicationStatus)) for j := 0; j < len((*source).ApplicationStatus); j++ { v1alpha1ApplicationSetApplicationStatusList[j] = c.v1alpha1ApplicationSetApplicationStatusToV1alpha1ApplicationSetApplicationStatus((*source).ApplicationStatus[j]) } @@ -69,8 +70,8 @@ func (c *ConverterImpl) FromArgoApplicationSetStatus(source *v1alpha1.Applicatio } return pV1alpha1ArgoApplicationSetStatus } -func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) ApplicationDestination { - var v1alpha1ApplicationDestination ApplicationDestination +func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestination) v1alpha11.ApplicationDestination { + var v1alpha1ApplicationDestination v1alpha11.ApplicationDestination pString := source.Server v1alpha1ApplicationDestination.Server = &pString pString2 := source.Namespace @@ -79,7 +80,7 @@ func (c *ConverterImpl) FromArgoDestination(source v1alpha1.ApplicationDestinati v1alpha1ApplicationDestination.Name = &pString3 return v1alpha1ApplicationDestination } -func (c *ConverterImpl) ToArgoApplicationSetSpec(source *ApplicationSetParameters) *v1alpha1.ApplicationSetSpec { +func (c *ConverterImpl) ToArgoApplicationSetSpec(source *v1alpha11.ApplicationSetParameters) *v1alpha1.ApplicationSetSpec { var pV1alpha1ApplicationSetSpec *v1alpha1.ApplicationSetSpec if source != nil { var v1alpha1ApplicationSetSpec v1alpha1.ApplicationSetSpec @@ -109,7 +110,7 @@ func (c *ConverterImpl) ToArgoApplicationSetSpec(source *ApplicationSetParameter } return pV1alpha1ApplicationSetSpec } -func (c *ConverterImpl) ToArgoApplicationSetStatus(source *ArgoApplicationSetStatus) *v1alpha1.ApplicationSetStatus { +func (c *ConverterImpl) ToArgoApplicationSetStatus(source *v1alpha11.ArgoApplicationSetStatus) *v1alpha1.ApplicationSetStatus { var pV1alpha1ApplicationSetStatus *v1alpha1.ApplicationSetStatus if source != nil { var v1alpha1ApplicationSetStatus v1alpha1.ApplicationSetStatus @@ -133,7 +134,7 @@ func (c *ConverterImpl) ToArgoApplicationSetStatus(source *ArgoApplicationSetSta } return pV1alpha1ApplicationSetStatus } -func (c *ConverterImpl) ToArgoDestination(source ApplicationDestination) v1alpha1.ApplicationDestination { +func (c *ConverterImpl) ToArgoDestination(source v1alpha11.ApplicationDestination) v1alpha1.ApplicationDestination { var v1alpha1ApplicationDestination v1alpha1.ApplicationDestination var xstring string if source.Server != nil { @@ -208,10 +209,10 @@ func (c *ConverterImpl) pV1TimeToPV1Time(source *v11.Time) *v11.Time { } return pV1Time } -func (c *ConverterImpl) pV1alpha1ApplicationPreservedFieldsToPV1alpha1ApplicationPreservedFields(source *v1alpha1.ApplicationPreservedFields) *ApplicationPreservedFields { - var pV1alpha1ApplicationPreservedFields *ApplicationPreservedFields +func (c *ConverterImpl) pV1alpha1ApplicationPreservedFieldsToPV1alpha1ApplicationPreservedFields(source *v1alpha1.ApplicationPreservedFields) *v1alpha11.ApplicationPreservedFields { + var pV1alpha1ApplicationPreservedFields *v1alpha11.ApplicationPreservedFields if source != nil { - var v1alpha1ApplicationPreservedFields ApplicationPreservedFields + var v1alpha1ApplicationPreservedFields v1alpha11.ApplicationPreservedFields var stringList []string if (*source).Annotations != nil { stringList = make([]string, len((*source).Annotations)) @@ -224,7 +225,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationPreservedFieldsToPV1alpha1Applicatio } return pV1alpha1ApplicationPreservedFields } -func (c *ConverterImpl) pV1alpha1ApplicationPreservedFieldsToPV1alpha1ApplicationPreservedFields2(source *ApplicationPreservedFields) *v1alpha1.ApplicationPreservedFields { +func (c *ConverterImpl) pV1alpha1ApplicationPreservedFieldsToPV1alpha1ApplicationPreservedFields2(source *v1alpha11.ApplicationPreservedFields) *v1alpha1.ApplicationPreservedFields { var pV1alpha1ApplicationPreservedFields *v1alpha1.ApplicationPreservedFields if source != nil { var v1alpha1ApplicationPreservedFields v1alpha1.ApplicationPreservedFields @@ -240,13 +241,13 @@ func (c *ConverterImpl) pV1alpha1ApplicationPreservedFieldsToPV1alpha1Applicatio } return pV1alpha1ApplicationPreservedFields } -func (c *ConverterImpl) pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1ApplicationSetRolloutStrategy(source *v1alpha1.ApplicationSetRolloutStrategy) *ApplicationSetRolloutStrategy { - var pV1alpha1ApplicationSetRolloutStrategy *ApplicationSetRolloutStrategy +func (c *ConverterImpl) pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1ApplicationSetRolloutStrategy(source *v1alpha1.ApplicationSetRolloutStrategy) *v1alpha11.ApplicationSetRolloutStrategy { + var pV1alpha1ApplicationSetRolloutStrategy *v1alpha11.ApplicationSetRolloutStrategy if source != nil { - var v1alpha1ApplicationSetRolloutStrategy ApplicationSetRolloutStrategy - var v1alpha1ApplicationSetRolloutStepList []ApplicationSetRolloutStep + var v1alpha1ApplicationSetRolloutStrategy v1alpha11.ApplicationSetRolloutStrategy + var v1alpha1ApplicationSetRolloutStepList []v1alpha11.ApplicationSetRolloutStep if (*source).Steps != nil { - v1alpha1ApplicationSetRolloutStepList = make([]ApplicationSetRolloutStep, len((*source).Steps)) + v1alpha1ApplicationSetRolloutStepList = make([]v1alpha11.ApplicationSetRolloutStep, len((*source).Steps)) for i := 0; i < len((*source).Steps); i++ { v1alpha1ApplicationSetRolloutStepList[i] = c.v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSetRolloutStep((*source).Steps[i]) } @@ -256,7 +257,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1Applica } return pV1alpha1ApplicationSetRolloutStrategy } -func (c *ConverterImpl) pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1ApplicationSetRolloutStrategy2(source *ApplicationSetRolloutStrategy) *v1alpha1.ApplicationSetRolloutStrategy { +func (c *ConverterImpl) pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1ApplicationSetRolloutStrategy2(source *v1alpha11.ApplicationSetRolloutStrategy) *v1alpha1.ApplicationSetRolloutStrategy { var pV1alpha1ApplicationSetRolloutStrategy *v1alpha1.ApplicationSetRolloutStrategy if source != nil { var v1alpha1ApplicationSetRolloutStrategy v1alpha1.ApplicationSetRolloutStrategy @@ -272,17 +273,17 @@ func (c *ConverterImpl) pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1Applica } return pV1alpha1ApplicationSetRolloutStrategy } -func (c *ConverterImpl) pV1alpha1ApplicationSetStrategyToPV1alpha1ApplicationSetStrategy(source *v1alpha1.ApplicationSetStrategy) *ApplicationSetStrategy { - var pV1alpha1ApplicationSetStrategy *ApplicationSetStrategy +func (c *ConverterImpl) pV1alpha1ApplicationSetStrategyToPV1alpha1ApplicationSetStrategy(source *v1alpha1.ApplicationSetStrategy) *v1alpha11.ApplicationSetStrategy { + var pV1alpha1ApplicationSetStrategy *v1alpha11.ApplicationSetStrategy if source != nil { - var v1alpha1ApplicationSetStrategy ApplicationSetStrategy + var v1alpha1ApplicationSetStrategy v1alpha11.ApplicationSetStrategy v1alpha1ApplicationSetStrategy.Type = (*source).Type v1alpha1ApplicationSetStrategy.RollingSync = c.pV1alpha1ApplicationSetRolloutStrategyToPV1alpha1ApplicationSetRolloutStrategy((*source).RollingSync) pV1alpha1ApplicationSetStrategy = &v1alpha1ApplicationSetStrategy } return pV1alpha1ApplicationSetStrategy } -func (c *ConverterImpl) pV1alpha1ApplicationSetStrategyToPV1alpha1ApplicationSetStrategy2(source *ApplicationSetStrategy) *v1alpha1.ApplicationSetStrategy { +func (c *ConverterImpl) pV1alpha1ApplicationSetStrategyToPV1alpha1ApplicationSetStrategy2(source *v1alpha11.ApplicationSetStrategy) *v1alpha1.ApplicationSetStrategy { var pV1alpha1ApplicationSetStrategy *v1alpha1.ApplicationSetStrategy if source != nil { var v1alpha1ApplicationSetStrategy v1alpha1.ApplicationSetStrategy @@ -292,14 +293,14 @@ func (c *ConverterImpl) pV1alpha1ApplicationSetStrategyToPV1alpha1ApplicationSet } return pV1alpha1ApplicationSetStrategy } -func (c *ConverterImpl) pV1alpha1ApplicationSetSyncPolicyToPV1alpha1ApplicationSetSyncPolicy(source *v1alpha1.ApplicationSetSyncPolicy) *ApplicationSetSyncPolicy { - var pV1alpha1ApplicationSetSyncPolicy *ApplicationSetSyncPolicy +func (c *ConverterImpl) pV1alpha1ApplicationSetSyncPolicyToPV1alpha1ApplicationSetSyncPolicy(source *v1alpha1.ApplicationSetSyncPolicy) *v1alpha11.ApplicationSetSyncPolicy { + var pV1alpha1ApplicationSetSyncPolicy *v1alpha11.ApplicationSetSyncPolicy if source != nil { - var v1alpha1ApplicationSetSyncPolicy ApplicationSetSyncPolicy + var v1alpha1ApplicationSetSyncPolicy v1alpha11.ApplicationSetSyncPolicy v1alpha1ApplicationSetSyncPolicy.PreserveResourcesOnDeletion = (*source).PreserveResourcesOnDeletion - var pV1alpha1ApplicationsSyncPolicy *ApplicationsSyncPolicy + var pV1alpha1ApplicationsSyncPolicy *v1alpha11.ApplicationsSyncPolicy if (*source).ApplicationsSync != nil { - v1alpha1ApplicationsSyncPolicy := ApplicationsSyncPolicy(*(*source).ApplicationsSync) + v1alpha1ApplicationsSyncPolicy := v1alpha11.ApplicationsSyncPolicy(*(*source).ApplicationsSync) pV1alpha1ApplicationsSyncPolicy = &v1alpha1ApplicationsSyncPolicy } v1alpha1ApplicationSetSyncPolicy.ApplicationsSync = pV1alpha1ApplicationsSyncPolicy @@ -307,7 +308,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSetSyncPolicyToPV1alpha1ApplicationS } return pV1alpha1ApplicationSetSyncPolicy } -func (c *ConverterImpl) pV1alpha1ApplicationSetSyncPolicyToPV1alpha1ApplicationSetSyncPolicy2(source *ApplicationSetSyncPolicy) *v1alpha1.ApplicationSetSyncPolicy { +func (c *ConverterImpl) pV1alpha1ApplicationSetSyncPolicyToPV1alpha1ApplicationSetSyncPolicy2(source *v1alpha11.ApplicationSetSyncPolicy) *v1alpha1.ApplicationSetSyncPolicy { var pV1alpha1ApplicationSetSyncPolicy *v1alpha1.ApplicationSetSyncPolicy if source != nil { var v1alpha1ApplicationSetSyncPolicy v1alpha1.ApplicationSetSyncPolicy @@ -322,10 +323,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSetSyncPolicyToPV1alpha1ApplicationS } return pV1alpha1ApplicationSetSyncPolicy } -func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory(source *v1alpha1.ApplicationSourceDirectory) *ApplicationSourceDirectory { - var pV1alpha1ApplicationSourceDirectory *ApplicationSourceDirectory +func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory(source *v1alpha1.ApplicationSourceDirectory) *v1alpha11.ApplicationSourceDirectory { + var pV1alpha1ApplicationSourceDirectory *v1alpha11.ApplicationSourceDirectory if source != nil { - var v1alpha1ApplicationSourceDirectory ApplicationSourceDirectory + var v1alpha1ApplicationSourceDirectory v1alpha11.ApplicationSourceDirectory pBool := (*source).Recurse v1alpha1ApplicationSourceDirectory.Recurse = &pBool v1alpha1ApplicationSourceDirectory.Jsonnet = c.v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet((*source).Jsonnet) @@ -337,7 +338,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceDirectory } -func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory2(source *ApplicationSourceDirectory) *v1alpha1.ApplicationSourceDirectory { +func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1ApplicationSourceDirectory2(source *v1alpha11.ApplicationSourceDirectory) *v1alpha1.ApplicationSourceDirectory { var pV1alpha1ApplicationSourceDirectory *v1alpha1.ApplicationSourceDirectory if source != nil { var v1alpha1ApplicationSourceDirectory v1alpha1.ApplicationSourceDirectory @@ -361,10 +362,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceDirectoryToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceDirectory } -func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm(source *v1alpha1.ApplicationSourceHelm) *ApplicationSourceHelm { - var pV1alpha1ApplicationSourceHelm *ApplicationSourceHelm +func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm(source *v1alpha1.ApplicationSourceHelm) *v1alpha11.ApplicationSourceHelm { + var pV1alpha1ApplicationSourceHelm *v1alpha11.ApplicationSourceHelm if source != nil { - var v1alpha1ApplicationSourceHelm ApplicationSourceHelm + var v1alpha1ApplicationSourceHelm v1alpha11.ApplicationSourceHelm var stringList []string if (*source).ValueFiles != nil { stringList = make([]string, len((*source).ValueFiles)) @@ -373,9 +374,9 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour } } v1alpha1ApplicationSourceHelm.ValueFiles = stringList - var v1alpha1HelmParameterList []HelmParameter + var v1alpha1HelmParameterList []v1alpha11.HelmParameter if (*source).Parameters != nil { - v1alpha1HelmParameterList = make([]HelmParameter, len((*source).Parameters)) + v1alpha1HelmParameterList = make([]v1alpha11.HelmParameter, len((*source).Parameters)) for j := 0; j < len((*source).Parameters); j++ { v1alpha1HelmParameterList[j] = c.v1alpha1HelmParameterToV1alpha1HelmParameter((*source).Parameters[j]) } @@ -385,9 +386,9 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour v1alpha1ApplicationSourceHelm.ReleaseName = &pString pString2 := (*source).Values v1alpha1ApplicationSourceHelm.Values = &pString2 - var v1alpha1HelmFileParameterList []HelmFileParameter + var v1alpha1HelmFileParameterList []v1alpha11.HelmFileParameter if (*source).FileParameters != nil { - v1alpha1HelmFileParameterList = make([]HelmFileParameter, len((*source).FileParameters)) + v1alpha1HelmFileParameterList = make([]v1alpha11.HelmFileParameter, len((*source).FileParameters)) for k := 0; k < len((*source).FileParameters); k++ { v1alpha1HelmFileParameterList[k] = c.v1alpha1HelmFileParameterToV1alpha1HelmFileParameter((*source).FileParameters[k]) } @@ -406,7 +407,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour } return pV1alpha1ApplicationSourceHelm } -func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm2(source *ApplicationSourceHelm) *v1alpha1.ApplicationSourceHelm { +func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSourceHelm2(source *v1alpha11.ApplicationSourceHelm) *v1alpha1.ApplicationSourceHelm { var pV1alpha1ApplicationSourceHelm *v1alpha1.ApplicationSourceHelm if source != nil { var v1alpha1ApplicationSourceHelm v1alpha1.ApplicationSourceHelm @@ -469,10 +470,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceHelmToPV1alpha1ApplicationSour } return pV1alpha1ApplicationSourceHelm } -func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize(source *v1alpha1.ApplicationSourceKustomize) *ApplicationSourceKustomize { - var pV1alpha1ApplicationSourceKustomize *ApplicationSourceKustomize +func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize(source *v1alpha1.ApplicationSourceKustomize) *v1alpha11.ApplicationSourceKustomize { + var pV1alpha1ApplicationSourceKustomize *v1alpha11.ApplicationSourceKustomize if source != nil { - var v1alpha1ApplicationSourceKustomize ApplicationSourceKustomize + var v1alpha1ApplicationSourceKustomize v1alpha11.ApplicationSourceKustomize pString := (*source).NamePrefix v1alpha1ApplicationSourceKustomize.NamePrefix = &pString pString2 := (*source).NameSuffix @@ -503,7 +504,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceKustomize } -func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize2(source *ApplicationSourceKustomize) *v1alpha1.ApplicationSourceKustomize { +func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1ApplicationSourceKustomize2(source *v1alpha11.ApplicationSourceKustomize) *v1alpha1.ApplicationSourceKustomize { var pV1alpha1ApplicationSourceKustomize *v1alpha1.ApplicationSourceKustomize if source != nil { var v1alpha1ApplicationSourceKustomize v1alpha1.ApplicationSourceKustomize @@ -558,10 +559,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceKustomizeToPV1alpha1Applicatio } return pV1alpha1ApplicationSourceKustomize } -func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin(source *v1alpha1.ApplicationSourcePlugin) *ApplicationSourcePlugin { - var pV1alpha1ApplicationSourcePlugin *ApplicationSourcePlugin +func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin(source *v1alpha1.ApplicationSourcePlugin) *v1alpha11.ApplicationSourcePlugin { + var pV1alpha1ApplicationSourcePlugin *v1alpha11.ApplicationSourcePlugin if source != nil { - var v1alpha1ApplicationSourcePlugin ApplicationSourcePlugin + var v1alpha1ApplicationSourcePlugin v1alpha11.ApplicationSourcePlugin pString := (*source).Name v1alpha1ApplicationSourcePlugin.Name = &pString v1alpha1ApplicationSourcePlugin.Env = c.v1alpha1EnvToV1alpha1Env((*source).Env) @@ -570,7 +571,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSo } return pV1alpha1ApplicationSourcePlugin } -func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin2(source *ApplicationSourcePlugin) *v1alpha1.ApplicationSourcePlugin { +func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSourcePlugin2(source *v1alpha11.ApplicationSourcePlugin) *v1alpha1.ApplicationSourcePlugin { var pV1alpha1ApplicationSourcePlugin *v1alpha1.ApplicationSourcePlugin if source != nil { var v1alpha1ApplicationSourcePlugin v1alpha1.ApplicationSourcePlugin @@ -585,10 +586,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourcePluginToPV1alpha1ApplicationSo } return pV1alpha1ApplicationSourcePlugin } -func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource(source *v1alpha1.ApplicationSource) *ApplicationSource { - var pV1alpha1ApplicationSource *ApplicationSource +func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource(source *v1alpha1.ApplicationSource) *v1alpha11.ApplicationSource { + var pV1alpha1ApplicationSource *v1alpha11.ApplicationSource if source != nil { - var v1alpha1ApplicationSource ApplicationSource + var v1alpha1ApplicationSource v1alpha11.ApplicationSource v1alpha1ApplicationSource.RepoURL = (*source).RepoURL pString := (*source).Path v1alpha1ApplicationSource.Path = &pString @@ -606,7 +607,7 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource(s } return pV1alpha1ApplicationSource } -func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2(source *ApplicationSource) *v1alpha1.ApplicationSource { +func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2(source *v1alpha11.ApplicationSource) *v1alpha1.ApplicationSource { var pV1alpha1ApplicationSource *v1alpha1.ApplicationSource if source != nil { var v1alpha1ApplicationSource v1alpha1.ApplicationSource @@ -639,10 +640,10 @@ func (c *ConverterImpl) pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2( } return pV1alpha1ApplicationSource } -func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff(source *v1alpha1.Backoff) *Backoff { - var pV1alpha1Backoff *Backoff +func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff(source *v1alpha1.Backoff) *v1alpha11.Backoff { + var pV1alpha1Backoff *v1alpha11.Backoff if source != nil { - var v1alpha1Backoff Backoff + var v1alpha1Backoff v1alpha11.Backoff pString := (*source).Duration v1alpha1Backoff.Duration = &pString var pInt64 *int64 @@ -657,7 +658,7 @@ func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff(source *v1alpha1.Back } return pV1alpha1Backoff } -func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff2(source *Backoff) *v1alpha1.Backoff { +func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff2(source *v1alpha11.Backoff) *v1alpha1.Backoff { var pV1alpha1Backoff *v1alpha1.Backoff if source != nil { var v1alpha1Backoff v1alpha1.Backoff @@ -681,17 +682,17 @@ func (c *ConverterImpl) pV1alpha1BackoffToPV1alpha1Backoff2(source *Backoff) *v1 } return pV1alpha1Backoff } -func (c *ConverterImpl) pV1alpha1BasicAuthBitbucketServerToPV1alpha1BasicAuthBitbucketServer(source *v1alpha1.BasicAuthBitbucketServer) *BasicAuthBitbucketServer { - var pV1alpha1BasicAuthBitbucketServer *BasicAuthBitbucketServer +func (c *ConverterImpl) pV1alpha1BasicAuthBitbucketServerToPV1alpha1BasicAuthBitbucketServer(source *v1alpha1.BasicAuthBitbucketServer) *v1alpha11.BasicAuthBitbucketServer { + var pV1alpha1BasicAuthBitbucketServer *v1alpha11.BasicAuthBitbucketServer if source != nil { - var v1alpha1BasicAuthBitbucketServer BasicAuthBitbucketServer + var v1alpha1BasicAuthBitbucketServer v1alpha11.BasicAuthBitbucketServer v1alpha1BasicAuthBitbucketServer.Username = (*source).Username v1alpha1BasicAuthBitbucketServer.PasswordRef = c.pV1alpha1SecretRefToPV1alpha1SecretRef((*source).PasswordRef) pV1alpha1BasicAuthBitbucketServer = &v1alpha1BasicAuthBitbucketServer } return pV1alpha1BasicAuthBitbucketServer } -func (c *ConverterImpl) pV1alpha1BasicAuthBitbucketServerToPV1alpha1BasicAuthBitbucketServer2(source *BasicAuthBitbucketServer) *v1alpha1.BasicAuthBitbucketServer { +func (c *ConverterImpl) pV1alpha1BasicAuthBitbucketServerToPV1alpha1BasicAuthBitbucketServer2(source *v1alpha11.BasicAuthBitbucketServer) *v1alpha1.BasicAuthBitbucketServer { var pV1alpha1BasicAuthBitbucketServer *v1alpha1.BasicAuthBitbucketServer if source != nil { var v1alpha1BasicAuthBitbucketServer v1alpha1.BasicAuthBitbucketServer @@ -701,16 +702,16 @@ func (c *ConverterImpl) pV1alpha1BasicAuthBitbucketServerToPV1alpha1BasicAuthBit } return pV1alpha1BasicAuthBitbucketServer } -func (c *ConverterImpl) pV1alpha1BearerTokenBitbucketCloudToPV1alpha1BearerTokenBitbucketCloud(source *v1alpha1.BearerTokenBitbucketCloud) *BearerTokenBitbucketCloud { - var pV1alpha1BearerTokenBitbucketCloud *BearerTokenBitbucketCloud +func (c *ConverterImpl) pV1alpha1BearerTokenBitbucketCloudToPV1alpha1BearerTokenBitbucketCloud(source *v1alpha1.BearerTokenBitbucketCloud) *v1alpha11.BearerTokenBitbucketCloud { + var pV1alpha1BearerTokenBitbucketCloud *v1alpha11.BearerTokenBitbucketCloud if source != nil { - var v1alpha1BearerTokenBitbucketCloud BearerTokenBitbucketCloud + var v1alpha1BearerTokenBitbucketCloud v1alpha11.BearerTokenBitbucketCloud v1alpha1BearerTokenBitbucketCloud.TokenRef = c.pV1alpha1SecretRefToPV1alpha1SecretRef((*source).TokenRef) pV1alpha1BearerTokenBitbucketCloud = &v1alpha1BearerTokenBitbucketCloud } return pV1alpha1BearerTokenBitbucketCloud } -func (c *ConverterImpl) pV1alpha1BearerTokenBitbucketCloudToPV1alpha1BearerTokenBitbucketCloud2(source *BearerTokenBitbucketCloud) *v1alpha1.BearerTokenBitbucketCloud { +func (c *ConverterImpl) pV1alpha1BearerTokenBitbucketCloudToPV1alpha1BearerTokenBitbucketCloud2(source *v1alpha11.BearerTokenBitbucketCloud) *v1alpha1.BearerTokenBitbucketCloud { var pV1alpha1BearerTokenBitbucketCloud *v1alpha1.BearerTokenBitbucketCloud if source != nil { var v1alpha1BearerTokenBitbucketCloud v1alpha1.BearerTokenBitbucketCloud @@ -719,10 +720,10 @@ func (c *ConverterImpl) pV1alpha1BearerTokenBitbucketCloudToPV1alpha1BearerToken } return pV1alpha1BearerTokenBitbucketCloud } -func (c *ConverterImpl) pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator(source *v1alpha1.ClusterGenerator) *ClusterGenerator { - var pV1alpha1ClusterGenerator *ClusterGenerator +func (c *ConverterImpl) pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator(source *v1alpha1.ClusterGenerator) *v1alpha11.ClusterGenerator { + var pV1alpha1ClusterGenerator *v1alpha11.ClusterGenerator if source != nil { - var v1alpha1ClusterGenerator ClusterGenerator + var v1alpha1ClusterGenerator v1alpha11.ClusterGenerator v1alpha1ClusterGenerator.Selector = c.v1LabelSelectorToV1LabelSelector((*source).Selector) v1alpha1ClusterGenerator.Template = c.v1alpha1ApplicationSetTemplateToV1alpha1ApplicationSetTemplate((*source).Template) mapStringString := make(map[string]string, len((*source).Values)) @@ -734,7 +735,7 @@ func (c *ConverterImpl) pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator(sou } return pV1alpha1ClusterGenerator } -func (c *ConverterImpl) pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator2(source *ClusterGenerator) *v1alpha1.ClusterGenerator { +func (c *ConverterImpl) pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator2(source *v1alpha11.ClusterGenerator) *v1alpha1.ClusterGenerator { var pV1alpha1ClusterGenerator *v1alpha1.ClusterGenerator if source != nil { var v1alpha1ClusterGenerator v1alpha1.ClusterGenerator @@ -749,10 +750,10 @@ func (c *ConverterImpl) pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator2(so } return pV1alpha1ClusterGenerator } -func (c *ConverterImpl) pV1alpha1DuckTypeGeneratorToPV1alpha1DuckTypeGenerator(source *v1alpha1.DuckTypeGenerator) *DuckTypeGenerator { - var pV1alpha1DuckTypeGenerator *DuckTypeGenerator +func (c *ConverterImpl) pV1alpha1DuckTypeGeneratorToPV1alpha1DuckTypeGenerator(source *v1alpha1.DuckTypeGenerator) *v1alpha11.DuckTypeGenerator { + var pV1alpha1DuckTypeGenerator *v1alpha11.DuckTypeGenerator if source != nil { - var v1alpha1DuckTypeGenerator DuckTypeGenerator + var v1alpha1DuckTypeGenerator v1alpha11.DuckTypeGenerator v1alpha1DuckTypeGenerator.ConfigMapRef = (*source).ConfigMapRef v1alpha1DuckTypeGenerator.Name = (*source).Name var pInt64 *int64 @@ -772,7 +773,7 @@ func (c *ConverterImpl) pV1alpha1DuckTypeGeneratorToPV1alpha1DuckTypeGenerator(s } return pV1alpha1DuckTypeGenerator } -func (c *ConverterImpl) pV1alpha1DuckTypeGeneratorToPV1alpha1DuckTypeGenerator2(source *DuckTypeGenerator) *v1alpha1.DuckTypeGenerator { +func (c *ConverterImpl) pV1alpha1DuckTypeGeneratorToPV1alpha1DuckTypeGenerator2(source *v1alpha11.DuckTypeGenerator) *v1alpha1.DuckTypeGenerator { var pV1alpha1DuckTypeGenerator *v1alpha1.DuckTypeGenerator if source != nil { var v1alpha1DuckTypeGenerator v1alpha1.DuckTypeGenerator @@ -795,17 +796,17 @@ func (c *ConverterImpl) pV1alpha1DuckTypeGeneratorToPV1alpha1DuckTypeGenerator2( } return pV1alpha1DuckTypeGenerator } -func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry(source *v1alpha1.EnvEntry) *EnvEntry { - var pV1alpha1EnvEntry *EnvEntry +func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry(source *v1alpha1.EnvEntry) *v1alpha11.EnvEntry { + var pV1alpha1EnvEntry *v1alpha11.EnvEntry if source != nil { - var v1alpha1EnvEntry EnvEntry + var v1alpha1EnvEntry v1alpha11.EnvEntry v1alpha1EnvEntry.Name = (*source).Name v1alpha1EnvEntry.Value = (*source).Value pV1alpha1EnvEntry = &v1alpha1EnvEntry } return pV1alpha1EnvEntry } -func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry2(source *EnvEntry) *v1alpha1.EnvEntry { +func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry2(source *v1alpha11.EnvEntry) *v1alpha1.EnvEntry { var pV1alpha1EnvEntry *v1alpha1.EnvEntry if source != nil { var v1alpha1EnvEntry v1alpha1.EnvEntry @@ -815,22 +816,22 @@ func (c *ConverterImpl) pV1alpha1EnvEntryToPV1alpha1EnvEntry2(source *EnvEntry) } return pV1alpha1EnvEntry } -func (c *ConverterImpl) pV1alpha1GitGeneratorToPV1alpha1GitGenerator(source *v1alpha1.GitGenerator) *GitGenerator { - var pV1alpha1GitGenerator *GitGenerator +func (c *ConverterImpl) pV1alpha1GitGeneratorToPV1alpha1GitGenerator(source *v1alpha1.GitGenerator) *v1alpha11.GitGenerator { + var pV1alpha1GitGenerator *v1alpha11.GitGenerator if source != nil { - var v1alpha1GitGenerator GitGenerator + var v1alpha1GitGenerator v1alpha11.GitGenerator v1alpha1GitGenerator.RepoURL = (*source).RepoURL - var v1alpha1GitDirectoryGeneratorItemList []GitDirectoryGeneratorItem + var v1alpha1GitDirectoryGeneratorItemList []v1alpha11.GitDirectoryGeneratorItem if (*source).Directories != nil { - v1alpha1GitDirectoryGeneratorItemList = make([]GitDirectoryGeneratorItem, len((*source).Directories)) + v1alpha1GitDirectoryGeneratorItemList = make([]v1alpha11.GitDirectoryGeneratorItem, len((*source).Directories)) for i := 0; i < len((*source).Directories); i++ { v1alpha1GitDirectoryGeneratorItemList[i] = c.v1alpha1GitDirectoryGeneratorItemToV1alpha1GitDirectoryGeneratorItem((*source).Directories[i]) } } v1alpha1GitGenerator.Directories = v1alpha1GitDirectoryGeneratorItemList - var v1alpha1GitFileGeneratorItemList []GitFileGeneratorItem + var v1alpha1GitFileGeneratorItemList []v1alpha11.GitFileGeneratorItem if (*source).Files != nil { - v1alpha1GitFileGeneratorItemList = make([]GitFileGeneratorItem, len((*source).Files)) + v1alpha1GitFileGeneratorItemList = make([]v1alpha11.GitFileGeneratorItem, len((*source).Files)) for j := 0; j < len((*source).Files); j++ { v1alpha1GitFileGeneratorItemList[j] = c.v1alpha1GitFileGeneratorItemToV1alpha1GitFileGeneratorItem((*source).Files[j]) } @@ -854,7 +855,7 @@ func (c *ConverterImpl) pV1alpha1GitGeneratorToPV1alpha1GitGenerator(source *v1a } return pV1alpha1GitGenerator } -func (c *ConverterImpl) pV1alpha1GitGeneratorToPV1alpha1GitGenerator2(source *GitGenerator) *v1alpha1.GitGenerator { +func (c *ConverterImpl) pV1alpha1GitGeneratorToPV1alpha1GitGenerator2(source *v1alpha11.GitGenerator) *v1alpha1.GitGenerator { var pV1alpha1GitGenerator *v1alpha1.GitGenerator if source != nil { var v1alpha1GitGenerator v1alpha1.GitGenerator @@ -893,10 +894,10 @@ func (c *ConverterImpl) pV1alpha1GitGeneratorToPV1alpha1GitGenerator2(source *Gi } return pV1alpha1GitGenerator } -func (c *ConverterImpl) pV1alpha1ListGeneratorToPV1alpha1ListGenerator(source *v1alpha1.ListGenerator) *ListGenerator { - var pV1alpha1ListGenerator *ListGenerator +func (c *ConverterImpl) pV1alpha1ListGeneratorToPV1alpha1ListGenerator(source *v1alpha1.ListGenerator) *v1alpha11.ListGenerator { + var pV1alpha1ListGenerator *v1alpha11.ListGenerator if source != nil { - var v1alpha1ListGenerator ListGenerator + var v1alpha1ListGenerator v1alpha11.ListGenerator var v1JSONList []v1.JSON if (*source).Elements != nil { v1JSONList = make([]v1.JSON, len((*source).Elements)) @@ -911,7 +912,7 @@ func (c *ConverterImpl) pV1alpha1ListGeneratorToPV1alpha1ListGenerator(source *v } return pV1alpha1ListGenerator } -func (c *ConverterImpl) pV1alpha1ListGeneratorToPV1alpha1ListGenerator2(source *ListGenerator) *v1alpha1.ListGenerator { +func (c *ConverterImpl) pV1alpha1ListGeneratorToPV1alpha1ListGenerator2(source *v1alpha11.ListGenerator) *v1alpha1.ListGenerator { var pV1alpha1ListGenerator *v1alpha1.ListGenerator if source != nil { var v1alpha1ListGenerator v1alpha1.ListGenerator @@ -929,10 +930,10 @@ func (c *ConverterImpl) pV1alpha1ListGeneratorToPV1alpha1ListGenerator2(source * } return pV1alpha1ListGenerator } -func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNamespaceMetadata(source *v1alpha1.ManagedNamespaceMetadata) *ManagedNamespaceMetadata { - var pV1alpha1ManagedNamespaceMetadata *ManagedNamespaceMetadata +func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNamespaceMetadata(source *v1alpha1.ManagedNamespaceMetadata) *v1alpha11.ManagedNamespaceMetadata { + var pV1alpha1ManagedNamespaceMetadata *v1alpha11.ManagedNamespaceMetadata if source != nil { - var v1alpha1ManagedNamespaceMetadata ManagedNamespaceMetadata + var v1alpha1ManagedNamespaceMetadata v1alpha11.ManagedNamespaceMetadata mapStringString := make(map[string]string, len((*source).Labels)) for key, value := range (*source).Labels { mapStringString[key] = value @@ -947,7 +948,7 @@ func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNames } return pV1alpha1ManagedNamespaceMetadata } -func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNamespaceMetadata2(source *ManagedNamespaceMetadata) *v1alpha1.ManagedNamespaceMetadata { +func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNamespaceMetadata2(source *v1alpha11.ManagedNamespaceMetadata) *v1alpha1.ManagedNamespaceMetadata { var pV1alpha1ManagedNamespaceMetadata *v1alpha1.ManagedNamespaceMetadata if source != nil { var v1alpha1ManagedNamespaceMetadata v1alpha1.ManagedNamespaceMetadata @@ -965,13 +966,13 @@ func (c *ConverterImpl) pV1alpha1ManagedNamespaceMetadataToPV1alpha1ManagedNames } return pV1alpha1ManagedNamespaceMetadata } -func (c *ConverterImpl) pV1alpha1MatrixGeneratorToPV1alpha1MatrixGenerator(source *v1alpha1.MatrixGenerator) *MatrixGenerator { - var pV1alpha1MatrixGenerator *MatrixGenerator +func (c *ConverterImpl) pV1alpha1MatrixGeneratorToPV1alpha1MatrixGenerator(source *v1alpha1.MatrixGenerator) *v1alpha11.MatrixGenerator { + var pV1alpha1MatrixGenerator *v1alpha11.MatrixGenerator if source != nil { - var v1alpha1MatrixGenerator MatrixGenerator - var v1alpha1ApplicationSetNestedGeneratorList []ApplicationSetNestedGenerator + var v1alpha1MatrixGenerator v1alpha11.MatrixGenerator + var v1alpha1ApplicationSetNestedGeneratorList []v1alpha11.ApplicationSetNestedGenerator if (*source).Generators != nil { - v1alpha1ApplicationSetNestedGeneratorList = make([]ApplicationSetNestedGenerator, len((*source).Generators)) + v1alpha1ApplicationSetNestedGeneratorList = make([]v1alpha11.ApplicationSetNestedGenerator, len((*source).Generators)) for i := 0; i < len((*source).Generators); i++ { v1alpha1ApplicationSetNestedGeneratorList[i] = c.v1alpha1ApplicationSetNestedGeneratorToV1alpha1ApplicationSetNestedGenerator((*source).Generators[i]) } @@ -982,7 +983,7 @@ func (c *ConverterImpl) pV1alpha1MatrixGeneratorToPV1alpha1MatrixGenerator(sourc } return pV1alpha1MatrixGenerator } -func (c *ConverterImpl) pV1alpha1MatrixGeneratorToPV1alpha1MatrixGenerator2(source *MatrixGenerator) *v1alpha1.MatrixGenerator { +func (c *ConverterImpl) pV1alpha1MatrixGeneratorToPV1alpha1MatrixGenerator2(source *v1alpha11.MatrixGenerator) *v1alpha1.MatrixGenerator { var pV1alpha1MatrixGenerator *v1alpha1.MatrixGenerator if source != nil { var v1alpha1MatrixGenerator v1alpha1.MatrixGenerator @@ -999,13 +1000,13 @@ func (c *ConverterImpl) pV1alpha1MatrixGeneratorToPV1alpha1MatrixGenerator2(sour } return pV1alpha1MatrixGenerator } -func (c *ConverterImpl) pV1alpha1MergeGeneratorToPV1alpha1MergeGenerator(source *v1alpha1.MergeGenerator) *MergeGenerator { - var pV1alpha1MergeGenerator *MergeGenerator +func (c *ConverterImpl) pV1alpha1MergeGeneratorToPV1alpha1MergeGenerator(source *v1alpha1.MergeGenerator) *v1alpha11.MergeGenerator { + var pV1alpha1MergeGenerator *v1alpha11.MergeGenerator if source != nil { - var v1alpha1MergeGenerator MergeGenerator - var v1alpha1ApplicationSetNestedGeneratorList []ApplicationSetNestedGenerator + var v1alpha1MergeGenerator v1alpha11.MergeGenerator + var v1alpha1ApplicationSetNestedGeneratorList []v1alpha11.ApplicationSetNestedGenerator if (*source).Generators != nil { - v1alpha1ApplicationSetNestedGeneratorList = make([]ApplicationSetNestedGenerator, len((*source).Generators)) + v1alpha1ApplicationSetNestedGeneratorList = make([]v1alpha11.ApplicationSetNestedGenerator, len((*source).Generators)) for i := 0; i < len((*source).Generators); i++ { v1alpha1ApplicationSetNestedGeneratorList[i] = c.v1alpha1ApplicationSetNestedGeneratorToV1alpha1ApplicationSetNestedGenerator((*source).Generators[i]) } @@ -1024,7 +1025,7 @@ func (c *ConverterImpl) pV1alpha1MergeGeneratorToPV1alpha1MergeGenerator(source } return pV1alpha1MergeGenerator } -func (c *ConverterImpl) pV1alpha1MergeGeneratorToPV1alpha1MergeGenerator2(source *MergeGenerator) *v1alpha1.MergeGenerator { +func (c *ConverterImpl) pV1alpha1MergeGeneratorToPV1alpha1MergeGenerator2(source *v1alpha11.MergeGenerator) *v1alpha1.MergeGenerator { var pV1alpha1MergeGenerator *v1alpha1.MergeGenerator if source != nil { var v1alpha1MergeGenerator v1alpha1.MergeGenerator @@ -1049,10 +1050,10 @@ func (c *ConverterImpl) pV1alpha1MergeGeneratorToPV1alpha1MergeGenerator2(source } return pV1alpha1MergeGenerator } -func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source *v1alpha1.OptionalArray) *OptionalArray { - var pV1alpha1OptionalArray *OptionalArray +func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source *v1alpha1.OptionalArray) *v1alpha11.OptionalArray { + var pV1alpha1OptionalArray *v1alpha11.OptionalArray if source != nil { - var v1alpha1OptionalArray OptionalArray + var v1alpha1OptionalArray v1alpha11.OptionalArray var stringList []string if (*source).Array != nil { stringList = make([]string, len((*source).Array)) @@ -1065,7 +1066,7 @@ func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source *v } return pV1alpha1OptionalArray } -func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source *OptionalArray) *v1alpha1.OptionalArray { +func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source *v1alpha11.OptionalArray) *v1alpha1.OptionalArray { var pV1alpha1OptionalArray *v1alpha1.OptionalArray if source != nil { var v1alpha1OptionalArray v1alpha1.OptionalArray @@ -1081,10 +1082,10 @@ func (c *ConverterImpl) pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source * } return pV1alpha1OptionalArray } -func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap(source *v1alpha1.OptionalMap) *OptionalMap { - var pV1alpha1OptionalMap *OptionalMap +func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap(source *v1alpha1.OptionalMap) *v1alpha11.OptionalMap { + var pV1alpha1OptionalMap *v1alpha11.OptionalMap if source != nil { - var v1alpha1OptionalMap OptionalMap + var v1alpha1OptionalMap v1alpha11.OptionalMap mapStringString := make(map[string]string, len((*source).Map)) for key, value := range (*source).Map { mapStringString[key] = value @@ -1094,7 +1095,7 @@ func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap(source *v1alp } return pV1alpha1OptionalMap } -func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap2(source *OptionalMap) *v1alpha1.OptionalMap { +func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap2(source *v1alpha11.OptionalMap) *v1alpha1.OptionalMap { var pV1alpha1OptionalMap *v1alpha1.OptionalMap if source != nil { var v1alpha1OptionalMap v1alpha1.OptionalMap @@ -1107,10 +1108,10 @@ func (c *ConverterImpl) pV1alpha1OptionalMapToPV1alpha1OptionalMap2(source *Opti } return pV1alpha1OptionalMap } -func (c *ConverterImpl) pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator(source *v1alpha1.PluginGenerator) *PluginGenerator { - var pV1alpha1PluginGenerator *PluginGenerator +func (c *ConverterImpl) pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator(source *v1alpha1.PluginGenerator) *v1alpha11.PluginGenerator { + var pV1alpha1PluginGenerator *v1alpha11.PluginGenerator if source != nil { - var v1alpha1PluginGenerator PluginGenerator + var v1alpha1PluginGenerator v1alpha11.PluginGenerator v1alpha1PluginGenerator.ConfigMapRef = c.v1alpha1PluginConfigMapRefToV1alpha1PluginConfigMapRef((*source).ConfigMapRef) v1alpha1PluginGenerator.Input = c.v1alpha1PluginInputToV1alpha1PluginInput((*source).Input) var pInt64 *int64 @@ -1129,7 +1130,7 @@ func (c *ConverterImpl) pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator(sourc } return pV1alpha1PluginGenerator } -func (c *ConverterImpl) pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator2(source *PluginGenerator) *v1alpha1.PluginGenerator { +func (c *ConverterImpl) pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator2(source *v1alpha11.PluginGenerator) *v1alpha1.PluginGenerator { var pV1alpha1PluginGenerator *v1alpha1.PluginGenerator if source != nil { var v1alpha1PluginGenerator v1alpha1.PluginGenerator @@ -1151,10 +1152,10 @@ func (c *ConverterImpl) pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator2(sour } return pV1alpha1PluginGenerator } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorAzureDevOpsToPV1alpha1PullRequestGeneratorAzureDevOps(source *v1alpha1.PullRequestGeneratorAzureDevOps) *PullRequestGeneratorAzureDevOps { - var pV1alpha1PullRequestGeneratorAzureDevOps *PullRequestGeneratorAzureDevOps +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorAzureDevOpsToPV1alpha1PullRequestGeneratorAzureDevOps(source *v1alpha1.PullRequestGeneratorAzureDevOps) *v1alpha11.PullRequestGeneratorAzureDevOps { + var pV1alpha1PullRequestGeneratorAzureDevOps *v1alpha11.PullRequestGeneratorAzureDevOps if source != nil { - var v1alpha1PullRequestGeneratorAzureDevOps PullRequestGeneratorAzureDevOps + var v1alpha1PullRequestGeneratorAzureDevOps v1alpha11.PullRequestGeneratorAzureDevOps v1alpha1PullRequestGeneratorAzureDevOps.Organization = (*source).Organization v1alpha1PullRequestGeneratorAzureDevOps.Project = (*source).Project v1alpha1PullRequestGeneratorAzureDevOps.Repo = (*source).Repo @@ -1172,7 +1173,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorAzureDevOpsToPV1alpha1PullR } return pV1alpha1PullRequestGeneratorAzureDevOps } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorAzureDevOpsToPV1alpha1PullRequestGeneratorAzureDevOps2(source *PullRequestGeneratorAzureDevOps) *v1alpha1.PullRequestGeneratorAzureDevOps { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorAzureDevOpsToPV1alpha1PullRequestGeneratorAzureDevOps2(source *v1alpha11.PullRequestGeneratorAzureDevOps) *v1alpha1.PullRequestGeneratorAzureDevOps { var pV1alpha1PullRequestGeneratorAzureDevOps *v1alpha1.PullRequestGeneratorAzureDevOps if source != nil { var v1alpha1PullRequestGeneratorAzureDevOps v1alpha1.PullRequestGeneratorAzureDevOps @@ -1193,10 +1194,10 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorAzureDevOpsToPV1alpha1PullR } return pV1alpha1PullRequestGeneratorAzureDevOps } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1PullRequestGeneratorBitbucketServer(source *v1alpha1.PullRequestGeneratorBitbucketServer) *PullRequestGeneratorBitbucketServer { - var pV1alpha1PullRequestGeneratorBitbucketServer *PullRequestGeneratorBitbucketServer +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1PullRequestGeneratorBitbucketServer(source *v1alpha1.PullRequestGeneratorBitbucketServer) *v1alpha11.PullRequestGeneratorBitbucketServer { + var pV1alpha1PullRequestGeneratorBitbucketServer *v1alpha11.PullRequestGeneratorBitbucketServer if source != nil { - var v1alpha1PullRequestGeneratorBitbucketServer PullRequestGeneratorBitbucketServer + var v1alpha1PullRequestGeneratorBitbucketServer v1alpha11.PullRequestGeneratorBitbucketServer v1alpha1PullRequestGeneratorBitbucketServer.Project = (*source).Project v1alpha1PullRequestGeneratorBitbucketServer.Repo = (*source).Repo v1alpha1PullRequestGeneratorBitbucketServer.API = (*source).API @@ -1205,7 +1206,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1P } return pV1alpha1PullRequestGeneratorBitbucketServer } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1PullRequestGeneratorBitbucketServer2(source *PullRequestGeneratorBitbucketServer) *v1alpha1.PullRequestGeneratorBitbucketServer { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1PullRequestGeneratorBitbucketServer2(source *v1alpha11.PullRequestGeneratorBitbucketServer) *v1alpha1.PullRequestGeneratorBitbucketServer { var pV1alpha1PullRequestGeneratorBitbucketServer *v1alpha1.PullRequestGeneratorBitbucketServer if source != nil { var v1alpha1PullRequestGeneratorBitbucketServer v1alpha1.PullRequestGeneratorBitbucketServer @@ -1217,10 +1218,10 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1P } return pV1alpha1PullRequestGeneratorBitbucketServer } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketToPV1alpha1PullRequestGeneratorBitbucket(source *v1alpha1.PullRequestGeneratorBitbucket) *PullRequestGeneratorBitbucket { - var pV1alpha1PullRequestGeneratorBitbucket *PullRequestGeneratorBitbucket +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketToPV1alpha1PullRequestGeneratorBitbucket(source *v1alpha1.PullRequestGeneratorBitbucket) *v1alpha11.PullRequestGeneratorBitbucket { + var pV1alpha1PullRequestGeneratorBitbucket *v1alpha11.PullRequestGeneratorBitbucket if source != nil { - var v1alpha1PullRequestGeneratorBitbucket PullRequestGeneratorBitbucket + var v1alpha1PullRequestGeneratorBitbucket v1alpha11.PullRequestGeneratorBitbucket v1alpha1PullRequestGeneratorBitbucket.Owner = (*source).Owner v1alpha1PullRequestGeneratorBitbucket.Repo = (*source).Repo v1alpha1PullRequestGeneratorBitbucket.API = (*source).API @@ -1230,7 +1231,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketToPV1alpha1PullReq } return pV1alpha1PullRequestGeneratorBitbucket } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketToPV1alpha1PullRequestGeneratorBitbucket2(source *PullRequestGeneratorBitbucket) *v1alpha1.PullRequestGeneratorBitbucket { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketToPV1alpha1PullRequestGeneratorBitbucket2(source *v1alpha11.PullRequestGeneratorBitbucket) *v1alpha1.PullRequestGeneratorBitbucket { var pV1alpha1PullRequestGeneratorBitbucket *v1alpha1.PullRequestGeneratorBitbucket if source != nil { var v1alpha1PullRequestGeneratorBitbucket v1alpha1.PullRequestGeneratorBitbucket @@ -1243,10 +1244,10 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorBitbucketToPV1alpha1PullReq } return pV1alpha1PullRequestGeneratorBitbucket } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullRequestGeneratorGitLab(source *v1alpha1.PullRequestGeneratorGitLab) *PullRequestGeneratorGitLab { - var pV1alpha1PullRequestGeneratorGitLab *PullRequestGeneratorGitLab +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullRequestGeneratorGitLab(source *v1alpha1.PullRequestGeneratorGitLab) *v1alpha11.PullRequestGeneratorGitLab { + var pV1alpha1PullRequestGeneratorGitLab *v1alpha11.PullRequestGeneratorGitLab if source != nil { - var v1alpha1PullRequestGeneratorGitLab PullRequestGeneratorGitLab + var v1alpha1PullRequestGeneratorGitLab v1alpha11.PullRequestGeneratorGitLab v1alpha1PullRequestGeneratorGitLab.Project = (*source).Project v1alpha1PullRequestGeneratorGitLab.API = (*source).API v1alpha1PullRequestGeneratorGitLab.TokenRef = c.pV1alpha1SecretRefToPV1alpha1SecretRef((*source).TokenRef) @@ -1264,7 +1265,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullReques } return pV1alpha1PullRequestGeneratorGitLab } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullRequestGeneratorGitLab2(source *PullRequestGeneratorGitLab) *v1alpha1.PullRequestGeneratorGitLab { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullRequestGeneratorGitLab2(source *v1alpha11.PullRequestGeneratorGitLab) *v1alpha1.PullRequestGeneratorGitLab { var pV1alpha1PullRequestGeneratorGitLab *v1alpha1.PullRequestGeneratorGitLab if source != nil { var v1alpha1PullRequestGeneratorGitLab v1alpha1.PullRequestGeneratorGitLab @@ -1285,10 +1286,10 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullReques } return pV1alpha1PullRequestGeneratorGitLab } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequestGeneratorGitea(source *v1alpha1.PullRequestGeneratorGitea) *PullRequestGeneratorGitea { - var pV1alpha1PullRequestGeneratorGitea *PullRequestGeneratorGitea +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequestGeneratorGitea(source *v1alpha1.PullRequestGeneratorGitea) *v1alpha11.PullRequestGeneratorGitea { + var pV1alpha1PullRequestGeneratorGitea *v1alpha11.PullRequestGeneratorGitea if source != nil { - var v1alpha1PullRequestGeneratorGitea PullRequestGeneratorGitea + var v1alpha1PullRequestGeneratorGitea v1alpha11.PullRequestGeneratorGitea v1alpha1PullRequestGeneratorGitea.Owner = (*source).Owner v1alpha1PullRequestGeneratorGitea.Repo = (*source).Repo v1alpha1PullRequestGeneratorGitea.API = (*source).API @@ -1298,7 +1299,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequest } return pV1alpha1PullRequestGeneratorGitea } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequestGeneratorGitea2(source *PullRequestGeneratorGitea) *v1alpha1.PullRequestGeneratorGitea { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequestGeneratorGitea2(source *v1alpha11.PullRequestGeneratorGitea) *v1alpha1.PullRequestGeneratorGitea { var pV1alpha1PullRequestGeneratorGitea *v1alpha1.PullRequestGeneratorGitea if source != nil { var v1alpha1PullRequestGeneratorGitea v1alpha1.PullRequestGeneratorGitea @@ -1311,10 +1312,10 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequest } return pV1alpha1PullRequestGeneratorGitea } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullRequestGeneratorGithub(source *v1alpha1.PullRequestGeneratorGithub) *PullRequestGeneratorGithub { - var pV1alpha1PullRequestGeneratorGithub *PullRequestGeneratorGithub +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullRequestGeneratorGithub(source *v1alpha1.PullRequestGeneratorGithub) *v1alpha11.PullRequestGeneratorGithub { + var pV1alpha1PullRequestGeneratorGithub *v1alpha11.PullRequestGeneratorGithub if source != nil { - var v1alpha1PullRequestGeneratorGithub PullRequestGeneratorGithub + var v1alpha1PullRequestGeneratorGithub v1alpha11.PullRequestGeneratorGithub v1alpha1PullRequestGeneratorGithub.Owner = (*source).Owner v1alpha1PullRequestGeneratorGithub.Repo = (*source).Repo v1alpha1PullRequestGeneratorGithub.API = (*source).API @@ -1332,7 +1333,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullReques } return pV1alpha1PullRequestGeneratorGithub } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullRequestGeneratorGithub2(source *PullRequestGeneratorGithub) *v1alpha1.PullRequestGeneratorGithub { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullRequestGeneratorGithub2(source *v1alpha11.PullRequestGeneratorGithub) *v1alpha1.PullRequestGeneratorGithub { var pV1alpha1PullRequestGeneratorGithub *v1alpha1.PullRequestGeneratorGithub if source != nil { var v1alpha1PullRequestGeneratorGithub v1alpha1.PullRequestGeneratorGithub @@ -1353,17 +1354,17 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullReques } return pV1alpha1PullRequestGeneratorGithub } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorToPV1alpha1PullRequestGenerator(source *v1alpha1.PullRequestGenerator) *PullRequestGenerator { - var pV1alpha1PullRequestGenerator *PullRequestGenerator +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorToPV1alpha1PullRequestGenerator(source *v1alpha1.PullRequestGenerator) *v1alpha11.PullRequestGenerator { + var pV1alpha1PullRequestGenerator *v1alpha11.PullRequestGenerator if source != nil { - var v1alpha1PullRequestGenerator PullRequestGenerator + var v1alpha1PullRequestGenerator v1alpha11.PullRequestGenerator v1alpha1PullRequestGenerator.Github = c.pV1alpha1PullRequestGeneratorGithubToPV1alpha1PullRequestGeneratorGithub((*source).Github) v1alpha1PullRequestGenerator.GitLab = c.pV1alpha1PullRequestGeneratorGitLabToPV1alpha1PullRequestGeneratorGitLab((*source).GitLab) v1alpha1PullRequestGenerator.Gitea = c.pV1alpha1PullRequestGeneratorGiteaToPV1alpha1PullRequestGeneratorGitea((*source).Gitea) v1alpha1PullRequestGenerator.BitbucketServer = c.pV1alpha1PullRequestGeneratorBitbucketServerToPV1alpha1PullRequestGeneratorBitbucketServer((*source).BitbucketServer) - var v1alpha1PullRequestGeneratorFilterList []PullRequestGeneratorFilter + var v1alpha1PullRequestGeneratorFilterList []v1alpha11.PullRequestGeneratorFilter if (*source).Filters != nil { - v1alpha1PullRequestGeneratorFilterList = make([]PullRequestGeneratorFilter, len((*source).Filters)) + v1alpha1PullRequestGeneratorFilterList = make([]v1alpha11.PullRequestGeneratorFilter, len((*source).Filters)) for i := 0; i < len((*source).Filters); i++ { v1alpha1PullRequestGeneratorFilterList[i] = c.v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestGeneratorFilter((*source).Filters[i]) } @@ -1382,7 +1383,7 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorToPV1alpha1PullRequestGener } return pV1alpha1PullRequestGenerator } -func (c *ConverterImpl) pV1alpha1PullRequestGeneratorToPV1alpha1PullRequestGenerator2(source *PullRequestGenerator) *v1alpha1.PullRequestGenerator { +func (c *ConverterImpl) pV1alpha1PullRequestGeneratorToPV1alpha1PullRequestGenerator2(source *v1alpha11.PullRequestGenerator) *v1alpha1.PullRequestGenerator { var pV1alpha1PullRequestGenerator *v1alpha1.PullRequestGenerator if source != nil { var v1alpha1PullRequestGenerator v1alpha1.PullRequestGenerator @@ -1411,10 +1412,10 @@ func (c *ConverterImpl) pV1alpha1PullRequestGeneratorToPV1alpha1PullRequestGener } return pV1alpha1PullRequestGenerator } -func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy(source *v1alpha1.RetryStrategy) *RetryStrategy { - var pV1alpha1RetryStrategy *RetryStrategy +func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy(source *v1alpha1.RetryStrategy) *v1alpha11.RetryStrategy { + var pV1alpha1RetryStrategy *v1alpha11.RetryStrategy if source != nil { - var v1alpha1RetryStrategy RetryStrategy + var v1alpha1RetryStrategy v1alpha11.RetryStrategy pInt64 := (*source).Limit v1alpha1RetryStrategy.Limit = &pInt64 v1alpha1RetryStrategy.Backoff = c.pV1alpha1BackoffToPV1alpha1Backoff((*source).Backoff) @@ -1422,7 +1423,7 @@ func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy(source *v } return pV1alpha1RetryStrategy } -func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy2(source *RetryStrategy) *v1alpha1.RetryStrategy { +func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy2(source *v1alpha11.RetryStrategy) *v1alpha1.RetryStrategy { var pV1alpha1RetryStrategy *v1alpha1.RetryStrategy if source != nil { var v1alpha1RetryStrategy v1alpha1.RetryStrategy @@ -1436,13 +1437,13 @@ func (c *ConverterImpl) pV1alpha1RetryStrategyToPV1alpha1RetryStrategy2(source * } return pV1alpha1RetryStrategy } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAWSCodeCommitToPV1alpha1SCMProviderGeneratorAWSCodeCommit(source *v1alpha1.SCMProviderGeneratorAWSCodeCommit) *SCMProviderGeneratorAWSCodeCommit { - var pV1alpha1SCMProviderGeneratorAWSCodeCommit *SCMProviderGeneratorAWSCodeCommit +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAWSCodeCommitToPV1alpha1SCMProviderGeneratorAWSCodeCommit(source *v1alpha1.SCMProviderGeneratorAWSCodeCommit) *v1alpha11.SCMProviderGeneratorAWSCodeCommit { + var pV1alpha1SCMProviderGeneratorAWSCodeCommit *v1alpha11.SCMProviderGeneratorAWSCodeCommit if source != nil { - var v1alpha1SCMProviderGeneratorAWSCodeCommit SCMProviderGeneratorAWSCodeCommit - var pV1alpha1TagFilterList []*TagFilter + var v1alpha1SCMProviderGeneratorAWSCodeCommit v1alpha11.SCMProviderGeneratorAWSCodeCommit + var pV1alpha1TagFilterList []*v1alpha11.TagFilter if (*source).TagFilters != nil { - pV1alpha1TagFilterList = make([]*TagFilter, len((*source).TagFilters)) + pV1alpha1TagFilterList = make([]*v1alpha11.TagFilter, len((*source).TagFilters)) for i := 0; i < len((*source).TagFilters); i++ { pV1alpha1TagFilterList[i] = c.pV1alpha1TagFilterToPV1alpha1TagFilter((*source).TagFilters[i]) } @@ -1455,7 +1456,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAWSCodeCommitToPV1alpha1SCM } return pV1alpha1SCMProviderGeneratorAWSCodeCommit } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAWSCodeCommitToPV1alpha1SCMProviderGeneratorAWSCodeCommit2(source *SCMProviderGeneratorAWSCodeCommit) *v1alpha1.SCMProviderGeneratorAWSCodeCommit { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAWSCodeCommitToPV1alpha1SCMProviderGeneratorAWSCodeCommit2(source *v1alpha11.SCMProviderGeneratorAWSCodeCommit) *v1alpha1.SCMProviderGeneratorAWSCodeCommit { var pV1alpha1SCMProviderGeneratorAWSCodeCommit *v1alpha1.SCMProviderGeneratorAWSCodeCommit if source != nil { var v1alpha1SCMProviderGeneratorAWSCodeCommit v1alpha1.SCMProviderGeneratorAWSCodeCommit @@ -1474,10 +1475,10 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAWSCodeCommitToPV1alpha1SCM } return pV1alpha1SCMProviderGeneratorAWSCodeCommit } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMProviderGeneratorAzureDevOps(source *v1alpha1.SCMProviderGeneratorAzureDevOps) *SCMProviderGeneratorAzureDevOps { - var pV1alpha1SCMProviderGeneratorAzureDevOps *SCMProviderGeneratorAzureDevOps +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMProviderGeneratorAzureDevOps(source *v1alpha1.SCMProviderGeneratorAzureDevOps) *v1alpha11.SCMProviderGeneratorAzureDevOps { + var pV1alpha1SCMProviderGeneratorAzureDevOps *v1alpha11.SCMProviderGeneratorAzureDevOps if source != nil { - var v1alpha1SCMProviderGeneratorAzureDevOps SCMProviderGeneratorAzureDevOps + var v1alpha1SCMProviderGeneratorAzureDevOps v1alpha11.SCMProviderGeneratorAzureDevOps v1alpha1SCMProviderGeneratorAzureDevOps.Organization = (*source).Organization v1alpha1SCMProviderGeneratorAzureDevOps.API = (*source).API v1alpha1SCMProviderGeneratorAzureDevOps.TeamProject = (*source).TeamProject @@ -1487,7 +1488,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMPr } return pV1alpha1SCMProviderGeneratorAzureDevOps } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMProviderGeneratorAzureDevOps2(source *SCMProviderGeneratorAzureDevOps) *v1alpha1.SCMProviderGeneratorAzureDevOps { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMProviderGeneratorAzureDevOps2(source *v1alpha11.SCMProviderGeneratorAzureDevOps) *v1alpha1.SCMProviderGeneratorAzureDevOps { var pV1alpha1SCMProviderGeneratorAzureDevOps *v1alpha1.SCMProviderGeneratorAzureDevOps if source != nil { var v1alpha1SCMProviderGeneratorAzureDevOps v1alpha1.SCMProviderGeneratorAzureDevOps @@ -1500,10 +1501,10 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMPr } return pV1alpha1SCMProviderGeneratorAzureDevOps } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1SCMProviderGeneratorBitbucketServer(source *v1alpha1.SCMProviderGeneratorBitbucketServer) *SCMProviderGeneratorBitbucketServer { - var pV1alpha1SCMProviderGeneratorBitbucketServer *SCMProviderGeneratorBitbucketServer +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1SCMProviderGeneratorBitbucketServer(source *v1alpha1.SCMProviderGeneratorBitbucketServer) *v1alpha11.SCMProviderGeneratorBitbucketServer { + var pV1alpha1SCMProviderGeneratorBitbucketServer *v1alpha11.SCMProviderGeneratorBitbucketServer if source != nil { - var v1alpha1SCMProviderGeneratorBitbucketServer SCMProviderGeneratorBitbucketServer + var v1alpha1SCMProviderGeneratorBitbucketServer v1alpha11.SCMProviderGeneratorBitbucketServer v1alpha1SCMProviderGeneratorBitbucketServer.Project = (*source).Project v1alpha1SCMProviderGeneratorBitbucketServer.API = (*source).API v1alpha1SCMProviderGeneratorBitbucketServer.BasicAuth = c.pV1alpha1BasicAuthBitbucketServerToPV1alpha1BasicAuthBitbucketServer((*source).BasicAuth) @@ -1512,7 +1513,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1S } return pV1alpha1SCMProviderGeneratorBitbucketServer } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1SCMProviderGeneratorBitbucketServer2(source *SCMProviderGeneratorBitbucketServer) *v1alpha1.SCMProviderGeneratorBitbucketServer { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1SCMProviderGeneratorBitbucketServer2(source *v1alpha11.SCMProviderGeneratorBitbucketServer) *v1alpha1.SCMProviderGeneratorBitbucketServer { var pV1alpha1SCMProviderGeneratorBitbucketServer *v1alpha1.SCMProviderGeneratorBitbucketServer if source != nil { var v1alpha1SCMProviderGeneratorBitbucketServer v1alpha1.SCMProviderGeneratorBitbucketServer @@ -1524,10 +1525,10 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1S } return pV1alpha1SCMProviderGeneratorBitbucketServer } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProviderGeneratorBitbucket(source *v1alpha1.SCMProviderGeneratorBitbucket) *SCMProviderGeneratorBitbucket { - var pV1alpha1SCMProviderGeneratorBitbucket *SCMProviderGeneratorBitbucket +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProviderGeneratorBitbucket(source *v1alpha1.SCMProviderGeneratorBitbucket) *v1alpha11.SCMProviderGeneratorBitbucket { + var pV1alpha1SCMProviderGeneratorBitbucket *v1alpha11.SCMProviderGeneratorBitbucket if source != nil { - var v1alpha1SCMProviderGeneratorBitbucket SCMProviderGeneratorBitbucket + var v1alpha1SCMProviderGeneratorBitbucket v1alpha11.SCMProviderGeneratorBitbucket v1alpha1SCMProviderGeneratorBitbucket.Owner = (*source).Owner v1alpha1SCMProviderGeneratorBitbucket.User = (*source).User v1alpha1SCMProviderGeneratorBitbucket.AppPasswordRef = c.pV1alpha1SecretRefToPV1alpha1SecretRef((*source).AppPasswordRef) @@ -1536,7 +1537,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProv } return pV1alpha1SCMProviderGeneratorBitbucket } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProviderGeneratorBitbucket2(source *SCMProviderGeneratorBitbucket) *v1alpha1.SCMProviderGeneratorBitbucket { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProviderGeneratorBitbucket2(source *v1alpha11.SCMProviderGeneratorBitbucket) *v1alpha1.SCMProviderGeneratorBitbucket { var pV1alpha1SCMProviderGeneratorBitbucket *v1alpha1.SCMProviderGeneratorBitbucket if source != nil { var v1alpha1SCMProviderGeneratorBitbucket v1alpha1.SCMProviderGeneratorBitbucket @@ -1548,10 +1549,10 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProv } return pV1alpha1SCMProviderGeneratorBitbucket } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProviderGeneratorGitea(source *v1alpha1.SCMProviderGeneratorGitea) *SCMProviderGeneratorGitea { - var pV1alpha1SCMProviderGeneratorGitea *SCMProviderGeneratorGitea +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProviderGeneratorGitea(source *v1alpha1.SCMProviderGeneratorGitea) *v1alpha11.SCMProviderGeneratorGitea { + var pV1alpha1SCMProviderGeneratorGitea *v1alpha11.SCMProviderGeneratorGitea if source != nil { - var v1alpha1SCMProviderGeneratorGitea SCMProviderGeneratorGitea + var v1alpha1SCMProviderGeneratorGitea v1alpha11.SCMProviderGeneratorGitea v1alpha1SCMProviderGeneratorGitea.Owner = (*source).Owner v1alpha1SCMProviderGeneratorGitea.API = (*source).API v1alpha1SCMProviderGeneratorGitea.TokenRef = c.pV1alpha1SecretRefToPV1alpha1SecretRef((*source).TokenRef) @@ -1561,7 +1562,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProvider } return pV1alpha1SCMProviderGeneratorGitea } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProviderGeneratorGitea2(source *SCMProviderGeneratorGitea) *v1alpha1.SCMProviderGeneratorGitea { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProviderGeneratorGitea2(source *v1alpha11.SCMProviderGeneratorGitea) *v1alpha1.SCMProviderGeneratorGitea { var pV1alpha1SCMProviderGeneratorGitea *v1alpha1.SCMProviderGeneratorGitea if source != nil { var v1alpha1SCMProviderGeneratorGitea v1alpha1.SCMProviderGeneratorGitea @@ -1574,10 +1575,10 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProvider } return pV1alpha1SCMProviderGeneratorGitea } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProviderGeneratorGithub(source *v1alpha1.SCMProviderGeneratorGithub) *SCMProviderGeneratorGithub { - var pV1alpha1SCMProviderGeneratorGithub *SCMProviderGeneratorGithub +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProviderGeneratorGithub(source *v1alpha1.SCMProviderGeneratorGithub) *v1alpha11.SCMProviderGeneratorGithub { + var pV1alpha1SCMProviderGeneratorGithub *v1alpha11.SCMProviderGeneratorGithub if source != nil { - var v1alpha1SCMProviderGeneratorGithub SCMProviderGeneratorGithub + var v1alpha1SCMProviderGeneratorGithub v1alpha11.SCMProviderGeneratorGithub v1alpha1SCMProviderGeneratorGithub.Organization = (*source).Organization v1alpha1SCMProviderGeneratorGithub.API = (*source).API v1alpha1SCMProviderGeneratorGithub.TokenRef = c.pV1alpha1SecretRefToPV1alpha1SecretRef((*source).TokenRef) @@ -1587,7 +1588,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProvide } return pV1alpha1SCMProviderGeneratorGithub } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProviderGeneratorGithub2(source *SCMProviderGeneratorGithub) *v1alpha1.SCMProviderGeneratorGithub { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProviderGeneratorGithub2(source *v1alpha11.SCMProviderGeneratorGithub) *v1alpha1.SCMProviderGeneratorGithub { var pV1alpha1SCMProviderGeneratorGithub *v1alpha1.SCMProviderGeneratorGithub if source != nil { var v1alpha1SCMProviderGeneratorGithub v1alpha1.SCMProviderGeneratorGithub @@ -1600,10 +1601,10 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProvide } return pV1alpha1SCMProviderGeneratorGithub } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProviderGeneratorGitlab(source *v1alpha1.SCMProviderGeneratorGitlab) *SCMProviderGeneratorGitlab { - var pV1alpha1SCMProviderGeneratorGitlab *SCMProviderGeneratorGitlab +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProviderGeneratorGitlab(source *v1alpha1.SCMProviderGeneratorGitlab) *v1alpha11.SCMProviderGeneratorGitlab { + var pV1alpha1SCMProviderGeneratorGitlab *v1alpha11.SCMProviderGeneratorGitlab if source != nil { - var v1alpha1SCMProviderGeneratorGitlab SCMProviderGeneratorGitlab + var v1alpha1SCMProviderGeneratorGitlab v1alpha11.SCMProviderGeneratorGitlab v1alpha1SCMProviderGeneratorGitlab.Group = (*source).Group v1alpha1SCMProviderGeneratorGitlab.IncludeSubgroups = (*source).IncludeSubgroups v1alpha1SCMProviderGeneratorGitlab.API = (*source).API @@ -1614,7 +1615,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProvide } return pV1alpha1SCMProviderGeneratorGitlab } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProviderGeneratorGitlab2(source *SCMProviderGeneratorGitlab) *v1alpha1.SCMProviderGeneratorGitlab { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProviderGeneratorGitlab2(source *v1alpha11.SCMProviderGeneratorGitlab) *v1alpha1.SCMProviderGeneratorGitlab { var pV1alpha1SCMProviderGeneratorGitlab *v1alpha1.SCMProviderGeneratorGitlab if source != nil { var v1alpha1SCMProviderGeneratorGitlab v1alpha1.SCMProviderGeneratorGitlab @@ -1628,19 +1629,19 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProvide } return pV1alpha1SCMProviderGeneratorGitlab } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorToPV1alpha1SCMProviderGenerator(source *v1alpha1.SCMProviderGenerator) *SCMProviderGenerator { - var pV1alpha1SCMProviderGenerator *SCMProviderGenerator +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorToPV1alpha1SCMProviderGenerator(source *v1alpha1.SCMProviderGenerator) *v1alpha11.SCMProviderGenerator { + var pV1alpha1SCMProviderGenerator *v1alpha11.SCMProviderGenerator if source != nil { - var v1alpha1SCMProviderGenerator SCMProviderGenerator + var v1alpha1SCMProviderGenerator v1alpha11.SCMProviderGenerator v1alpha1SCMProviderGenerator.Github = c.pV1alpha1SCMProviderGeneratorGithubToPV1alpha1SCMProviderGeneratorGithub((*source).Github) v1alpha1SCMProviderGenerator.Gitlab = c.pV1alpha1SCMProviderGeneratorGitlabToPV1alpha1SCMProviderGeneratorGitlab((*source).Gitlab) v1alpha1SCMProviderGenerator.Bitbucket = c.pV1alpha1SCMProviderGeneratorBitbucketToPV1alpha1SCMProviderGeneratorBitbucket((*source).Bitbucket) v1alpha1SCMProviderGenerator.BitbucketServer = c.pV1alpha1SCMProviderGeneratorBitbucketServerToPV1alpha1SCMProviderGeneratorBitbucketServer((*source).BitbucketServer) v1alpha1SCMProviderGenerator.Gitea = c.pV1alpha1SCMProviderGeneratorGiteaToPV1alpha1SCMProviderGeneratorGitea((*source).Gitea) v1alpha1SCMProviderGenerator.AzureDevOps = c.pV1alpha1SCMProviderGeneratorAzureDevOpsToPV1alpha1SCMProviderGeneratorAzureDevOps((*source).AzureDevOps) - var v1alpha1SCMProviderGeneratorFilterList []SCMProviderGeneratorFilter + var v1alpha1SCMProviderGeneratorFilterList []v1alpha11.SCMProviderGeneratorFilter if (*source).Filters != nil { - v1alpha1SCMProviderGeneratorFilterList = make([]SCMProviderGeneratorFilter, len((*source).Filters)) + v1alpha1SCMProviderGeneratorFilterList = make([]v1alpha11.SCMProviderGeneratorFilter, len((*source).Filters)) for i := 0; i < len((*source).Filters); i++ { v1alpha1SCMProviderGeneratorFilterList[i] = c.v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderGeneratorFilter((*source).Filters[i]) } @@ -1664,7 +1665,7 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorToPV1alpha1SCMProviderGener } return pV1alpha1SCMProviderGenerator } -func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorToPV1alpha1SCMProviderGenerator2(source *SCMProviderGenerator) *v1alpha1.SCMProviderGenerator { +func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorToPV1alpha1SCMProviderGenerator2(source *v1alpha11.SCMProviderGenerator) *v1alpha1.SCMProviderGenerator { var pV1alpha1SCMProviderGenerator *v1alpha1.SCMProviderGenerator if source != nil { var v1alpha1SCMProviderGenerator v1alpha1.SCMProviderGenerator @@ -1700,17 +1701,17 @@ func (c *ConverterImpl) pV1alpha1SCMProviderGeneratorToPV1alpha1SCMProviderGener } return pV1alpha1SCMProviderGenerator } -func (c *ConverterImpl) pV1alpha1SecretRefToPV1alpha1SecretRef(source *v1alpha1.SecretRef) *SecretRef { - var pV1alpha1SecretRef *SecretRef +func (c *ConverterImpl) pV1alpha1SecretRefToPV1alpha1SecretRef(source *v1alpha1.SecretRef) *v1alpha11.SecretRef { + var pV1alpha1SecretRef *v1alpha11.SecretRef if source != nil { - var v1alpha1SecretRef SecretRef + var v1alpha1SecretRef v1alpha11.SecretRef v1alpha1SecretRef.SecretName = (*source).SecretName v1alpha1SecretRef.Key = (*source).Key pV1alpha1SecretRef = &v1alpha1SecretRef } return pV1alpha1SecretRef } -func (c *ConverterImpl) pV1alpha1SecretRefToPV1alpha1SecretRef2(source *SecretRef) *v1alpha1.SecretRef { +func (c *ConverterImpl) pV1alpha1SecretRefToPV1alpha1SecretRef2(source *v1alpha11.SecretRef) *v1alpha1.SecretRef { var pV1alpha1SecretRef *v1alpha1.SecretRef if source != nil { var v1alpha1SecretRef v1alpha1.SecretRef @@ -1720,10 +1721,10 @@ func (c *ConverterImpl) pV1alpha1SecretRefToPV1alpha1SecretRef2(source *SecretRe } return pV1alpha1SecretRef } -func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated(source *v1alpha1.SyncPolicyAutomated) *SyncPolicyAutomated { - var pV1alpha1SyncPolicyAutomated *SyncPolicyAutomated +func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated(source *v1alpha1.SyncPolicyAutomated) *v1alpha11.SyncPolicyAutomated { + var pV1alpha1SyncPolicyAutomated *v1alpha11.SyncPolicyAutomated if source != nil { - var v1alpha1SyncPolicyAutomated SyncPolicyAutomated + var v1alpha1SyncPolicyAutomated v1alpha11.SyncPolicyAutomated pBool := (*source).Prune v1alpha1SyncPolicyAutomated.Prune = &pBool pBool2 := (*source).SelfHeal @@ -1734,7 +1735,7 @@ func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomat } return pV1alpha1SyncPolicyAutomated } -func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated2(source *SyncPolicyAutomated) *v1alpha1.SyncPolicyAutomated { +func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated2(source *v1alpha11.SyncPolicyAutomated) *v1alpha1.SyncPolicyAutomated { var pV1alpha1SyncPolicyAutomated *v1alpha1.SyncPolicyAutomated if source != nil { var v1alpha1SyncPolicyAutomated v1alpha1.SyncPolicyAutomated @@ -1757,10 +1758,10 @@ func (c *ConverterImpl) pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomat } return pV1alpha1SyncPolicyAutomated } -func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source *v1alpha1.SyncPolicy) *SyncPolicy { - var pV1alpha1SyncPolicy *SyncPolicy +func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source *v1alpha1.SyncPolicy) *v1alpha11.SyncPolicy { + var pV1alpha1SyncPolicy *v1alpha11.SyncPolicy if source != nil { - var v1alpha1SyncPolicy SyncPolicy + var v1alpha1SyncPolicy v1alpha11.SyncPolicy v1alpha1SyncPolicy.Automated = c.pV1alpha1SyncPolicyAutomatedToPV1alpha1SyncPolicyAutomated((*source).Automated) v1alpha1SyncPolicy.SyncOptions = c.v1alpha1SyncOptionsToV1alpha1SyncOptions((*source).SyncOptions) v1alpha1SyncPolicy.Retry = c.pV1alpha1RetryStrategyToPV1alpha1RetryStrategy((*source).Retry) @@ -1769,7 +1770,7 @@ func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source *v1alpha } return pV1alpha1SyncPolicy } -func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy2(source *SyncPolicy) *v1alpha1.SyncPolicy { +func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy2(source *v1alpha11.SyncPolicy) *v1alpha1.SyncPolicy { var pV1alpha1SyncPolicy *v1alpha1.SyncPolicy if source != nil { var v1alpha1SyncPolicy v1alpha1.SyncPolicy @@ -1781,17 +1782,17 @@ func (c *ConverterImpl) pV1alpha1SyncPolicyToPV1alpha1SyncPolicy2(source *SyncPo } return pV1alpha1SyncPolicy } -func (c *ConverterImpl) pV1alpha1TagFilterToPV1alpha1TagFilter(source *v1alpha1.TagFilter) *TagFilter { - var pV1alpha1TagFilter *TagFilter +func (c *ConverterImpl) pV1alpha1TagFilterToPV1alpha1TagFilter(source *v1alpha1.TagFilter) *v1alpha11.TagFilter { + var pV1alpha1TagFilter *v1alpha11.TagFilter if source != nil { - var v1alpha1TagFilter TagFilter + var v1alpha1TagFilter v1alpha11.TagFilter v1alpha1TagFilter.Key = (*source).Key v1alpha1TagFilter.Value = (*source).Value pV1alpha1TagFilter = &v1alpha1TagFilter } return pV1alpha1TagFilter } -func (c *ConverterImpl) pV1alpha1TagFilterToPV1alpha1TagFilter2(source *TagFilter) *v1alpha1.TagFilter { +func (c *ConverterImpl) pV1alpha1TagFilterToPV1alpha1TagFilter2(source *v1alpha11.TagFilter) *v1alpha1.TagFilter { var pV1alpha1TagFilter *v1alpha1.TagFilter if source != nil { var v1alpha1TagFilter v1alpha1.TagFilter @@ -1849,8 +1850,8 @@ func (c *ConverterImpl) v1LabelSelectorToV1LabelSelector(source v11.LabelSelecto v1LabelSelector.MatchExpressions = v1LabelSelectorRequirementList return v1LabelSelector } -func (c *ConverterImpl) v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationMatchExpression(source v1alpha1.ApplicationMatchExpression) ApplicationMatchExpression { - var v1alpha1ApplicationMatchExpression ApplicationMatchExpression +func (c *ConverterImpl) v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationMatchExpression(source v1alpha1.ApplicationMatchExpression) v1alpha11.ApplicationMatchExpression { + var v1alpha1ApplicationMatchExpression v1alpha11.ApplicationMatchExpression v1alpha1ApplicationMatchExpression.Key = source.Key v1alpha1ApplicationMatchExpression.Operator = source.Operator var stringList []string @@ -1863,7 +1864,7 @@ func (c *ConverterImpl) v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationM v1alpha1ApplicationMatchExpression.Values = stringList return v1alpha1ApplicationMatchExpression } -func (c *ConverterImpl) v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationMatchExpression2(source ApplicationMatchExpression) v1alpha1.ApplicationMatchExpression { +func (c *ConverterImpl) v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationMatchExpression2(source v1alpha11.ApplicationMatchExpression) v1alpha1.ApplicationMatchExpression { var v1alpha1ApplicationMatchExpression v1alpha1.ApplicationMatchExpression v1alpha1ApplicationMatchExpression.Key = source.Key v1alpha1ApplicationMatchExpression.Operator = source.Operator @@ -1877,8 +1878,8 @@ func (c *ConverterImpl) v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationM v1alpha1ApplicationMatchExpression.Values = stringList return v1alpha1ApplicationMatchExpression } -func (c *ConverterImpl) v1alpha1ApplicationSetApplicationStatusToV1alpha1ApplicationSetApplicationStatus(source v1alpha1.ApplicationSetApplicationStatus) ApplicationSetApplicationStatus { - var v1alpha1ApplicationSetApplicationStatus ApplicationSetApplicationStatus +func (c *ConverterImpl) v1alpha1ApplicationSetApplicationStatusToV1alpha1ApplicationSetApplicationStatus(source v1alpha1.ApplicationSetApplicationStatus) v1alpha11.ApplicationSetApplicationStatus { + var v1alpha1ApplicationSetApplicationStatus v1alpha11.ApplicationSetApplicationStatus v1alpha1ApplicationSetApplicationStatus.Application = source.Application v1alpha1ApplicationSetApplicationStatus.LastTransitionTime = c.pV1TimeToPV1Time(source.LastTransitionTime) v1alpha1ApplicationSetApplicationStatus.Message = source.Message @@ -1886,7 +1887,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSetApplicationStatusToV1alpha1Applica v1alpha1ApplicationSetApplicationStatus.Step = source.Step return v1alpha1ApplicationSetApplicationStatus } -func (c *ConverterImpl) v1alpha1ApplicationSetApplicationStatusToV1alpha1ApplicationSetApplicationStatus2(source ApplicationSetApplicationStatus) v1alpha1.ApplicationSetApplicationStatus { +func (c *ConverterImpl) v1alpha1ApplicationSetApplicationStatusToV1alpha1ApplicationSetApplicationStatus2(source v1alpha11.ApplicationSetApplicationStatus) v1alpha1.ApplicationSetApplicationStatus { var v1alpha1ApplicationSetApplicationStatus v1alpha1.ApplicationSetApplicationStatus v1alpha1ApplicationSetApplicationStatus.Application = source.Application v1alpha1ApplicationSetApplicationStatus.LastTransitionTime = c.pV1TimeToPV1Time(source.LastTransitionTime) @@ -1895,16 +1896,16 @@ func (c *ConverterImpl) v1alpha1ApplicationSetApplicationStatusToV1alpha1Applica v1alpha1ApplicationSetApplicationStatus.Step = source.Step return v1alpha1ApplicationSetApplicationStatus } -func (c *ConverterImpl) v1alpha1ApplicationSetConditionToV1alpha1ApplicationSetCondition(source v1alpha1.ApplicationSetCondition) ApplicationSetCondition { - var v1alpha1ApplicationSetCondition ApplicationSetCondition - v1alpha1ApplicationSetCondition.Type = ApplicationSetConditionType(source.Type) +func (c *ConverterImpl) v1alpha1ApplicationSetConditionToV1alpha1ApplicationSetCondition(source v1alpha1.ApplicationSetCondition) v1alpha11.ApplicationSetCondition { + var v1alpha1ApplicationSetCondition v1alpha11.ApplicationSetCondition + v1alpha1ApplicationSetCondition.Type = v1alpha11.ApplicationSetConditionType(source.Type) v1alpha1ApplicationSetCondition.Message = source.Message v1alpha1ApplicationSetCondition.LastTransitionTime = c.pV1TimeToPV1Time(source.LastTransitionTime) - v1alpha1ApplicationSetCondition.Status = ApplicationSetConditionStatus(source.Status) + v1alpha1ApplicationSetCondition.Status = v1alpha11.ApplicationSetConditionStatus(source.Status) v1alpha1ApplicationSetCondition.Reason = source.Reason return v1alpha1ApplicationSetCondition } -func (c *ConverterImpl) v1alpha1ApplicationSetConditionToV1alpha1ApplicationSetCondition2(source ApplicationSetCondition) v1alpha1.ApplicationSetCondition { +func (c *ConverterImpl) v1alpha1ApplicationSetConditionToV1alpha1ApplicationSetCondition2(source v1alpha11.ApplicationSetCondition) v1alpha1.ApplicationSetCondition { var v1alpha1ApplicationSetCondition v1alpha1.ApplicationSetCondition v1alpha1ApplicationSetCondition.Type = v1alpha1.ApplicationSetConditionType(source.Type) v1alpha1ApplicationSetCondition.Message = source.Message @@ -1913,8 +1914,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSetConditionToV1alpha1ApplicationSetC v1alpha1ApplicationSetCondition.Reason = source.Reason return v1alpha1ApplicationSetCondition } -func (c *ConverterImpl) v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetGenerator(source v1alpha1.ApplicationSetGenerator) ApplicationSetGenerator { - var v1alpha1ApplicationSetGenerator ApplicationSetGenerator +func (c *ConverterImpl) v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetGenerator(source v1alpha1.ApplicationSetGenerator) v1alpha11.ApplicationSetGenerator { + var v1alpha1ApplicationSetGenerator v1alpha11.ApplicationSetGenerator v1alpha1ApplicationSetGenerator.List = c.pV1alpha1ListGeneratorToPV1alpha1ListGenerator(source.List) v1alpha1ApplicationSetGenerator.Clusters = c.pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator(source.Clusters) v1alpha1ApplicationSetGenerator.Git = c.pV1alpha1GitGeneratorToPV1alpha1GitGenerator(source.Git) @@ -1927,7 +1928,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetG v1alpha1ApplicationSetGenerator.Plugin = c.pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator(source.Plugin) return v1alpha1ApplicationSetGenerator } -func (c *ConverterImpl) v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetGenerator2(source ApplicationSetGenerator) v1alpha1.ApplicationSetGenerator { +func (c *ConverterImpl) v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetGenerator2(source v1alpha11.ApplicationSetGenerator) v1alpha1.ApplicationSetGenerator { var v1alpha1ApplicationSetGenerator v1alpha1.ApplicationSetGenerator v1alpha1ApplicationSetGenerator.List = c.pV1alpha1ListGeneratorToPV1alpha1ListGenerator2(source.List) v1alpha1ApplicationSetGenerator.Clusters = c.pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator2(source.Clusters) @@ -1941,8 +1942,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSetGeneratorToV1alpha1ApplicationSetG v1alpha1ApplicationSetGenerator.Plugin = c.pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator2(source.Plugin) return v1alpha1ApplicationSetGenerator } -func (c *ConverterImpl) v1alpha1ApplicationSetNestedGeneratorToV1alpha1ApplicationSetNestedGenerator(source v1alpha1.ApplicationSetNestedGenerator) ApplicationSetNestedGenerator { - var v1alpha1ApplicationSetNestedGenerator ApplicationSetNestedGenerator +func (c *ConverterImpl) v1alpha1ApplicationSetNestedGeneratorToV1alpha1ApplicationSetNestedGenerator(source v1alpha1.ApplicationSetNestedGenerator) v1alpha11.ApplicationSetNestedGenerator { + var v1alpha1ApplicationSetNestedGenerator v1alpha11.ApplicationSetNestedGenerator v1alpha1ApplicationSetNestedGenerator.List = c.pV1alpha1ListGeneratorToPV1alpha1ListGenerator(source.List) v1alpha1ApplicationSetNestedGenerator.Clusters = c.pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator(source.Clusters) v1alpha1ApplicationSetNestedGenerator.Git = c.pV1alpha1GitGeneratorToPV1alpha1GitGenerator(source.Git) @@ -1955,7 +1956,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSetNestedGeneratorToV1alpha1Applicati v1alpha1ApplicationSetNestedGenerator.Plugin = c.pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator(source.Plugin) return v1alpha1ApplicationSetNestedGenerator } -func (c *ConverterImpl) v1alpha1ApplicationSetNestedGeneratorToV1alpha1ApplicationSetNestedGenerator2(source ApplicationSetNestedGenerator) v1alpha1.ApplicationSetNestedGenerator { +func (c *ConverterImpl) v1alpha1ApplicationSetNestedGeneratorToV1alpha1ApplicationSetNestedGenerator2(source v1alpha11.ApplicationSetNestedGenerator) v1alpha1.ApplicationSetNestedGenerator { var v1alpha1ApplicationSetNestedGenerator v1alpha1.ApplicationSetNestedGenerator v1alpha1ApplicationSetNestedGenerator.List = c.pV1alpha1ListGeneratorToPV1alpha1ListGenerator2(source.List) v1alpha1ApplicationSetNestedGenerator.Clusters = c.pV1alpha1ClusterGeneratorToPV1alpha1ClusterGenerator2(source.Clusters) @@ -1969,11 +1970,11 @@ func (c *ConverterImpl) v1alpha1ApplicationSetNestedGeneratorToV1alpha1Applicati v1alpha1ApplicationSetNestedGenerator.Plugin = c.pV1alpha1PluginGeneratorToPV1alpha1PluginGenerator2(source.Plugin) return v1alpha1ApplicationSetNestedGenerator } -func (c *ConverterImpl) v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSetRolloutStep(source v1alpha1.ApplicationSetRolloutStep) ApplicationSetRolloutStep { - var v1alpha1ApplicationSetRolloutStep ApplicationSetRolloutStep - var v1alpha1ApplicationMatchExpressionList []ApplicationMatchExpression +func (c *ConverterImpl) v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSetRolloutStep(source v1alpha1.ApplicationSetRolloutStep) v1alpha11.ApplicationSetRolloutStep { + var v1alpha1ApplicationSetRolloutStep v1alpha11.ApplicationSetRolloutStep + var v1alpha1ApplicationMatchExpressionList []v1alpha11.ApplicationMatchExpression if source.MatchExpressions != nil { - v1alpha1ApplicationMatchExpressionList = make([]ApplicationMatchExpression, len(source.MatchExpressions)) + v1alpha1ApplicationMatchExpressionList = make([]v1alpha11.ApplicationMatchExpression, len(source.MatchExpressions)) for i := 0; i < len(source.MatchExpressions); i++ { v1alpha1ApplicationMatchExpressionList[i] = c.v1alpha1ApplicationMatchExpressionToV1alpha1ApplicationMatchExpression(source.MatchExpressions[i]) } @@ -1982,7 +1983,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSe v1alpha1ApplicationSetRolloutStep.MaxUpdate = c.pIntstrIntOrStringToPIntstrIntOrString(source.MaxUpdate) return v1alpha1ApplicationSetRolloutStep } -func (c *ConverterImpl) v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSetRolloutStep2(source ApplicationSetRolloutStep) v1alpha1.ApplicationSetRolloutStep { +func (c *ConverterImpl) v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSetRolloutStep2(source v1alpha11.ApplicationSetRolloutStep) v1alpha1.ApplicationSetRolloutStep { var v1alpha1ApplicationSetRolloutStep v1alpha1.ApplicationSetRolloutStep var v1alpha1ApplicationMatchExpressionList []v1alpha1.ApplicationMatchExpression if source.MatchExpressions != nil { @@ -1995,8 +1996,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSetRolloutStepToV1alpha1ApplicationSe v1alpha1ApplicationSetRolloutStep.MaxUpdate = c.pIntstrIntOrStringToPIntstrIntOrString(source.MaxUpdate) return v1alpha1ApplicationSetRolloutStep } -func (c *ConverterImpl) v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationSetTemplateMeta(source v1alpha1.ApplicationSetTemplateMeta) ApplicationSetTemplateMeta { - var v1alpha1ApplicationSetTemplateMeta ApplicationSetTemplateMeta +func (c *ConverterImpl) v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationSetTemplateMeta(source v1alpha1.ApplicationSetTemplateMeta) v1alpha11.ApplicationSetTemplateMeta { + var v1alpha1ApplicationSetTemplateMeta v1alpha11.ApplicationSetTemplateMeta v1alpha1ApplicationSetTemplateMeta.Name = source.Name v1alpha1ApplicationSetTemplateMeta.Namespace = source.Namespace mapStringString := make(map[string]string, len(source.Labels)) @@ -2019,7 +2020,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationS v1alpha1ApplicationSetTemplateMeta.Finalizers = stringList return v1alpha1ApplicationSetTemplateMeta } -func (c *ConverterImpl) v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationSetTemplateMeta2(source ApplicationSetTemplateMeta) v1alpha1.ApplicationSetTemplateMeta { +func (c *ConverterImpl) v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationSetTemplateMeta2(source v1alpha11.ApplicationSetTemplateMeta) v1alpha1.ApplicationSetTemplateMeta { var v1alpha1ApplicationSetTemplateMeta v1alpha1.ApplicationSetTemplateMeta v1alpha1ApplicationSetTemplateMeta.Name = source.Name v1alpha1ApplicationSetTemplateMeta.Namespace = source.Namespace @@ -2043,31 +2044,31 @@ func (c *ConverterImpl) v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationS v1alpha1ApplicationSetTemplateMeta.Finalizers = stringList return v1alpha1ApplicationSetTemplateMeta } -func (c *ConverterImpl) v1alpha1ApplicationSetTemplateToV1alpha1ApplicationSetTemplate(source v1alpha1.ApplicationSetTemplate) ApplicationSetTemplate { - var v1alpha1ApplicationSetTemplate ApplicationSetTemplate +func (c *ConverterImpl) v1alpha1ApplicationSetTemplateToV1alpha1ApplicationSetTemplate(source v1alpha1.ApplicationSetTemplate) v1alpha11.ApplicationSetTemplate { + var v1alpha1ApplicationSetTemplate v1alpha11.ApplicationSetTemplate v1alpha1ApplicationSetTemplate.ApplicationSetTemplateMeta = c.v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationSetTemplateMeta(source.ApplicationSetTemplateMeta) v1alpha1ApplicationSetTemplate.Spec = c.v1alpha1ApplicationSpecToV1alpha1ApplicationSpec(source.Spec) return v1alpha1ApplicationSetTemplate } -func (c *ConverterImpl) v1alpha1ApplicationSetTemplateToV1alpha1ApplicationSetTemplate2(source ApplicationSetTemplate) v1alpha1.ApplicationSetTemplate { +func (c *ConverterImpl) v1alpha1ApplicationSetTemplateToV1alpha1ApplicationSetTemplate2(source v1alpha11.ApplicationSetTemplate) v1alpha1.ApplicationSetTemplate { var v1alpha1ApplicationSetTemplate v1alpha1.ApplicationSetTemplate v1alpha1ApplicationSetTemplate.ApplicationSetTemplateMeta = c.v1alpha1ApplicationSetTemplateMetaToV1alpha1ApplicationSetTemplateMeta2(source.ApplicationSetTemplateMeta) v1alpha1ApplicationSetTemplate.Spec = c.v1alpha1ApplicationSpecToV1alpha1ApplicationSpec2(source.Spec) return v1alpha1ApplicationSetTemplate } -func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet(source v1alpha1.ApplicationSourceJsonnet) ApplicationSourceJsonnet { - var v1alpha1ApplicationSourceJsonnet ApplicationSourceJsonnet - var v1alpha1JsonnetVarList []JsonnetVar +func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet(source v1alpha1.ApplicationSourceJsonnet) v1alpha11.ApplicationSourceJsonnet { + var v1alpha1ApplicationSourceJsonnet v1alpha11.ApplicationSourceJsonnet + var v1alpha1JsonnetVarList []v1alpha11.JsonnetVar if source.ExtVars != nil { - v1alpha1JsonnetVarList = make([]JsonnetVar, len(source.ExtVars)) + v1alpha1JsonnetVarList = make([]v1alpha11.JsonnetVar, len(source.ExtVars)) for i := 0; i < len(source.ExtVars); i++ { v1alpha1JsonnetVarList[i] = c.v1alpha1JsonnetVarToV1alpha1JsonnetVar(source.ExtVars[i]) } } v1alpha1ApplicationSourceJsonnet.ExtVars = v1alpha1JsonnetVarList - var v1alpha1JsonnetVarList2 []JsonnetVar + var v1alpha1JsonnetVarList2 []v1alpha11.JsonnetVar if source.TLAs != nil { - v1alpha1JsonnetVarList2 = make([]JsonnetVar, len(source.TLAs)) + v1alpha1JsonnetVarList2 = make([]v1alpha11.JsonnetVar, len(source.TLAs)) for j := 0; j < len(source.TLAs); j++ { v1alpha1JsonnetVarList2[j] = c.v1alpha1JsonnetVarToV1alpha1JsonnetVar(source.TLAs[j]) } @@ -2083,7 +2084,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSou v1alpha1ApplicationSourceJsonnet.Libs = stringList return v1alpha1ApplicationSourceJsonnet } -func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet2(source ApplicationSourceJsonnet) v1alpha1.ApplicationSourceJsonnet { +func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSourceJsonnet2(source v1alpha11.ApplicationSourceJsonnet) v1alpha1.ApplicationSourceJsonnet { var v1alpha1ApplicationSourceJsonnet v1alpha1.ApplicationSourceJsonnet var v1alpha1JsonnetVarList []v1alpha1.JsonnetVar if source.ExtVars != nil { @@ -2111,8 +2112,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceJsonnetToV1alpha1ApplicationSou v1alpha1ApplicationSourceJsonnet.Libs = stringList return v1alpha1ApplicationSourceJsonnet } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter(source v1alpha1.ApplicationSourcePluginParameter) ApplicationSourcePluginParameter { - var v1alpha1ApplicationSourcePluginParameter ApplicationSourcePluginParameter +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter(source v1alpha1.ApplicationSourcePluginParameter) v1alpha11.ApplicationSourcePluginParameter { + var v1alpha1ApplicationSourcePluginParameter v1alpha11.ApplicationSourcePluginParameter pString := source.Name v1alpha1ApplicationSourcePluginParameter.Name = &pString var pString2 *string @@ -2125,7 +2126,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1Applic v1alpha1ApplicationSourcePluginParameter.OptionalArray = c.pV1alpha1OptionalArrayToPV1alpha1OptionalArray(source.OptionalArray) return v1alpha1ApplicationSourcePluginParameter } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter2(source ApplicationSourcePluginParameter) v1alpha1.ApplicationSourcePluginParameter { +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter2(source v1alpha11.ApplicationSourcePluginParameter) v1alpha1.ApplicationSourcePluginParameter { var v1alpha1ApplicationSourcePluginParameter v1alpha1.ApplicationSourcePluginParameter var xstring string if source.Name != nil { @@ -2142,17 +2143,17 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParameterToV1alpha1Applic v1alpha1ApplicationSourcePluginParameter.OptionalArray = c.pV1alpha1OptionalArrayToPV1alpha1OptionalArray2(source.OptionalArray) return v1alpha1ApplicationSourcePluginParameter } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters(source v1alpha1.ApplicationSourcePluginParameters) ApplicationSourcePluginParameters { - var v1alpha1ApplicationSourcePluginParameters ApplicationSourcePluginParameters +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters(source v1alpha1.ApplicationSourcePluginParameters) v1alpha11.ApplicationSourcePluginParameters { + var v1alpha1ApplicationSourcePluginParameters v1alpha11.ApplicationSourcePluginParameters if source != nil { - v1alpha1ApplicationSourcePluginParameters = make(ApplicationSourcePluginParameters, len(source)) + v1alpha1ApplicationSourcePluginParameters = make(v1alpha11.ApplicationSourcePluginParameters, len(source)) for i := 0; i < len(source); i++ { v1alpha1ApplicationSourcePluginParameters[i] = c.v1alpha1ApplicationSourcePluginParameterToV1alpha1ApplicationSourcePluginParameter(source[i]) } } return v1alpha1ApplicationSourcePluginParameters } -func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters2(source ApplicationSourcePluginParameters) v1alpha1.ApplicationSourcePluginParameters { +func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1ApplicationSourcePluginParameters2(source v1alpha11.ApplicationSourcePluginParameters) v1alpha1.ApplicationSourcePluginParameters { var v1alpha1ApplicationSourcePluginParameters v1alpha1.ApplicationSourcePluginParameters if source != nil { v1alpha1ApplicationSourcePluginParameters = make(v1alpha1.ApplicationSourcePluginParameters, len(source)) @@ -2162,8 +2163,8 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcePluginParametersToV1alpha1Appli } return v1alpha1ApplicationSourcePluginParameters } -func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source v1alpha1.ApplicationSource) ApplicationSource { - var v1alpha1ApplicationSource ApplicationSource +func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source v1alpha1.ApplicationSource) v1alpha11.ApplicationSource { + var v1alpha1ApplicationSource v1alpha11.ApplicationSource v1alpha1ApplicationSource.RepoURL = source.RepoURL pString := source.Path v1alpha1ApplicationSource.Path = &pString @@ -2179,7 +2180,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource(sou v1alpha1ApplicationSource.Ref = &pString4 return v1alpha1ApplicationSource } -func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource2(source ApplicationSource) v1alpha1.ApplicationSource { +func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource2(source v1alpha11.ApplicationSource) v1alpha1.ApplicationSource { var v1alpha1ApplicationSource v1alpha1.ApplicationSource v1alpha1ApplicationSource.RepoURL = source.RepoURL var xstring string @@ -2208,17 +2209,17 @@ func (c *ConverterImpl) v1alpha1ApplicationSourceToV1alpha1ApplicationSource2(so v1alpha1ApplicationSource.Ref = xstring4 return v1alpha1ApplicationSource } -func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources(source v1alpha1.ApplicationSources) ApplicationSources { - var v1alpha1ApplicationSources ApplicationSources +func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources(source v1alpha1.ApplicationSources) v1alpha11.ApplicationSources { + var v1alpha1ApplicationSources v1alpha11.ApplicationSources if source != nil { - v1alpha1ApplicationSources = make(ApplicationSources, len(source)) + v1alpha1ApplicationSources = make(v1alpha11.ApplicationSources, len(source)) for i := 0; i < len(source); i++ { v1alpha1ApplicationSources[i] = c.v1alpha1ApplicationSourceToV1alpha1ApplicationSource(source[i]) } } return v1alpha1ApplicationSources } -func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2(source ApplicationSources) v1alpha1.ApplicationSources { +func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2(source v1alpha11.ApplicationSources) v1alpha1.ApplicationSources { var v1alpha1ApplicationSources v1alpha1.ApplicationSources if source != nil { v1alpha1ApplicationSources = make(v1alpha1.ApplicationSources, len(source)) @@ -2228,16 +2229,16 @@ func (c *ConverterImpl) v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2( } return v1alpha1ApplicationSources } -func (c *ConverterImpl) v1alpha1ApplicationSpecToV1alpha1ApplicationSpec(source v1alpha1.ApplicationSpec) ApplicationSpec { - var v1alpha1ApplicationSpec ApplicationSpec +func (c *ConverterImpl) v1alpha1ApplicationSpecToV1alpha1ApplicationSpec(source v1alpha1.ApplicationSpec) v1alpha11.ApplicationSpec { + var v1alpha1ApplicationSpec v1alpha11.ApplicationSpec v1alpha1ApplicationSpec.Source = c.pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource(source.Source) v1alpha1ApplicationSpec.Destination = c.FromArgoDestination(source.Destination) v1alpha1ApplicationSpec.Project = source.Project v1alpha1ApplicationSpec.SyncPolicy = c.pV1alpha1SyncPolicyToPV1alpha1SyncPolicy(source.SyncPolicy) v1alpha1ApplicationSpec.IgnoreDifferences = c.v1alpha1IgnoreDifferencesToV1alpha1ResourceIgnoreDifferencesList(source.IgnoreDifferences) - var v1alpha1InfoList []Info + var v1alpha1InfoList []v1alpha11.Info if source.Info != nil { - v1alpha1InfoList = make([]Info, len(source.Info)) + v1alpha1InfoList = make([]v1alpha11.Info, len(source.Info)) for i := 0; i < len(source.Info); i++ { v1alpha1InfoList[i] = c.v1alpha1InfoToV1alpha1Info(source.Info[i]) } @@ -2252,7 +2253,7 @@ func (c *ConverterImpl) v1alpha1ApplicationSpecToV1alpha1ApplicationSpec(source v1alpha1ApplicationSpec.Sources = c.v1alpha1ApplicationSourcesToV1alpha1ApplicationSources(source.Sources) return v1alpha1ApplicationSpec } -func (c *ConverterImpl) v1alpha1ApplicationSpecToV1alpha1ApplicationSpec2(source ApplicationSpec) v1alpha1.ApplicationSpec { +func (c *ConverterImpl) v1alpha1ApplicationSpecToV1alpha1ApplicationSpec2(source v1alpha11.ApplicationSpec) v1alpha1.ApplicationSpec { var v1alpha1ApplicationSpec v1alpha1.ApplicationSpec v1alpha1ApplicationSpec.Source = c.pV1alpha1ApplicationSourceToPV1alpha1ApplicationSource2(source.Source) v1alpha1ApplicationSpec.Destination = c.ToArgoDestination(source.Destination) @@ -2276,17 +2277,17 @@ func (c *ConverterImpl) v1alpha1ApplicationSpecToV1alpha1ApplicationSpec2(source v1alpha1ApplicationSpec.Sources = c.v1alpha1ApplicationSourcesToV1alpha1ApplicationSources2(source.Sources) return v1alpha1ApplicationSpec } -func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env(source v1alpha1.Env) Env { - var v1alpha1Env Env +func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env(source v1alpha1.Env) v1alpha11.Env { + var v1alpha1Env v1alpha11.Env if source != nil { - v1alpha1Env = make(Env, len(source)) + v1alpha1Env = make(v1alpha11.Env, len(source)) for i := 0; i < len(source); i++ { v1alpha1Env[i] = c.pV1alpha1EnvEntryToPV1alpha1EnvEntry(source[i]) } } return v1alpha1Env } -func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env2(source Env) v1alpha1.Env { +func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env2(source v1alpha11.Env) v1alpha1.Env { var v1alpha1Env v1alpha1.Env if source != nil { v1alpha1Env = make(v1alpha1.Env, len(source)) @@ -2296,37 +2297,37 @@ func (c *ConverterImpl) v1alpha1EnvToV1alpha1Env2(source Env) v1alpha1.Env { } return v1alpha1Env } -func (c *ConverterImpl) v1alpha1GitDirectoryGeneratorItemToV1alpha1GitDirectoryGeneratorItem(source v1alpha1.GitDirectoryGeneratorItem) GitDirectoryGeneratorItem { - var v1alpha1GitDirectoryGeneratorItem GitDirectoryGeneratorItem +func (c *ConverterImpl) v1alpha1GitDirectoryGeneratorItemToV1alpha1GitDirectoryGeneratorItem(source v1alpha1.GitDirectoryGeneratorItem) v1alpha11.GitDirectoryGeneratorItem { + var v1alpha1GitDirectoryGeneratorItem v1alpha11.GitDirectoryGeneratorItem v1alpha1GitDirectoryGeneratorItem.Path = source.Path v1alpha1GitDirectoryGeneratorItem.Exclude = source.Exclude return v1alpha1GitDirectoryGeneratorItem } -func (c *ConverterImpl) v1alpha1GitDirectoryGeneratorItemToV1alpha1GitDirectoryGeneratorItem2(source GitDirectoryGeneratorItem) v1alpha1.GitDirectoryGeneratorItem { +func (c *ConverterImpl) v1alpha1GitDirectoryGeneratorItemToV1alpha1GitDirectoryGeneratorItem2(source v1alpha11.GitDirectoryGeneratorItem) v1alpha1.GitDirectoryGeneratorItem { var v1alpha1GitDirectoryGeneratorItem v1alpha1.GitDirectoryGeneratorItem v1alpha1GitDirectoryGeneratorItem.Path = source.Path v1alpha1GitDirectoryGeneratorItem.Exclude = source.Exclude return v1alpha1GitDirectoryGeneratorItem } -func (c *ConverterImpl) v1alpha1GitFileGeneratorItemToV1alpha1GitFileGeneratorItem(source v1alpha1.GitFileGeneratorItem) GitFileGeneratorItem { - var v1alpha1GitFileGeneratorItem GitFileGeneratorItem +func (c *ConverterImpl) v1alpha1GitFileGeneratorItemToV1alpha1GitFileGeneratorItem(source v1alpha1.GitFileGeneratorItem) v1alpha11.GitFileGeneratorItem { + var v1alpha1GitFileGeneratorItem v1alpha11.GitFileGeneratorItem v1alpha1GitFileGeneratorItem.Path = source.Path return v1alpha1GitFileGeneratorItem } -func (c *ConverterImpl) v1alpha1GitFileGeneratorItemToV1alpha1GitFileGeneratorItem2(source GitFileGeneratorItem) v1alpha1.GitFileGeneratorItem { +func (c *ConverterImpl) v1alpha1GitFileGeneratorItemToV1alpha1GitFileGeneratorItem2(source v1alpha11.GitFileGeneratorItem) v1alpha1.GitFileGeneratorItem { var v1alpha1GitFileGeneratorItem v1alpha1.GitFileGeneratorItem v1alpha1GitFileGeneratorItem.Path = source.Path return v1alpha1GitFileGeneratorItem } -func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter(source v1alpha1.HelmFileParameter) HelmFileParameter { - var v1alpha1HelmFileParameter HelmFileParameter +func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter(source v1alpha1.HelmFileParameter) v1alpha11.HelmFileParameter { + var v1alpha1HelmFileParameter v1alpha11.HelmFileParameter pString := source.Name v1alpha1HelmFileParameter.Name = &pString pString2 := source.Path v1alpha1HelmFileParameter.Path = &pString2 return v1alpha1HelmFileParameter } -func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter2(source HelmFileParameter) v1alpha1.HelmFileParameter { +func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter2(source v1alpha11.HelmFileParameter) v1alpha1.HelmFileParameter { var v1alpha1HelmFileParameter v1alpha1.HelmFileParameter var xstring string if source.Name != nil { @@ -2340,8 +2341,8 @@ func (c *ConverterImpl) v1alpha1HelmFileParameterToV1alpha1HelmFileParameter2(so v1alpha1HelmFileParameter.Path = xstring2 return v1alpha1HelmFileParameter } -func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter(source v1alpha1.HelmParameter) HelmParameter { - var v1alpha1HelmParameter HelmParameter +func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter(source v1alpha1.HelmParameter) v1alpha11.HelmParameter { + var v1alpha1HelmParameter v1alpha11.HelmParameter pString := source.Name v1alpha1HelmParameter.Name = &pString pString2 := source.Value @@ -2350,7 +2351,7 @@ func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter(source v1al v1alpha1HelmParameter.ForceString = &pBool return v1alpha1HelmParameter } -func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter2(source HelmParameter) v1alpha1.HelmParameter { +func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter2(source v1alpha11.HelmParameter) v1alpha1.HelmParameter { var v1alpha1HelmParameter v1alpha1.HelmParameter var xstring string if source.Name != nil { @@ -2369,37 +2370,37 @@ func (c *ConverterImpl) v1alpha1HelmParameterToV1alpha1HelmParameter2(source Hel v1alpha1HelmParameter.ForceString = xbool return v1alpha1HelmParameter } -func (c *ConverterImpl) v1alpha1IgnoreDifferencesToV1alpha1ResourceIgnoreDifferencesList(source v1alpha1.IgnoreDifferences) []ResourceIgnoreDifferences { - var v1alpha1ResourceIgnoreDifferencesList []ResourceIgnoreDifferences +func (c *ConverterImpl) v1alpha1IgnoreDifferencesToV1alpha1ResourceIgnoreDifferencesList(source v1alpha1.IgnoreDifferences) []v1alpha11.ResourceIgnoreDifferences { + var v1alpha1ResourceIgnoreDifferencesList []v1alpha11.ResourceIgnoreDifferences if source != nil { - v1alpha1ResourceIgnoreDifferencesList = make([]ResourceIgnoreDifferences, len(source)) + v1alpha1ResourceIgnoreDifferencesList = make([]v1alpha11.ResourceIgnoreDifferences, len(source)) for i := 0; i < len(source); i++ { v1alpha1ResourceIgnoreDifferencesList[i] = c.v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences(source[i]) } } return v1alpha1ResourceIgnoreDifferencesList } -func (c *ConverterImpl) v1alpha1InfoToV1alpha1Info(source v1alpha1.Info) Info { - var v1alpha1Info Info +func (c *ConverterImpl) v1alpha1InfoToV1alpha1Info(source v1alpha1.Info) v1alpha11.Info { + var v1alpha1Info v1alpha11.Info v1alpha1Info.Name = source.Name v1alpha1Info.Value = source.Value return v1alpha1Info } -func (c *ConverterImpl) v1alpha1InfoToV1alpha1Info2(source Info) v1alpha1.Info { +func (c *ConverterImpl) v1alpha1InfoToV1alpha1Info2(source v1alpha11.Info) v1alpha1.Info { var v1alpha1Info v1alpha1.Info v1alpha1Info.Name = source.Name v1alpha1Info.Value = source.Value return v1alpha1Info } -func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar(source v1alpha1.JsonnetVar) JsonnetVar { - var v1alpha1JsonnetVar JsonnetVar +func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar(source v1alpha1.JsonnetVar) v1alpha11.JsonnetVar { + var v1alpha1JsonnetVar v1alpha11.JsonnetVar v1alpha1JsonnetVar.Name = source.Name v1alpha1JsonnetVar.Value = source.Value pBool := source.Code v1alpha1JsonnetVar.Code = &pBool return v1alpha1JsonnetVar } -func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar2(source JsonnetVar) v1alpha1.JsonnetVar { +func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar2(source v1alpha11.JsonnetVar) v1alpha1.JsonnetVar { var v1alpha1JsonnetVar v1alpha1.JsonnetVar v1alpha1JsonnetVar.Name = source.Name v1alpha1JsonnetVar.Value = source.Value @@ -2410,17 +2411,17 @@ func (c *ConverterImpl) v1alpha1JsonnetVarToV1alpha1JsonnetVar2(source JsonnetVa v1alpha1JsonnetVar.Code = xbool return v1alpha1JsonnetVar } -func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages(source v1alpha1.KustomizeImages) KustomizeImages { - var v1alpha1KustomizeImages KustomizeImages +func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages(source v1alpha1.KustomizeImages) v1alpha11.KustomizeImages { + var v1alpha1KustomizeImages v1alpha11.KustomizeImages if source != nil { - v1alpha1KustomizeImages = make(KustomizeImages, len(source)) + v1alpha1KustomizeImages = make(v1alpha11.KustomizeImages, len(source)) for i := 0; i < len(source); i++ { - v1alpha1KustomizeImages[i] = KustomizeImage(source[i]) + v1alpha1KustomizeImages[i] = v1alpha11.KustomizeImage(source[i]) } } return v1alpha1KustomizeImages } -func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages2(source KustomizeImages) v1alpha1.KustomizeImages { +func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages2(source v1alpha11.KustomizeImages) v1alpha1.KustomizeImages { var v1alpha1KustomizeImages v1alpha1.KustomizeImages if source != nil { v1alpha1KustomizeImages = make(v1alpha1.KustomizeImages, len(source)) @@ -2430,29 +2431,29 @@ func (c *ConverterImpl) v1alpha1KustomizeImagesToV1alpha1KustomizeImages2(source } return v1alpha1KustomizeImages } -func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica(source v1alpha1.KustomizeReplica) KustomizeReplica { - var v1alpha1KustomizeReplica KustomizeReplica +func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica(source v1alpha1.KustomizeReplica) v1alpha11.KustomizeReplica { + var v1alpha1KustomizeReplica v1alpha11.KustomizeReplica v1alpha1KustomizeReplica.Name = source.Name v1alpha1KustomizeReplica.Count = c.intstrIntOrStringToIntstrIntOrString(source.Count) return v1alpha1KustomizeReplica } -func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica2(source KustomizeReplica) v1alpha1.KustomizeReplica { +func (c *ConverterImpl) v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica2(source v1alpha11.KustomizeReplica) v1alpha1.KustomizeReplica { var v1alpha1KustomizeReplica v1alpha1.KustomizeReplica v1alpha1KustomizeReplica.Name = source.Name v1alpha1KustomizeReplica.Count = c.intstrIntOrStringToIntstrIntOrString(source.Count) return v1alpha1KustomizeReplica } -func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas(source v1alpha1.KustomizeReplicas) KustomizeReplicas { - var v1alpha1KustomizeReplicas KustomizeReplicas +func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas(source v1alpha1.KustomizeReplicas) v1alpha11.KustomizeReplicas { + var v1alpha1KustomizeReplicas v1alpha11.KustomizeReplicas if source != nil { - v1alpha1KustomizeReplicas = make(KustomizeReplicas, len(source)) + v1alpha1KustomizeReplicas = make(v1alpha11.KustomizeReplicas, len(source)) for i := 0; i < len(source); i++ { v1alpha1KustomizeReplicas[i] = c.v1alpha1KustomizeReplicaToV1alpha1KustomizeReplica(source[i]) } } return v1alpha1KustomizeReplicas } -func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas2(source KustomizeReplicas) v1alpha1.KustomizeReplicas { +func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas2(source v1alpha11.KustomizeReplicas) v1alpha1.KustomizeReplicas { var v1alpha1KustomizeReplicas v1alpha1.KustomizeReplicas if source != nil { v1alpha1KustomizeReplicas = make(v1alpha1.KustomizeReplicas, len(source)) @@ -2462,42 +2463,42 @@ func (c *ConverterImpl) v1alpha1KustomizeReplicasToV1alpha1KustomizeReplicas2(so } return v1alpha1KustomizeReplicas } -func (c *ConverterImpl) v1alpha1PluginConfigMapRefToV1alpha1PluginConfigMapRef(source v1alpha1.PluginConfigMapRef) PluginConfigMapRef { - var v1alpha1PluginConfigMapRef PluginConfigMapRef +func (c *ConverterImpl) v1alpha1PluginConfigMapRefToV1alpha1PluginConfigMapRef(source v1alpha1.PluginConfigMapRef) v1alpha11.PluginConfigMapRef { + var v1alpha1PluginConfigMapRef v1alpha11.PluginConfigMapRef v1alpha1PluginConfigMapRef.Name = source.Name return v1alpha1PluginConfigMapRef } -func (c *ConverterImpl) v1alpha1PluginConfigMapRefToV1alpha1PluginConfigMapRef2(source PluginConfigMapRef) v1alpha1.PluginConfigMapRef { +func (c *ConverterImpl) v1alpha1PluginConfigMapRefToV1alpha1PluginConfigMapRef2(source v1alpha11.PluginConfigMapRef) v1alpha1.PluginConfigMapRef { var v1alpha1PluginConfigMapRef v1alpha1.PluginConfigMapRef v1alpha1PluginConfigMapRef.Name = source.Name return v1alpha1PluginConfigMapRef } -func (c *ConverterImpl) v1alpha1PluginInputToV1alpha1PluginInput(source v1alpha1.PluginInput) PluginInput { - var v1alpha1PluginInput PluginInput +func (c *ConverterImpl) v1alpha1PluginInputToV1alpha1PluginInput(source v1alpha1.PluginInput) v1alpha11.PluginInput { + var v1alpha1PluginInput v1alpha11.PluginInput v1alpha1PluginInput.Parameters = c.v1alpha1PluginParametersToV1alpha1PluginParameters(source.Parameters) return v1alpha1PluginInput } -func (c *ConverterImpl) v1alpha1PluginInputToV1alpha1PluginInput2(source PluginInput) v1alpha1.PluginInput { +func (c *ConverterImpl) v1alpha1PluginInputToV1alpha1PluginInput2(source v1alpha11.PluginInput) v1alpha1.PluginInput { var v1alpha1PluginInput v1alpha1.PluginInput v1alpha1PluginInput.Parameters = c.v1alpha1PluginParametersToV1alpha1PluginParameters2(source.Parameters) return v1alpha1PluginInput } -func (c *ConverterImpl) v1alpha1PluginParametersToV1alpha1PluginParameters(source v1alpha1.PluginParameters) PluginParameters { - v1alpha1PluginParameters := make(PluginParameters, len(source)) +func (c *ConverterImpl) v1alpha1PluginParametersToV1alpha1PluginParameters(source v1alpha1.PluginParameters) v1alpha11.PluginParameters { + v1alpha1PluginParameters := make(v1alpha11.PluginParameters, len(source)) for key, value := range source { v1alpha1PluginParameters[key] = c.v1JSONToV1JSON(value) } return v1alpha1PluginParameters } -func (c *ConverterImpl) v1alpha1PluginParametersToV1alpha1PluginParameters2(source PluginParameters) v1alpha1.PluginParameters { +func (c *ConverterImpl) v1alpha1PluginParametersToV1alpha1PluginParameters2(source v1alpha11.PluginParameters) v1alpha1.PluginParameters { v1alpha1PluginParameters := make(v1alpha1.PluginParameters, len(source)) for key, value := range source { v1alpha1PluginParameters[key] = c.v1JSONToV1JSON(value) } return v1alpha1PluginParameters } -func (c *ConverterImpl) v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestGeneratorFilter(source v1alpha1.PullRequestGeneratorFilter) PullRequestGeneratorFilter { - var v1alpha1PullRequestGeneratorFilter PullRequestGeneratorFilter +func (c *ConverterImpl) v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestGeneratorFilter(source v1alpha1.PullRequestGeneratorFilter) v1alpha11.PullRequestGeneratorFilter { + var v1alpha1PullRequestGeneratorFilter v1alpha11.PullRequestGeneratorFilter var pString *string if source.BranchMatch != nil { xstring := *source.BranchMatch @@ -2512,7 +2513,7 @@ func (c *ConverterImpl) v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestG v1alpha1PullRequestGeneratorFilter.TargetBranchMatch = pString2 return v1alpha1PullRequestGeneratorFilter } -func (c *ConverterImpl) v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestGeneratorFilter2(source PullRequestGeneratorFilter) v1alpha1.PullRequestGeneratorFilter { +func (c *ConverterImpl) v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestGeneratorFilter2(source v1alpha11.PullRequestGeneratorFilter) v1alpha1.PullRequestGeneratorFilter { var v1alpha1PullRequestGeneratorFilter v1alpha1.PullRequestGeneratorFilter var pString *string if source.BranchMatch != nil { @@ -2528,7 +2529,7 @@ func (c *ConverterImpl) v1alpha1PullRequestGeneratorFilterToV1alpha1PullRequestG v1alpha1PullRequestGeneratorFilter.TargetBranchMatch = pString2 return v1alpha1PullRequestGeneratorFilter } -func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesListToV1alpha1IgnoreDifferences(source []ResourceIgnoreDifferences) v1alpha1.IgnoreDifferences { +func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesListToV1alpha1IgnoreDifferences(source []v1alpha11.ResourceIgnoreDifferences) v1alpha1.IgnoreDifferences { var v1alpha1IgnoreDifferences v1alpha1.IgnoreDifferences if source != nil { v1alpha1IgnoreDifferences = make(v1alpha1.IgnoreDifferences, len(source)) @@ -2538,8 +2539,8 @@ func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesListToV1alpha1IgnoreDif } return v1alpha1IgnoreDifferences } -func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences(source v1alpha1.ResourceIgnoreDifferences) ResourceIgnoreDifferences { - var v1alpha1ResourceIgnoreDifferences ResourceIgnoreDifferences +func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences(source v1alpha1.ResourceIgnoreDifferences) v1alpha11.ResourceIgnoreDifferences { + var v1alpha1ResourceIgnoreDifferences v1alpha11.ResourceIgnoreDifferences v1alpha1ResourceIgnoreDifferences.Group = source.Group v1alpha1ResourceIgnoreDifferences.Kind = source.Kind v1alpha1ResourceIgnoreDifferences.Name = source.Name @@ -2570,7 +2571,7 @@ func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnor v1alpha1ResourceIgnoreDifferences.ManagedFieldsManagers = stringList3 return v1alpha1ResourceIgnoreDifferences } -func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences2(source ResourceIgnoreDifferences) v1alpha1.ResourceIgnoreDifferences { +func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnoreDifferences2(source v1alpha11.ResourceIgnoreDifferences) v1alpha1.ResourceIgnoreDifferences { var v1alpha1ResourceIgnoreDifferences v1alpha1.ResourceIgnoreDifferences v1alpha1ResourceIgnoreDifferences.Group = source.Group v1alpha1ResourceIgnoreDifferences.Kind = source.Kind @@ -2602,8 +2603,8 @@ func (c *ConverterImpl) v1alpha1ResourceIgnoreDifferencesToV1alpha1ResourceIgnor v1alpha1ResourceIgnoreDifferences.ManagedFieldsManagers = stringList3 return v1alpha1ResourceIgnoreDifferences } -func (c *ConverterImpl) v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderGeneratorFilter(source v1alpha1.SCMProviderGeneratorFilter) SCMProviderGeneratorFilter { - var v1alpha1SCMProviderGeneratorFilter SCMProviderGeneratorFilter +func (c *ConverterImpl) v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderGeneratorFilter(source v1alpha1.SCMProviderGeneratorFilter) v1alpha11.SCMProviderGeneratorFilter { + var v1alpha1SCMProviderGeneratorFilter v1alpha11.SCMProviderGeneratorFilter var pString *string if source.RepositoryMatch != nil { xstring := *source.RepositoryMatch @@ -2640,7 +2641,7 @@ func (c *ConverterImpl) v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderG v1alpha1SCMProviderGeneratorFilter.BranchMatch = pString3 return v1alpha1SCMProviderGeneratorFilter } -func (c *ConverterImpl) v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderGeneratorFilter2(source SCMProviderGeneratorFilter) v1alpha1.SCMProviderGeneratorFilter { +func (c *ConverterImpl) v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderGeneratorFilter2(source v1alpha11.SCMProviderGeneratorFilter) v1alpha1.SCMProviderGeneratorFilter { var v1alpha1SCMProviderGeneratorFilter v1alpha1.SCMProviderGeneratorFilter var pString *string if source.RepositoryMatch != nil { @@ -2678,17 +2679,17 @@ func (c *ConverterImpl) v1alpha1SCMProviderGeneratorFilterToV1alpha1SCMProviderG v1alpha1SCMProviderGeneratorFilter.BranchMatch = pString3 return v1alpha1SCMProviderGeneratorFilter } -func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions(source v1alpha1.SyncOptions) SyncOptions { - var v1alpha1SyncOptions SyncOptions +func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions(source v1alpha1.SyncOptions) v1alpha11.SyncOptions { + var v1alpha1SyncOptions v1alpha11.SyncOptions if source != nil { - v1alpha1SyncOptions = make(SyncOptions, len(source)) + v1alpha1SyncOptions = make(v1alpha11.SyncOptions, len(source)) for i := 0; i < len(source); i++ { v1alpha1SyncOptions[i] = source[i] } } return v1alpha1SyncOptions } -func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions2(source SyncOptions) v1alpha1.SyncOptions { +func (c *ConverterImpl) v1alpha1SyncOptionsToV1alpha1SyncOptions2(source v1alpha11.SyncOptions) v1alpha1.SyncOptions { var v1alpha1SyncOptions v1alpha1.SyncOptions if source != nil { v1alpha1SyncOptions = make(v1alpha1.SyncOptions, len(source)) diff --git a/pkg/clients/generate.go b/pkg/clients/generate.go new file mode 100644 index 0000000..ca1e06a --- /dev/null +++ b/pkg/clients/generate.go @@ -0,0 +1,26 @@ +//go:build generate + +/* +Copyright 2024 The Crossplane Authors. + +Licensed 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. +*/ + +// Generate conversion code +//go:generate go run -tags generate github.com/jmattheis/goverter/cmd/goverter gen -output-constraint !ignore_autogenerated ./... + +package clients + +import ( + _ "github.com/jmattheis/goverter/cmd/goverter" //nolint:typecheck +) diff --git a/pkg/controller/applications/comp.go b/pkg/controller/applications/comp.go index b331be1..adec412 100644 --- a/pkg/controller/applications/comp.go +++ b/pkg/controller/applications/comp.go @@ -6,11 +6,12 @@ import ( "github.com/google/go-cmp/cmp/cmpopts" "github.com/crossplane-contrib/provider-argocd/apis/applications/v1alpha1" + "github.com/crossplane-contrib/provider-argocd/pkg/clients/applications" ) // IsApplicationUpToDate converts ApplicationParameters to its ArgoCD Counterpart and returns if they equal func IsApplicationUpToDate(cr *v1alpha1.ApplicationParameters, remote *argocdv1alpha1.Application) bool { // nolint:gocyclo - converter := v1alpha1.ConverterImpl{} + converter := applications.ConverterImpl{} cluster := converter.ToArgoApplicationSpec(cr) opts := []cmp.Option{ diff --git a/pkg/controller/applications/controller.go b/pkg/controller/applications/controller.go index 01d71b3..54ad662 100644 --- a/pkg/controller/applications/controller.go +++ b/pkg/controller/applications/controller.go @@ -202,13 +202,13 @@ func generateApplicationObservation(app *argocdv1alpha1.Application) v1alpha1.Ar return v1alpha1.ArgoApplicationStatus{} } - converter := &v1alpha1.ConverterImpl{} + converter := &applications.ConverterImpl{} status := converter.FromArgoApplicationStatus(&app.Status) return *status } func generateCreateApplicationRequest(cr *v1alpha1.Application) *application.ApplicationCreateRequest { - converter := &v1alpha1.ConverterImpl{} + converter := &applications.ConverterImpl{} spec := converter.ToArgoApplicationSpec(&cr.Spec.ForProvider) @@ -229,7 +229,7 @@ func generateCreateApplicationRequest(cr *v1alpha1.Application) *application.App } func generateUpdateRepositoryOptions(cr *v1alpha1.Application) *application.ApplicationUpdateRequest { - converter := v1alpha1.ConverterImpl{} + converter := applications.ConverterImpl{} spec := converter.ToArgoApplicationSpec(&cr.Spec.ForProvider) diff --git a/pkg/controller/applicationsets/comp.go b/pkg/controller/applicationsets/comp.go index 1041a01..5b33c89 100644 --- a/pkg/controller/applicationsets/comp.go +++ b/pkg/controller/applicationsets/comp.go @@ -6,11 +6,12 @@ import ( "github.com/google/go-cmp/cmp/cmpopts" "github.com/crossplane-contrib/provider-argocd/apis/applicationsets/v1alpha1" + "github.com/crossplane-contrib/provider-argocd/pkg/clients/applicationsets" ) // IsApplicationSetUpToDate converts ApplicationParameters to its ArgoCD Counterpart and returns if they equal func IsApplicationSetUpToDate(cr *v1alpha1.ApplicationSetParameters, remote *argocdv1alpha1.ApplicationSet) bool { // nolint:gocyclo - converter := v1alpha1.ConverterImpl{} + converter := applicationsets.ConverterImpl{} cluster := converter.ToArgoApplicationSetSpec(cr) opts := []cmp.Option{ diff --git a/pkg/controller/applicationsets/controller.go b/pkg/controller/applicationsets/controller.go index 5cf5fb0..0d11549 100644 --- a/pkg/controller/applicationsets/controller.go +++ b/pkg/controller/applicationsets/controller.go @@ -140,7 +140,7 @@ func (e *external) Observe(ctx context.Context, mg resource.Managed) (managed.Ex } func generateApplicationObservation(appset *argov1alpha1.ApplicationSet) v1alpha1.ArgoApplicationSetStatus { - converter := &v1alpha1.ConverterImpl{} + converter := &appsets.ConverterImpl{} return *converter.FromArgoApplicationSetStatus(&appset.Status) } @@ -158,7 +158,7 @@ func (e *external) Create(ctx context.Context, mg resource.Managed) (managed.Ext } func (e *external) generateCreateApplicationSetRequest(cr *v1alpha1.ApplicationSet) *applicationset.ApplicationSetCreateRequest { - converter := &v1alpha1.ConverterImpl{} + converter := &appsets.ConverterImpl{} targetSpec := converter.ToArgoApplicationSetSpec(&cr.Spec.ForProvider) req := &applicationset.ApplicationSetCreateRequest{