diff --git a/internal/types/generated/crossplane-gen/akuity/v1alpha1/argocdinstance_types.go b/internal/types/generated/crossplane-gen/akuity/v1alpha1/argocdinstance_types.go new file mode 100644 index 0000000..a875643 --- /dev/null +++ b/internal/types/generated/crossplane-gen/akuity/v1alpha1/argocdinstance_types.go @@ -0,0 +1,112 @@ +// This is an auto-generated file. DO NOT EDIT +/* +Copyright 2023 Akuity, Inc. +*/ + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" +) + +//+kubebuilder:object:root=true +//+kubebuilder:subresource:status + +// ArgoCD is the Schema for the argocd API +type ArgoCD struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec ArgoCDSpec `json:"spec,omitempty"` +} + +//+kubebuilder:object:root=true + +// ArgoCDList contains a list of ArgoCD +type ArgoCDList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ArgoCD `json:"items"` +} + +func init() { + SchemeBuilder.Register(&ArgoCD{}, &ArgoCDList{}) +} + +type ArgoCDSpec struct { + Description string `json:"description"` + Version string `json:"version"` + Shard string `json:"shard"` + InstanceSpec InstanceSpec `json:"instanceSpec,omitempty"` +} + +type ArgoCDExtensionInstallEntry struct { + Id string `json:"id,omitempty"` + Version string `json:"version,omitempty"` +} + +type ClusterCustomization struct { + AutoUpgradeDisabled bool `json:"autoUpgradeDisabled,omitempty"` + Kustomization runtime.RawExtension `json:"kustomization,omitempty"` + AppReplication bool `json:"appReplication,omitempty"` + RedisTunneling bool `json:"redisTunneling,omitempty"` +} + +type AppsetPolicy struct { + Policy string `json:"policy,omitempty"` + OverridePolicy bool `json:"overridePolicy,omitempty"` +} + +type AgentPermissionsRule struct { + ApiGroups []string `json:"apiGroups,omitempty"` + Resources []string `json:"resources,omitempty"` + Verbs []string `json:"verbs,omitempty"` +} + +type InstanceSpec struct { + IpAllowList []*IPAllowListEntry `json:"ipAllowList,omitempty"` + Subdomain string `json:"subdomain,omitempty"` + DeclarativeManagementEnabled bool `json:"declarativeManagementEnabled,omitempty"` + Extensions []*ArgoCDExtensionInstallEntry `json:"extensions,omitempty"` + ClusterCustomizationDefaults *ClusterCustomization `json:"clusterCustomizationDefaults,omitempty"` + ImageUpdaterEnabled bool `json:"imageUpdaterEnabled,omitempty"` + BackendIpAllowListEnabled bool `json:"backendIpAllowListEnabled,omitempty"` + RepoServerDelegate *RepoServerDelegate `json:"repoServerDelegate,omitempty"` + AuditExtensionEnabled bool `json:"auditExtensionEnabled,omitempty"` + SyncHistoryExtensionEnabled bool `json:"syncHistoryExtensionEnabled,omitempty"` + ImageUpdaterDelegate *ImageUpdaterDelegate `json:"imageUpdaterDelegate,omitempty"` + AppSetDelegate *AppSetDelegate `json:"appSetDelegate,omitempty"` + AssistantExtensionEnabled bool `json:"assistantExtensionEnabled,omitempty"` + AppsetPolicy *AppsetPolicy `json:"appsetPolicy,omitempty"` + HostAliases []*HostAliases `json:"hostAliases,omitempty"` + AgentPermissionsRules []*AgentPermissionsRule `json:"agentPermissionsRules,omitempty"` +} + +type ManagedCluster struct { + ClusterName string `json:"clusterName,omitempty"` +} + +type RepoServerDelegate struct { + ControlPlane bool `json:"controlPlane,omitempty"` + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` +} + +type ImageUpdaterDelegate struct { + ControlPlane bool `json:"controlPlane,omitempty"` + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` +} + +type AppSetDelegate struct { + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` +} + +type IPAllowListEntry struct { + Ip string `json:"ip,omitempty"` + Description string `json:"description,omitempty"` +} + +type HostAliases struct { + Ip string `json:"ip,omitempty"` + Hostnames []string `json:"hostnames,omitempty"` +} diff --git a/internal/types/generated/crossplane-gen/akuity/v1alpha1/cluster_types.go b/internal/types/generated/crossplane-gen/akuity/v1alpha1/cluster_types.go new file mode 100644 index 0000000..cd95838 --- /dev/null +++ b/internal/types/generated/crossplane-gen/akuity/v1alpha1/cluster_types.go @@ -0,0 +1,62 @@ +// This is an auto-generated file. DO NOT EDIT +/* +Copyright 2023 Akuity, Inc. +*/ + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" +) + +//+kubebuilder:object:root=true +//+kubebuilder:subresource:status + +// Cluster is the Schema for the cluster API +type Cluster struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec ClusterSpec `json:"spec,omitempty"` +} + +type ClusterSize string + +type DirectClusterType string + +//+kubebuilder:object:root=true + +// ClusterList contains a list of Cluster +type ClusterList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []Cluster `json:"items"` +} + +func init() { + SchemeBuilder.Register(&Cluster{}, &ClusterList{}) +} + +type ClusterSpec struct { + Description string `json:"description,omitempty"` + NamespaceScoped bool `json:"namespaceScoped,omitempty"` + Data ClusterData `json:"data,omitempty"` +} + +type DirectClusterSpec struct { + ClusterType DirectClusterType `json:"clusterType,omitempty"` + KargoInstanceId *string `json:"kargoInstanceId,omitempty"` + Server *string `json:"server,omitempty"` + Token *string `json:"token,omitempty"` +} + +type ClusterData struct { + Size ClusterSize `json:"size,omitempty"` + AutoUpgradeDisabled *bool `json:"autoUpgradeDisabled,omitempty"` + Kustomization runtime.RawExtension `json:"kustomization,omitempty"` + AppReplication *bool `json:"appReplication,omitempty"` + TargetVersion string `json:"targetVersion,omitempty"` + RedisTunneling *bool `json:"redisTunneling,omitempty"` + DirectClusterSpec *DirectClusterSpec `json:"directClusterSpec,omitempty"` +} diff --git a/internal/types/generated/crossplane-gen/akuity/v1alpha1/groupversion_info.go b/internal/types/generated/crossplane-gen/akuity/v1alpha1/groupversion_info.go new file mode 100644 index 0000000..cf431cc --- /dev/null +++ b/internal/types/generated/crossplane-gen/akuity/v1alpha1/groupversion_info.go @@ -0,0 +1,24 @@ +/* +Copyright 2023 Akuity, Inc. +*/ + +// Package v1alpha1 contains API Schema definitions for the argocd.akuity.io v1alpha1 API group +// +kubebuilder:object:generate=true +// +groupName=argocd.akuity.io +package v1alpha1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +var ( + // GroupVersion is group version used to register these objects + GroupVersion = schema.GroupVersion{Group: "argocd.akuity.io", Version: "v1alpha1"} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + + // AddToScheme adds the types in this group-version to the given scheme. + AddToScheme = SchemeBuilder.AddToScheme +) diff --git a/internal/types/generated/crossplane-gen/akuity/v1alpha1/zz_generated.deepcopy.go b/internal/types/generated/crossplane-gen/akuity/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000..7590022 --- /dev/null +++ b/internal/types/generated/crossplane-gen/akuity/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,494 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AgentPermissionsRule) DeepCopyInto(out *AgentPermissionsRule) { + *out = *in + if in.ApiGroups != nil { + in, out := &in.ApiGroups, &out.ApiGroups + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentPermissionsRule. +func (in *AgentPermissionsRule) DeepCopy() *AgentPermissionsRule { + if in == nil { + return nil + } + out := new(AgentPermissionsRule) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppSetDelegate) DeepCopyInto(out *AppSetDelegate) { + *out = *in + if in.ManagedCluster != nil { + in, out := &in.ManagedCluster, &out.ManagedCluster + *out = new(ManagedCluster) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSetDelegate. +func (in *AppSetDelegate) DeepCopy() *AppSetDelegate { + if in == nil { + return nil + } + out := new(AppSetDelegate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppsetPolicy) DeepCopyInto(out *AppsetPolicy) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppsetPolicy. +func (in *AppsetPolicy) DeepCopy() *AppsetPolicy { + if in == nil { + return nil + } + out := new(AppsetPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCD) DeepCopyInto(out *ArgoCD) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCD. +func (in *ArgoCD) DeepCopy() *ArgoCD { + if in == nil { + return nil + } + out := new(ArgoCD) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ArgoCD) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCDExtensionInstallEntry) DeepCopyInto(out *ArgoCDExtensionInstallEntry) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDExtensionInstallEntry. +func (in *ArgoCDExtensionInstallEntry) DeepCopy() *ArgoCDExtensionInstallEntry { + if in == nil { + return nil + } + out := new(ArgoCDExtensionInstallEntry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCDList) DeepCopyInto(out *ArgoCDList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ArgoCD, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDList. +func (in *ArgoCDList) DeepCopy() *ArgoCDList { + if in == nil { + return nil + } + out := new(ArgoCDList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ArgoCDList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCDSpec) DeepCopyInto(out *ArgoCDSpec) { + *out = *in + in.InstanceSpec.DeepCopyInto(&out.InstanceSpec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDSpec. +func (in *ArgoCDSpec) DeepCopy() *ArgoCDSpec { + if in == nil { + return nil + } + out := new(ArgoCDSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Cluster) DeepCopyInto(out *Cluster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. +func (in *Cluster) DeepCopy() *Cluster { + if in == nil { + return nil + } + out := new(Cluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Cluster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterCustomization) DeepCopyInto(out *ClusterCustomization) { + *out = *in + in.Kustomization.DeepCopyInto(&out.Kustomization) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCustomization. +func (in *ClusterCustomization) DeepCopy() *ClusterCustomization { + if in == nil { + return nil + } + out := new(ClusterCustomization) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterData) DeepCopyInto(out *ClusterData) { + *out = *in + if in.AutoUpgradeDisabled != nil { + in, out := &in.AutoUpgradeDisabled, &out.AutoUpgradeDisabled + *out = new(bool) + **out = **in + } + in.Kustomization.DeepCopyInto(&out.Kustomization) + if in.AppReplication != nil { + in, out := &in.AppReplication, &out.AppReplication + *out = new(bool) + **out = **in + } + if in.RedisTunneling != nil { + in, out := &in.RedisTunneling, &out.RedisTunneling + *out = new(bool) + **out = **in + } + if in.DirectClusterSpec != nil { + in, out := &in.DirectClusterSpec, &out.DirectClusterSpec + *out = new(DirectClusterSpec) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterData. +func (in *ClusterData) DeepCopy() *ClusterData { + if in == nil { + return nil + } + out := new(ClusterData) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterList) DeepCopyInto(out *ClusterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Cluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. +func (in *ClusterList) DeepCopy() *ClusterList { + if in == nil { + return nil + } + out := new(ClusterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { + *out = *in + in.Data.DeepCopyInto(&out.Data) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. +func (in *ClusterSpec) DeepCopy() *ClusterSpec { + if in == nil { + return nil + } + out := new(ClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DirectClusterSpec) DeepCopyInto(out *DirectClusterSpec) { + *out = *in + if in.KargoInstanceId != nil { + in, out := &in.KargoInstanceId, &out.KargoInstanceId + *out = new(string) + **out = **in + } + if in.Server != nil { + in, out := &in.Server, &out.Server + *out = new(string) + **out = **in + } + if in.Token != nil { + in, out := &in.Token, &out.Token + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterSpec. +func (in *DirectClusterSpec) DeepCopy() *DirectClusterSpec { + if in == nil { + return nil + } + out := new(DirectClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HostAliases) DeepCopyInto(out *HostAliases) { + *out = *in + if in.Hostnames != nil { + in, out := &in.Hostnames, &out.Hostnames + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostAliases. +func (in *HostAliases) DeepCopy() *HostAliases { + if in == nil { + return nil + } + out := new(HostAliases) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPAllowListEntry) DeepCopyInto(out *IPAllowListEntry) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAllowListEntry. +func (in *IPAllowListEntry) DeepCopy() *IPAllowListEntry { + if in == nil { + return nil + } + out := new(IPAllowListEntry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImageUpdaterDelegate) DeepCopyInto(out *ImageUpdaterDelegate) { + *out = *in + if in.ManagedCluster != nil { + in, out := &in.ManagedCluster, &out.ManagedCluster + *out = new(ManagedCluster) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageUpdaterDelegate. +func (in *ImageUpdaterDelegate) DeepCopy() *ImageUpdaterDelegate { + if in == nil { + return nil + } + out := new(ImageUpdaterDelegate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec) { + *out = *in + if in.IpAllowList != nil { + in, out := &in.IpAllowList, &out.IpAllowList + *out = make([]*IPAllowListEntry, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(IPAllowListEntry) + **out = **in + } + } + } + if in.Extensions != nil { + in, out := &in.Extensions, &out.Extensions + *out = make([]*ArgoCDExtensionInstallEntry, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(ArgoCDExtensionInstallEntry) + **out = **in + } + } + } + if in.ClusterCustomizationDefaults != nil { + in, out := &in.ClusterCustomizationDefaults, &out.ClusterCustomizationDefaults + *out = new(ClusterCustomization) + (*in).DeepCopyInto(*out) + } + if in.RepoServerDelegate != nil { + in, out := &in.RepoServerDelegate, &out.RepoServerDelegate + *out = new(RepoServerDelegate) + (*in).DeepCopyInto(*out) + } + if in.ImageUpdaterDelegate != nil { + in, out := &in.ImageUpdaterDelegate, &out.ImageUpdaterDelegate + *out = new(ImageUpdaterDelegate) + (*in).DeepCopyInto(*out) + } + if in.AppSetDelegate != nil { + in, out := &in.AppSetDelegate, &out.AppSetDelegate + *out = new(AppSetDelegate) + (*in).DeepCopyInto(*out) + } + if in.AppsetPolicy != nil { + in, out := &in.AppsetPolicy, &out.AppsetPolicy + *out = new(AppsetPolicy) + **out = **in + } + if in.HostAliases != nil { + in, out := &in.HostAliases, &out.HostAliases + *out = make([]*HostAliases, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(HostAliases) + (*in).DeepCopyInto(*out) + } + } + } + if in.AgentPermissionsRules != nil { + in, out := &in.AgentPermissionsRules, &out.AgentPermissionsRules + *out = make([]*AgentPermissionsRule, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(AgentPermissionsRule) + (*in).DeepCopyInto(*out) + } + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpec. +func (in *InstanceSpec) DeepCopy() *InstanceSpec { + if in == nil { + return nil + } + out := new(InstanceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagedCluster) DeepCopyInto(out *ManagedCluster) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedCluster. +func (in *ManagedCluster) DeepCopy() *ManagedCluster { + if in == nil { + return nil + } + out := new(ManagedCluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepoServerDelegate) DeepCopyInto(out *RepoServerDelegate) { + *out = *in + if in.ManagedCluster != nil { + in, out := &in.ManagedCluster, &out.ManagedCluster + *out = new(ManagedCluster) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoServerDelegate. +func (in *RepoServerDelegate) DeepCopy() *RepoServerDelegate { + if in == nil { + return nil + } + out := new(RepoServerDelegate) + in.DeepCopyInto(out) + return out +} diff --git a/internal/types/generated/crossplane-gen/argocd/v1alpha1/configmanagementplugin_types.go b/internal/types/generated/crossplane-gen/argocd/v1alpha1/configmanagementplugin_types.go new file mode 100644 index 0000000..4460cf2 --- /dev/null +++ b/internal/types/generated/crossplane-gen/argocd/v1alpha1/configmanagementplugin_types.go @@ -0,0 +1,86 @@ +// This is an auto-generated file. DO NOT EDIT +/* +Copyright 2023 Akuity, Inc. +*/ + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + AnnotationCMPEnabled = "akuity.io/enabled" + AnnotationCMPImage = "akuity.io/image" +) + +//+kubebuilder:object:root=true +//+kubebuilder:subresource:status + +// ConfigManagementPlugin is the Schema for the ConfigManagementPlugin API +type ConfigManagementPlugin struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PluginSpec `json:"spec,omitempty"` +} + +//+kubebuilder:object:root=true + +// ConfigManagementPluginList contains a list of ConfigManagementPlugin +type ConfigManagementPluginList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ConfigManagementPlugin `json:"items"` +} + +func init() { + SchemeBuilder.Register(&ConfigManagementPlugin{}, &ConfigManagementPluginList{}) +} + +type PluginSpec struct { + Version string `json:"version,omitempty"` + Init *Command `json:"init,omitempty"` + Generate *Command `json:"generate,omitempty"` + Discover *Discover `json:"discover,omitempty"` + Parameters *Parameters `json:"parameters,omitempty"` + PreserveFileMode bool `json:"preserveFileMode,omitempty"` +} + +type Command struct { + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` +} + +type Discover struct { + Find *Find `json:"find,omitempty"` + FileName string `json:"fileName,omitempty"` +} + +type Find struct { + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + Glob string `json:"glob,omitempty"` +} + +type Parameters struct { + Static []*ParameterAnnouncement `json:"static,omitempty"` + Dynamic *Dynamic `json:"dynamic,omitempty"` +} + +type Dynamic struct { + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` +} + +type ParameterAnnouncement struct { + Name string `json:"name,omitempty"` + Title string `json:"title,omitempty"` + Tooltip string `json:"tooltip,omitempty"` + Required bool `json:"required,omitempty"` + ItemType string `json:"itemType,omitempty"` + CollectionType string `json:"collectionType,omitempty"` + String_ string `json:"string,omitempty"` + Array []string `json:"array,omitempty"` + Map map[string]string `json:"map,omitempty"` +} diff --git a/internal/types/generated/crossplane-gen/argocd/v1alpha1/groupversion_info.go b/internal/types/generated/crossplane-gen/argocd/v1alpha1/groupversion_info.go new file mode 100644 index 0000000..ec26dab --- /dev/null +++ b/internal/types/generated/crossplane-gen/argocd/v1alpha1/groupversion_info.go @@ -0,0 +1,24 @@ +/* +Copyright 2023 Akuity, Inc. +*/ + +// Package v1alpha1 contains API Schema definitions for the argocdproj.io v1alpha1 API group +// +kubebuilder:object:generate=true +// +groupName=argoproj.io +package v1alpha1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +var ( + // GroupVersion is group version used to register these objects + GroupVersion = schema.GroupVersion{Group: "argoproj.io", Version: "v1alpha1"} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + + // AddToScheme adds the types in this group-version to the given scheme. + AddToScheme = SchemeBuilder.AddToScheme +) diff --git a/internal/types/generated/crossplane-gen/argocd/v1alpha1/zz_generated.deepcopy.go b/internal/types/generated/crossplane-gen/argocd/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000..632857a --- /dev/null +++ b/internal/types/generated/crossplane-gen/argocd/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,256 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Command) DeepCopyInto(out *Command) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Command. +func (in *Command) DeepCopy() *Command { + if in == nil { + return nil + } + out := new(Command) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConfigManagementPlugin) DeepCopyInto(out *ConfigManagementPlugin) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigManagementPlugin. +func (in *ConfigManagementPlugin) DeepCopy() *ConfigManagementPlugin { + if in == nil { + return nil + } + out := new(ConfigManagementPlugin) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ConfigManagementPlugin) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConfigManagementPluginList) DeepCopyInto(out *ConfigManagementPluginList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigManagementPlugin, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigManagementPluginList. +func (in *ConfigManagementPluginList) DeepCopy() *ConfigManagementPluginList { + if in == nil { + return nil + } + out := new(ConfigManagementPluginList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ConfigManagementPluginList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Discover) DeepCopyInto(out *Discover) { + *out = *in + if in.Find != nil { + in, out := &in.Find, &out.Find + *out = new(Find) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Discover. +func (in *Discover) DeepCopy() *Discover { + if in == nil { + return nil + } + out := new(Discover) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Dynamic) DeepCopyInto(out *Dynamic) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dynamic. +func (in *Dynamic) DeepCopy() *Dynamic { + if in == nil { + return nil + } + out := new(Dynamic) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Find) DeepCopyInto(out *Find) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Find. +func (in *Find) DeepCopy() *Find { + if in == nil { + return nil + } + out := new(Find) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ParameterAnnouncement) DeepCopyInto(out *ParameterAnnouncement) { + *out = *in + if in.Array != nil { + in, out := &in.Array, &out.Array + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Map != nil { + in, out := &in.Map, &out.Map + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterAnnouncement. +func (in *ParameterAnnouncement) DeepCopy() *ParameterAnnouncement { + if in == nil { + return nil + } + out := new(ParameterAnnouncement) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Parameters) DeepCopyInto(out *Parameters) { + *out = *in + if in.Static != nil { + in, out := &in.Static, &out.Static + *out = make([]*ParameterAnnouncement, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(ParameterAnnouncement) + (*in).DeepCopyInto(*out) + } + } + } + if in.Dynamic != nil { + in, out := &in.Dynamic, &out.Dynamic + *out = new(Dynamic) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameters. +func (in *Parameters) DeepCopy() *Parameters { + if in == nil { + return nil + } + out := new(Parameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PluginSpec) DeepCopyInto(out *PluginSpec) { + *out = *in + if in.Init != nil { + in, out := &in.Init, &out.Init + *out = new(Command) + (*in).DeepCopyInto(*out) + } + if in.Generate != nil { + in, out := &in.Generate, &out.Generate + *out = new(Command) + (*in).DeepCopyInto(*out) + } + if in.Discover != nil { + in, out := &in.Discover, &out.Discover + *out = new(Discover) + (*in).DeepCopyInto(*out) + } + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = new(Parameters) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginSpec. +func (in *PluginSpec) DeepCopy() *PluginSpec { + if in == nil { + return nil + } + out := new(PluginSpec) + in.DeepCopyInto(out) + return out +} diff --git a/internal/types/generated/crossplane-gen/crossplane/v1alpha1/argocdinstance_types.go b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/argocdinstance_types.go new file mode 100644 index 0000000..1cf5958 --- /dev/null +++ b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/argocdinstance_types.go @@ -0,0 +1,105 @@ +// This is an auto-generated file. DO NOT EDIT +/* +Copyright 2023 Akuity, Inc. +*/ + +package v1alpha1 + +// +kubebuilder:object:generate=true +type ArgoCD struct { + Spec ArgoCDSpec `json:"spec,omitempty"` +} + +// +kubebuilder:object:generate=true +type ArgoCDList struct { + Items []ArgoCD `json:"items"` +} + +// +kubebuilder:object:generate=true +type ArgoCDSpec struct { + Description string `json:"description,omitempty"` + Version string `json:"version"` + Shard string `json:"shard"` + InstanceSpec InstanceSpec `json:"instanceSpec,omitempty"` +} + +// +kubebuilder:object:generate=true +type ArgoCDExtensionInstallEntry struct { + Id string `json:"id,omitempty"` + Version string `json:"version,omitempty"` +} + +// +kubebuilder:object:generate=true +type ClusterCustomization struct { + AutoUpgradeDisabled bool `json:"autoUpgradeDisabled,omitempty"` + Kustomization string `json:"kustomization,omitempty"` + AppReplication bool `json:"appReplication,omitempty"` + RedisTunneling bool `json:"redisTunneling,omitempty"` +} + +// +kubebuilder:object:generate=true +type AppsetPolicy struct { + Policy string `json:"policy,omitempty"` + OverridePolicy bool `json:"overridePolicy,omitempty"` +} + +// +kubebuilder:object:generate=true +type AgentPermissionsRule struct { + ApiGroups []string `json:"apiGroups,omitempty"` + Resources []string `json:"resources,omitempty"` + Verbs []string `json:"verbs,omitempty"` +} + +// +kubebuilder:object:generate=true +type InstanceSpec struct { + IpAllowList []*IPAllowListEntry `json:"ipAllowList,omitempty"` + Subdomain string `json:"subdomain,omitempty"` + DeclarativeManagementEnabled bool `json:"declarativeManagementEnabled,omitempty"` + Extensions []*ArgoCDExtensionInstallEntry `json:"extensions,omitempty"` + ClusterCustomizationDefaults *ClusterCustomization `json:"clusterCustomizationDefaults,omitempty"` + ImageUpdaterEnabled bool `json:"imageUpdaterEnabled,omitempty"` + BackendIpAllowListEnabled bool `json:"backendIpAllowListEnabled,omitempty"` + RepoServerDelegate *RepoServerDelegate `json:"repoServerDelegate,omitempty"` + AuditExtensionEnabled bool `json:"auditExtensionEnabled,omitempty"` + SyncHistoryExtensionEnabled bool `json:"syncHistoryExtensionEnabled,omitempty"` + ImageUpdaterDelegate *ImageUpdaterDelegate `json:"imageUpdaterDelegate,omitempty"` + AppSetDelegate *AppSetDelegate `json:"appSetDelegate,omitempty"` + AssistantExtensionEnabled bool `json:"assistantExtensionEnabled,omitempty"` + AppsetPolicy *AppsetPolicy `json:"appsetPolicy,omitempty"` + HostAliases []*HostAliases `json:"hostAliases,omitempty"` + AgentPermissionsRules []*AgentPermissionsRule `json:"agentPermissionsRules,omitempty"` +} + +// +kubebuilder:object:generate=true +type ManagedCluster struct { + ClusterName string `json:"clusterName,omitempty"` +} + +// +kubebuilder:object:generate=true +type RepoServerDelegate struct { + ControlPlane bool `json:"controlPlane,omitempty"` + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` +} + +// +kubebuilder:object:generate=true +type ImageUpdaterDelegate struct { + ControlPlane bool `json:"controlPlane,omitempty"` + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` +} + +// +kubebuilder:object:generate=true +type AppSetDelegate struct { + ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` +} + +// +kubebuilder:object:generate=true +type IPAllowListEntry struct { + Ip string `json:"ip,omitempty"` + Description string `json:"description,omitempty"` +} + +// +kubebuilder:object:generate=true +type HostAliases struct { + Ip string `json:"ip,omitempty"` + Hostnames []string `json:"hostnames,omitempty"` +} diff --git a/internal/types/generated/crossplane-gen/crossplane/v1alpha1/cluster_types.go b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/cluster_types.go new file mode 100644 index 0000000..376ba76 --- /dev/null +++ b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/cluster_types.go @@ -0,0 +1,46 @@ +// This is an auto-generated file. DO NOT EDIT +/* +Copyright 2023 Akuity, Inc. +*/ + +package v1alpha1 + +type ClusterSize string + +type DirectClusterType string + +// +kubebuilder:object:generate=true +type Cluster struct { + Spec ClusterSpec `json:"spec,omitempty"` +} + +// +kubebuilder:object:generate=true +type ClusterList struct { + Items []Cluster `json:"items"` +} + +// +kubebuilder:object:generate=true +type ClusterSpec struct { + Description string `json:"description,omitempty"` + NamespaceScoped bool `json:"namespaceScoped,omitempty"` + Data ClusterData `json:"data,omitempty"` +} + +// +kubebuilder:object:generate=true +type DirectClusterSpec struct { + ClusterType DirectClusterType `json:"clusterType,omitempty"` + KargoInstanceId *string `json:"kargoInstanceId,omitempty"` + Server *string `json:"server,omitempty"` + Token *string `json:"token,omitempty"` +} + +// +kubebuilder:object:generate=true +type ClusterData struct { + Size ClusterSize `json:"size,omitempty"` + AutoUpgradeDisabled bool `json:"autoUpgradeDisabled,omitempty"` + Kustomization string `json:"kustomization,omitempty"` + AppReplication bool `json:"appReplication,omitempty"` + TargetVersion string `json:"targetVersion,omitempty"` + RedisTunneling bool `json:"redisTunneling,omitempty"` + DirectClusterSpec *DirectClusterSpec `json:"directClusterSpec,omitempty"` +} diff --git a/internal/types/generated/crossplane-gen/crossplane/v1alpha1/configmanagementplugin_types.go b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/configmanagementplugin_types.go new file mode 100644 index 0000000..62ab046 --- /dev/null +++ b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/configmanagementplugin_types.go @@ -0,0 +1,72 @@ +// This is an auto-generated file. DO NOT EDIT +/* +Copyright 2023 Akuity, Inc. +*/ + +package v1alpha1 + +// +kubebuilder:object:generate=true +type ConfigManagementPlugin struct { + Enabled bool `json:"enabled"` + Image string `json:"image"` + Spec PluginSpec `json:"spec,omitempty"` +} + +// +kubebuilder:object:generate=true +type ConfigManagementPluginList struct { + Items []ConfigManagementPlugin `json:"items"` +} + +// +kubebuilder:object:generate=true +type PluginSpec struct { + Version string `json:"version,omitempty"` + Init *Command `json:"init,omitempty"` + Generate *Command `json:"generate,omitempty"` + Discover *Discover `json:"discover,omitempty"` + Parameters *Parameters `json:"parameters,omitempty"` + PreserveFileMode bool `json:"preserveFileMode,omitempty"` +} + +// +kubebuilder:object:generate=true +type Command struct { + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` +} + +// +kubebuilder:object:generate=true +type Discover struct { + Find *Find `json:"find,omitempty"` + FileName string `json:"fileName,omitempty"` +} + +// +kubebuilder:object:generate=true +type Find struct { + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + Glob string `json:"glob,omitempty"` +} + +// +kubebuilder:object:generate=true +type Parameters struct { + Static []*ParameterAnnouncement `json:"static,omitempty"` + Dynamic *Dynamic `json:"dynamic,omitempty"` +} + +// +kubebuilder:object:generate=true +type Dynamic struct { + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` +} + +// +kubebuilder:object:generate=true +type ParameterAnnouncement struct { + Name string `json:"name,omitempty"` + Title string `json:"title,omitempty"` + Tooltip string `json:"tooltip,omitempty"` + Required bool `json:"required,omitempty"` + ItemType string `json:"itemType,omitempty"` + CollectionType string `json:"collectionType,omitempty"` + String_ string `json:"string,omitempty"` + Array []string `json:"array,omitempty"` + Map map[string]string `json:"map,omitempty"` +} diff --git a/internal/types/generated/crossplane-gen/crossplane/v1alpha1/zz_generated.deepcopy.go b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000..08230a9 --- /dev/null +++ b/internal/types/generated/crossplane-gen/crossplane/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,661 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import () + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AgentPermissionsRule) DeepCopyInto(out *AgentPermissionsRule) { + *out = *in + if in.ApiGroups != nil { + in, out := &in.ApiGroups, &out.ApiGroups + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentPermissionsRule. +func (in *AgentPermissionsRule) DeepCopy() *AgentPermissionsRule { + if in == nil { + return nil + } + out := new(AgentPermissionsRule) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppSetDelegate) DeepCopyInto(out *AppSetDelegate) { + *out = *in + if in.ManagedCluster != nil { + in, out := &in.ManagedCluster, &out.ManagedCluster + *out = new(ManagedCluster) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSetDelegate. +func (in *AppSetDelegate) DeepCopy() *AppSetDelegate { + if in == nil { + return nil + } + out := new(AppSetDelegate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppsetPolicy) DeepCopyInto(out *AppsetPolicy) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppsetPolicy. +func (in *AppsetPolicy) DeepCopy() *AppsetPolicy { + if in == nil { + return nil + } + out := new(AppsetPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCD) DeepCopyInto(out *ArgoCD) { + *out = *in + in.Spec.DeepCopyInto(&out.Spec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCD. +func (in *ArgoCD) DeepCopy() *ArgoCD { + if in == nil { + return nil + } + out := new(ArgoCD) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCDExtensionInstallEntry) DeepCopyInto(out *ArgoCDExtensionInstallEntry) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDExtensionInstallEntry. +func (in *ArgoCDExtensionInstallEntry) DeepCopy() *ArgoCDExtensionInstallEntry { + if in == nil { + return nil + } + out := new(ArgoCDExtensionInstallEntry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCDList) DeepCopyInto(out *ArgoCDList) { + *out = *in + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ArgoCD, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDList. +func (in *ArgoCDList) DeepCopy() *ArgoCDList { + if in == nil { + return nil + } + out := new(ArgoCDList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ArgoCDSpec) DeepCopyInto(out *ArgoCDSpec) { + *out = *in + in.InstanceSpec.DeepCopyInto(&out.InstanceSpec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoCDSpec. +func (in *ArgoCDSpec) DeepCopy() *ArgoCDSpec { + if in == nil { + return nil + } + out := new(ArgoCDSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Cluster) DeepCopyInto(out *Cluster) { + *out = *in + in.Spec.DeepCopyInto(&out.Spec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. +func (in *Cluster) DeepCopy() *Cluster { + if in == nil { + return nil + } + out := new(Cluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterCustomization) DeepCopyInto(out *ClusterCustomization) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCustomization. +func (in *ClusterCustomization) DeepCopy() *ClusterCustomization { + if in == nil { + return nil + } + out := new(ClusterCustomization) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterData) DeepCopyInto(out *ClusterData) { + *out = *in + if in.DirectClusterSpec != nil { + in, out := &in.DirectClusterSpec, &out.DirectClusterSpec + *out = new(DirectClusterSpec) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterData. +func (in *ClusterData) DeepCopy() *ClusterData { + if in == nil { + return nil + } + out := new(ClusterData) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterList) DeepCopyInto(out *ClusterList) { + *out = *in + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Cluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. +func (in *ClusterList) DeepCopy() *ClusterList { + if in == nil { + return nil + } + out := new(ClusterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { + *out = *in + in.Data.DeepCopyInto(&out.Data) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. +func (in *ClusterSpec) DeepCopy() *ClusterSpec { + if in == nil { + return nil + } + out := new(ClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Command) DeepCopyInto(out *Command) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Command. +func (in *Command) DeepCopy() *Command { + if in == nil { + return nil + } + out := new(Command) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConfigManagementPlugin) DeepCopyInto(out *ConfigManagementPlugin) { + *out = *in + in.Spec.DeepCopyInto(&out.Spec) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigManagementPlugin. +func (in *ConfigManagementPlugin) DeepCopy() *ConfigManagementPlugin { + if in == nil { + return nil + } + out := new(ConfigManagementPlugin) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConfigManagementPluginList) DeepCopyInto(out *ConfigManagementPluginList) { + *out = *in + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ConfigManagementPlugin, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigManagementPluginList. +func (in *ConfigManagementPluginList) DeepCopy() *ConfigManagementPluginList { + if in == nil { + return nil + } + out := new(ConfigManagementPluginList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DirectClusterSpec) DeepCopyInto(out *DirectClusterSpec) { + *out = *in + if in.KargoInstanceId != nil { + in, out := &in.KargoInstanceId, &out.KargoInstanceId + *out = new(string) + **out = **in + } + if in.Server != nil { + in, out := &in.Server, &out.Server + *out = new(string) + **out = **in + } + if in.Token != nil { + in, out := &in.Token, &out.Token + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterSpec. +func (in *DirectClusterSpec) DeepCopy() *DirectClusterSpec { + if in == nil { + return nil + } + out := new(DirectClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Discover) DeepCopyInto(out *Discover) { + *out = *in + if in.Find != nil { + in, out := &in.Find, &out.Find + *out = new(Find) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Discover. +func (in *Discover) DeepCopy() *Discover { + if in == nil { + return nil + } + out := new(Discover) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Dynamic) DeepCopyInto(out *Dynamic) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dynamic. +func (in *Dynamic) DeepCopy() *Dynamic { + if in == nil { + return nil + } + out := new(Dynamic) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Find) DeepCopyInto(out *Find) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Find. +func (in *Find) DeepCopy() *Find { + if in == nil { + return nil + } + out := new(Find) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HostAliases) DeepCopyInto(out *HostAliases) { + *out = *in + if in.Hostnames != nil { + in, out := &in.Hostnames, &out.Hostnames + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostAliases. +func (in *HostAliases) DeepCopy() *HostAliases { + if in == nil { + return nil + } + out := new(HostAliases) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPAllowListEntry) DeepCopyInto(out *IPAllowListEntry) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAllowListEntry. +func (in *IPAllowListEntry) DeepCopy() *IPAllowListEntry { + if in == nil { + return nil + } + out := new(IPAllowListEntry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImageUpdaterDelegate) DeepCopyInto(out *ImageUpdaterDelegate) { + *out = *in + if in.ManagedCluster != nil { + in, out := &in.ManagedCluster, &out.ManagedCluster + *out = new(ManagedCluster) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageUpdaterDelegate. +func (in *ImageUpdaterDelegate) DeepCopy() *ImageUpdaterDelegate { + if in == nil { + return nil + } + out := new(ImageUpdaterDelegate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec) { + *out = *in + if in.IpAllowList != nil { + in, out := &in.IpAllowList, &out.IpAllowList + *out = make([]*IPAllowListEntry, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(IPAllowListEntry) + **out = **in + } + } + } + if in.Extensions != nil { + in, out := &in.Extensions, &out.Extensions + *out = make([]*ArgoCDExtensionInstallEntry, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(ArgoCDExtensionInstallEntry) + **out = **in + } + } + } + if in.ClusterCustomizationDefaults != nil { + in, out := &in.ClusterCustomizationDefaults, &out.ClusterCustomizationDefaults + *out = new(ClusterCustomization) + **out = **in + } + if in.RepoServerDelegate != nil { + in, out := &in.RepoServerDelegate, &out.RepoServerDelegate + *out = new(RepoServerDelegate) + (*in).DeepCopyInto(*out) + } + if in.ImageUpdaterDelegate != nil { + in, out := &in.ImageUpdaterDelegate, &out.ImageUpdaterDelegate + *out = new(ImageUpdaterDelegate) + (*in).DeepCopyInto(*out) + } + if in.AppSetDelegate != nil { + in, out := &in.AppSetDelegate, &out.AppSetDelegate + *out = new(AppSetDelegate) + (*in).DeepCopyInto(*out) + } + if in.AppsetPolicy != nil { + in, out := &in.AppsetPolicy, &out.AppsetPolicy + *out = new(AppsetPolicy) + **out = **in + } + if in.HostAliases != nil { + in, out := &in.HostAliases, &out.HostAliases + *out = make([]*HostAliases, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(HostAliases) + (*in).DeepCopyInto(*out) + } + } + } + if in.AgentPermissionsRules != nil { + in, out := &in.AgentPermissionsRules, &out.AgentPermissionsRules + *out = make([]*AgentPermissionsRule, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(AgentPermissionsRule) + (*in).DeepCopyInto(*out) + } + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpec. +func (in *InstanceSpec) DeepCopy() *InstanceSpec { + if in == nil { + return nil + } + out := new(InstanceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagedCluster) DeepCopyInto(out *ManagedCluster) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedCluster. +func (in *ManagedCluster) DeepCopy() *ManagedCluster { + if in == nil { + return nil + } + out := new(ManagedCluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ParameterAnnouncement) DeepCopyInto(out *ParameterAnnouncement) { + *out = *in + if in.Array != nil { + in, out := &in.Array, &out.Array + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Map != nil { + in, out := &in.Map, &out.Map + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterAnnouncement. +func (in *ParameterAnnouncement) DeepCopy() *ParameterAnnouncement { + if in == nil { + return nil + } + out := new(ParameterAnnouncement) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Parameters) DeepCopyInto(out *Parameters) { + *out = *in + if in.Static != nil { + in, out := &in.Static, &out.Static + *out = make([]*ParameterAnnouncement, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(ParameterAnnouncement) + (*in).DeepCopyInto(*out) + } + } + } + if in.Dynamic != nil { + in, out := &in.Dynamic, &out.Dynamic + *out = new(Dynamic) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameters. +func (in *Parameters) DeepCopy() *Parameters { + if in == nil { + return nil + } + out := new(Parameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PluginSpec) DeepCopyInto(out *PluginSpec) { + *out = *in + if in.Init != nil { + in, out := &in.Init, &out.Init + *out = new(Command) + (*in).DeepCopyInto(*out) + } + if in.Generate != nil { + in, out := &in.Generate, &out.Generate + *out = new(Command) + (*in).DeepCopyInto(*out) + } + if in.Discover != nil { + in, out := &in.Discover, &out.Discover + *out = new(Discover) + (*in).DeepCopyInto(*out) + } + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = new(Parameters) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginSpec. +func (in *PluginSpec) DeepCopy() *PluginSpec { + if in == nil { + return nil + } + out := new(PluginSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepoServerDelegate) DeepCopyInto(out *RepoServerDelegate) { + *out = *in + if in.ManagedCluster != nil { + in, out := &in.ManagedCluster, &out.ManagedCluster + *out = new(ManagedCluster) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoServerDelegate. +func (in *RepoServerDelegate) DeepCopy() *RepoServerDelegate { + if in == nil { + return nil + } + out := new(RepoServerDelegate) + in.DeepCopyInto(out) + return out +}