From 26ac2fcc3ddf5242ff3b63f132074cf9388736d3 Mon Sep 17 00:00:00 2001 From: Xieql Date: Wed, 30 Aug 2023 17:50:57 +0800 Subject: [PATCH] fix Signed-off-by: Xieql --- .../en/references/backups_v1alpha1_types.html | 241 ++++-------------- .../crds/backup.kurator.dev_backups.yaml | 94 ++++--- .../crds/backup.kurator.dev_migrates.yaml | 69 ++--- .../crds/backup.kurator.dev_restores.yaml | 34 ++- .../backups/v1alpha1/zz_generated.deepcopy.go | 45 +--- 5 files changed, 155 insertions(+), 328 deletions(-) diff --git a/docs/content/en/references/backups_v1alpha1_types.html b/docs/content/en/references/backups_v1alpha1_types.html index 18daf7210..2c985fdf8 100644 --- a/docs/content/en/references/backups_v1alpha1_types.html +++ b/docs/content/en/references/backups_v1alpha1_types.html @@ -67,21 +67,6 @@

Backup - - - - @@ -271,7 +265,13 @@

BackupPolicy (Optional)

OrderedResources specifies the backup order of resources of specific Kind. The map key is the resource name and value is a list of object names separated by commas. -Each resource name has format “namespace/objectname”. For cluster resources, simply use “objectname”.

+Each resource name has format “namespace/objectname”. For cluster resources, simply use “objectname”. +For example, if you have a specific order for pods, such as “pod1, pod2, pod3” with all belonging to the “ns1” namespace, +and a specific order for persistentvolumes, such as “pv4, pv8”, you can use the orderedResources field in YAML format as shown below:

+
orderedResources:
+pods: "ns1/pod1, ns1/pod2, ns1/pod3"
+persistentvolumes: "pv4, pv8"
+

@@ -311,21 +311,6 @@

BackupSpec

- - - - @@ -431,115 +425,6 @@

BackupStatus

-storage
- - -BackupStorage - - -
-(Optional) -

Storage details where the backup data should be stored. -If not set, the backup will use the default Storage that is created during Velero installation.

-
schedule
string @@ -91,7 +76,16 @@

Backup (Optional)

Schedule defines when to run the Backup using a Cron expression. A cron expression is a format used to specify the execution time of recurring tasks, consisting of multiple fields representing different time units. -For example, “30 * * * ” represents execution at the 30th minute of every hour, “/15 * * * *” represents execution every 15 minutes, and “10 10,14 * * *” represents execution at 10:10 AM and 2:10 PM every day. +┌───────────── minute (0 - 59) +│ ┌───────────── hour (0 - 23) +│ │ ┌───────────── day of the month (1 - 31) +│ │ │ ┌───────────── month (1 - 12) +│ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday; +│ │ │ │ │ 7 is also Sunday on some systems) +│ │ │ │ │ +│ │ │ │ │

+
+

For example, “30 * * * *” represents execution at the 30th minute of every hour, and “10 10,14 * * *” represents execution at 10:10 AM and 2:10 PM every day. If not set, the backup will be executed only once.

-storage
- - -BackupStorage - - -
-(Optional) -

Storage details where the backup data should be stored. -If not set, the backup will use the default Storage that is created during Velero installation.

-
schedule
string @@ -335,7 +320,16 @@

BackupSpec (Optional)

Schedule defines when to run the Backup using a Cron expression. A cron expression is a format used to specify the execution time of recurring tasks, consisting of multiple fields representing different time units. -For example, “30 * * * ” represents execution at the 30th minute of every hour, “/15 * * * *” represents execution every 15 minutes, and “10 10,14 * * *” represents execution at 10:10 AM and 2:10 PM every day. +┌───────────── minute (0 - 59) +│ ┌───────────── hour (0 - 23) +│ │ ┌───────────── day of the month (1 - 31) +│ │ │ ┌───────────── month (1 - 12) +│ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday; +│ │ │ │ │ 7 is also Sunday on some systems) +│ │ │ │ │ +│ │ │ │ │

+
+

For example, “30 * * * *” represents execution at the 30th minute of every hour, and “10 10,14 * * *” represents execution at 10:10 AM and 2:10 PM every day. If not set, the backup will be executed only once.

-

BackupStorage -

-

-(Appears on: -BackupSpec, -MigrateSpec) -

-
-
- - - - - - - - - - - - - - - - - -
FieldDescription
-location
- - -BackupStorageLocation - - -
-

Location specifies the location where the backup data will be stored.

-
-credentials
- -string - -
-

Credentials to access the backup storage location.

-
-
-
-

BackupStorageLocation -

-

-(Appears on: -BackupStorage) -

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
FieldDescription
-bucket
- -string - -
-

Bucket specifies the storage bucket name.

-
-provider
- -string - -
-

Provider specifies the storage provider type (e.g., aws).

-
-s3Url
- -string - -
-

S3Url provides the endpoint URL for S3-compatible storage.

-
-region
- -string - -
-

Region specifies the region of the storage.

-
-
-

ClusterSelector

@@ -681,19 +566,6 @@

Migrate - - - - - - - - @@ -1066,7 +927,21 @@

ResourceFilter

+ + + + @@ -1079,8 +954,10 @@

ResourceFilter

@@ -1093,7 +970,8 @@

ResourceFilter

@@ -1106,7 +984,9 @@

ResourceFilter

@@ -1119,7 +999,8 @@

ResourceFilter

@@ -1153,18 +1034,6 @@

ResourceFilter LabelSelector as well as OrLabelSelectors cannot co-exist in backup request, only one of them can be used.

- - - -
-storage
- - -BackupStorage - - -
-

Storage details where the data should be stored.

-
sourceCluster
@@ -873,19 +745,6 @@

MigrateSpec

-storage
- - -BackupStorage - - -
-

Storage details where the data should be stored.

-
sourceCluster
@@ -1054,7 +913,9 @@

ResourceFilter

(Optional)

IncludedResources is a slice of resource names to include in the backup. -If empty, all resources are included.

+For example, we can populate this string array with “deployments” and “configmaps”, then we will select all resources of type deployments and configmaps, +If empty, all resources are included. +Cannot work with IncludedClusterScopedResources, ExcludedClusterScopedResources, IncludedNamespaceScopedResources and ExcludedNamespaceScopedResources.

(Optional) -

ExcludedResources is a slice of resource names that are not included in the backup.

+

ExcludedResources is a slice of resource names that are not included in the backup. +Cannot work with IncludedClusterScopedResources, ExcludedClusterScopedResources, IncludedNamespaceScopedResources and ExcludedNamespaceScopedResources.

+
+includeClusterResources
+ +bool + +
+(Optional) +

IncludeClusterResources specifies whether cluster-scoped resources should be included for consideration in the backup. +Cannot work with IncludedClusterScopedResources, ExcludedClusterScopedResources, IncludedNamespaceScopedResources and ExcludedNamespaceScopedResources.

(Optional)

IncludedClusterScopedResources is a slice of cluster-scoped resource type names to include in the backup. +For example, we can populate this string array with “storageclasses” and “clusterroles”, then we will select all resources of type storageclasses and clusterroles, If set to “*”, all cluster-scoped resource types are included. -The default value is empty, which means only related cluster-scoped resources are included.

+The default value is empty, which means only related cluster-scoped resources are included. +Cannot work with IncludedResources, ExcludedResources and IncludeClusterResources.

(Optional)

ExcludedClusterScopedResources is a slice of cluster-scoped resource type names to exclude from the backup. -If set to “*”, all cluster-scoped resource types are excluded. The default value is empty.

+If set to “*”, all cluster-scoped resource types are excluded. The default value is empty. +Cannot work with IncludedResources, ExcludedResources and IncludeClusterResources.

(Optional)

IncludedNamespaceScopedResources is a slice of namespace-scoped resource type names to include in the backup. -The default value is “*”.

+For example, we can populate this string array with “deployments” and “configmaps”, then we will select all resources of type deployments and configmaps, +The default value is “*”. +Cannot work with IncludedResources, ExcludedResources and IncludeClusterResources.

(Optional)

ExcludedNamespaceScopedResources is a slice of namespace-scoped resource type names to exclude from the backup. -If set to “*”, all namespace-scoped resource types are excluded. The default value is empty.

+If set to “*”, all namespace-scoped resource types are excluded. The default value is empty. +Cannot work with IncludedResources, ExcludedResources and IncludeClusterResources.

-includeClusterResources
- -bool - -
-(Optional) -

IncludeClusterResources specifies whether cluster-scoped resources should be included for consideration in the backup.

-
diff --git a/manifests/charts/fleet-manager/crds/backup.kurator.dev_backups.yaml b/manifests/charts/fleet-manager/crds/backup.kurator.dev_backups.yaml index f97fcb180..9e3214cad 100644 --- a/manifests/charts/fleet-manager/crds/backup.kurator.dev_backups.yaml +++ b/manifests/charts/fleet-manager/crds/backup.kurator.dev_backups.yaml @@ -151,11 +151,17 @@ spec: orderedResources: additionalProperties: type: string - description: OrderedResources specifies the backup order of resources + description: 'OrderedResources specifies the backup order of resources of specific Kind. The map key is the resource name and value is a list of object names separated by commas. Each resource name has format "namespace/objectname". For cluster resources, - simply use "objectname". + simply use "objectname". For example, if you have a specific + order for pods, such as "pod1, pod2, pod3" with all belonging + to the "ns1" namespace, and a specific order for persistentvolumes, + such as "pv4, pv8", you can use the orderedResources field in + YAML format as shown below: ```yaml orderedResources: pods: + "ns1/pod1, ns1/pod2, ns1/pod3" persistentvolumes: "pv4, pv8" + ```' nullable: true type: object resourceFilter: @@ -170,7 +176,8 @@ spec: description: ExcludedClusterScopedResources is a slice of cluster-scoped resource type names to exclude from the backup. If set to "*", all cluster-scoped resource types are excluded. - The default value is empty. + The default value is empty. Cannot work with IncludedResources, + ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -179,7 +186,8 @@ spec: description: ExcludedNamespaceScopedResources is a slice of namespace-scoped resource type names to exclude from the backup. If set to "*", all namespace-scoped resource types - are excluded. The default value is empty. + are excluded. The default value is empty. Cannot work with + IncludedResources, ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -193,7 +201,9 @@ spec: type: array excludedResources: description: ExcludedResources is a slice of resource names - that are not included in the backup. + that are not included in the backup. Cannot work with IncludedClusterScopedResources, + ExcludedClusterScopedResources, IncludedNamespaceScopedResources + and ExcludedNamespaceScopedResources. items: type: string nullable: true @@ -201,14 +211,20 @@ spec: includeClusterResources: description: IncludeClusterResources specifies whether cluster-scoped resources should be included for consideration in the backup. + Cannot work with IncludedClusterScopedResources, ExcludedClusterScopedResources, + IncludedNamespaceScopedResources and ExcludedNamespaceScopedResources. nullable: true type: boolean includedClusterScopedResources: description: IncludedClusterScopedResources is a slice of cluster-scoped resource type names to include in the backup. - If set to "*", all cluster-scoped resource types are included. - The default value is empty, which means only related cluster-scoped - resources are included. + For example, we can populate this string array with "storageclasses" + and "clusterroles", then we will select all resources of + type storageclasses and clusterroles, If set to "*", all + cluster-scoped resource types are included. The default + value is empty, which means only related cluster-scoped + resources are included. Cannot work with IncludedResources, + ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -216,7 +232,10 @@ spec: includedNamespaceScopedResources: description: IncludedNamespaceScopedResources is a slice of namespace-scoped resource type names to include in the backup. - The default value is "*". + For example, we can populate this string array with "deployments" + and "configmaps", then we will select all resources of type + deployments and configmaps, The default value is "*". Cannot + work with IncludedResources, ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -230,7 +249,12 @@ spec: type: array includedResources: description: IncludedResources is a slice of resource names - to include in the backup. If empty, all resources are included. + to include in the backup. For example, we can populate this + string array with "deployments" and "configmaps", then we + will select all resources of type deployments and configmaps, + If empty, all resources are included. Cannot work with IncludedClusterScopedResources, + ExcludedClusterScopedResources, IncludedNamespaceScopedResources + and ExcludedNamespaceScopedResources. items: type: string nullable: true @@ -349,48 +373,16 @@ spec: description: Schedule defines when to run the Backup using a Cron expression. A cron expression is a format used to specify the execution time of recurring tasks, consisting of multiple fields representing - different time units. For example, "30 * * * *" represents execution - at the 30th minute of every hour, "*/15 * * * *" represents execution - every 15 minutes, and "10 10,14 * * *" represents execution at 10:10 - AM and 2:10 PM every day. If not set, the backup will be executed - only once. + different time units. ┌───────────── minute (0 - 59) │ ┌───────────── + hour (0 - 23) │ │ ┌───────────── day of the month (1 - 31) │ │ │ + ┌───────────── month (1 - 12) │ │ │ │ ┌───────────── day of the + week (0 - 6) (Sunday to Saturday; │ │ │ │ │ 7 + is also Sunday on some systems) │ │ │ │ │ │ │ │ │ │ * * * * * For + example, "30 * * * *" represents execution at the 30th minute of + every hour, and "10 10,14 * * *" represents execution at 10:10 AM + and 2:10 PM every day. If not set, the backup will be executed only + once. type: string - storage: - description: Storage details where the backup data should be stored. - If not set, the backup will use the default Storage that is created - during Velero installation. - properties: - credentials: - description: Credentials to access the backup storage location. - type: string - location: - description: Location specifies the location where the backup - data will be stored. - properties: - bucket: - description: Bucket specifies the storage bucket name. - type: string - provider: - description: Provider specifies the storage provider type - (e.g., aws). - type: string - region: - description: Region specifies the region of the storage. - type: string - s3Url: - description: S3Url provides the endpoint URL for S3-compatible - storage. - type: string - required: - - bucket - - provider - - region - - s3Url - type: object - required: - - credentials - - location - type: object type: object status: properties: diff --git a/manifests/charts/fleet-manager/crds/backup.kurator.dev_migrates.yaml b/manifests/charts/fleet-manager/crds/backup.kurator.dev_migrates.yaml index a77bd19ad..9c1f64e8e 100644 --- a/manifests/charts/fleet-manager/crds/backup.kurator.dev_migrates.yaml +++ b/manifests/charts/fleet-manager/crds/backup.kurator.dev_migrates.yaml @@ -100,7 +100,8 @@ spec: description: ExcludedClusterScopedResources is a slice of cluster-scoped resource type names to exclude from the backup. If set to "*", all cluster-scoped resource types are excluded. - The default value is empty. + The default value is empty. Cannot work with IncludedResources, + ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -109,7 +110,8 @@ spec: description: ExcludedNamespaceScopedResources is a slice of namespace-scoped resource type names to exclude from the backup. If set to "*", all namespace-scoped resource types - are excluded. The default value is empty. + are excluded. The default value is empty. Cannot work with + IncludedResources, ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -123,7 +125,9 @@ spec: type: array excludedResources: description: ExcludedResources is a slice of resource names - that are not included in the backup. + that are not included in the backup. Cannot work with IncludedClusterScopedResources, + ExcludedClusterScopedResources, IncludedNamespaceScopedResources + and ExcludedNamespaceScopedResources. items: type: string nullable: true @@ -131,14 +135,20 @@ spec: includeClusterResources: description: IncludeClusterResources specifies whether cluster-scoped resources should be included for consideration in the backup. + Cannot work with IncludedClusterScopedResources, ExcludedClusterScopedResources, + IncludedNamespaceScopedResources and ExcludedNamespaceScopedResources. nullable: true type: boolean includedClusterScopedResources: description: IncludedClusterScopedResources is a slice of cluster-scoped resource type names to include in the backup. - If set to "*", all cluster-scoped resource types are included. - The default value is empty, which means only related cluster-scoped - resources are included. + For example, we can populate this string array with "storageclasses" + and "clusterroles", then we will select all resources of + type storageclasses and clusterroles, If set to "*", all + cluster-scoped resource types are included. The default + value is empty, which means only related cluster-scoped + resources are included. Cannot work with IncludedResources, + ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -146,7 +156,10 @@ spec: includedNamespaceScopedResources: description: IncludedNamespaceScopedResources is a slice of namespace-scoped resource type names to include in the backup. - The default value is "*". + For example, we can populate this string array with "deployments" + and "configmaps", then we will select all resources of type + deployments and configmaps, The default value is "*". Cannot + work with IncludedResources, ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -160,7 +173,12 @@ spec: type: array includedResources: description: IncludedResources is a slice of resource names - to include in the backup. If empty, all resources are included. + to include in the backup. For example, we can populate this + string array with "deployments" and "configmaps", then we + will select all resources of type deployments and configmaps, + If empty, all resources are included. Cannot work with IncludedClusterScopedResources, + ExcludedClusterScopedResources, IncludedNamespaceScopedResources + and ExcludedNamespaceScopedResources. items: type: string nullable: true @@ -364,40 +382,6 @@ spec: the field Clusters. type: string type: object - storage: - description: Storage details where the data should be stored. - properties: - credentials: - description: Credentials to access the backup storage location. - type: string - location: - description: Location specifies the location where the backup - data will be stored. - properties: - bucket: - description: Bucket specifies the storage bucket name. - type: string - provider: - description: Provider specifies the storage provider type - (e.g., aws). - type: string - region: - description: Region specifies the region of the storage. - type: string - s3Url: - description: S3Url provides the endpoint URL for S3-compatible - storage. - type: string - required: - - bucket - - provider - - region - - s3Url - type: object - required: - - credentials - - location - type: object targetCluster: description: TargetCluster represents the target clusters for migration. properties: @@ -493,7 +477,6 @@ spec: type: object required: - sourceCluster - - storage - targetCluster type: object status: diff --git a/manifests/charts/fleet-manager/crds/backup.kurator.dev_restores.yaml b/manifests/charts/fleet-manager/crds/backup.kurator.dev_restores.yaml index e3555d38f..3bfbbe02d 100644 --- a/manifests/charts/fleet-manager/crds/backup.kurator.dev_restores.yaml +++ b/manifests/charts/fleet-manager/crds/backup.kurator.dev_restores.yaml @@ -169,7 +169,8 @@ spec: description: ExcludedClusterScopedResources is a slice of cluster-scoped resource type names to exclude from the backup. If set to "*", all cluster-scoped resource types are excluded. - The default value is empty. + The default value is empty. Cannot work with IncludedResources, + ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -178,7 +179,8 @@ spec: description: ExcludedNamespaceScopedResources is a slice of namespace-scoped resource type names to exclude from the backup. If set to "*", all namespace-scoped resource types - are excluded. The default value is empty. + are excluded. The default value is empty. Cannot work with + IncludedResources, ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -192,7 +194,9 @@ spec: type: array excludedResources: description: ExcludedResources is a slice of resource names - that are not included in the backup. + that are not included in the backup. Cannot work with IncludedClusterScopedResources, + ExcludedClusterScopedResources, IncludedNamespaceScopedResources + and ExcludedNamespaceScopedResources. items: type: string nullable: true @@ -200,14 +204,20 @@ spec: includeClusterResources: description: IncludeClusterResources specifies whether cluster-scoped resources should be included for consideration in the backup. + Cannot work with IncludedClusterScopedResources, ExcludedClusterScopedResources, + IncludedNamespaceScopedResources and ExcludedNamespaceScopedResources. nullable: true type: boolean includedClusterScopedResources: description: IncludedClusterScopedResources is a slice of cluster-scoped resource type names to include in the backup. - If set to "*", all cluster-scoped resource types are included. - The default value is empty, which means only related cluster-scoped - resources are included. + For example, we can populate this string array with "storageclasses" + and "clusterroles", then we will select all resources of + type storageclasses and clusterroles, If set to "*", all + cluster-scoped resource types are included. The default + value is empty, which means only related cluster-scoped + resources are included. Cannot work with IncludedResources, + ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -215,7 +225,10 @@ spec: includedNamespaceScopedResources: description: IncludedNamespaceScopedResources is a slice of namespace-scoped resource type names to include in the backup. - The default value is "*". + For example, we can populate this string array with "deployments" + and "configmaps", then we will select all resources of type + deployments and configmaps, The default value is "*". Cannot + work with IncludedResources, ExcludedResources and IncludeClusterResources. items: type: string nullable: true @@ -229,7 +242,12 @@ spec: type: array includedResources: description: IncludedResources is a slice of resource names - to include in the backup. If empty, all resources are included. + to include in the backup. For example, we can populate this + string array with "deployments" and "configmaps", then we + will select all resources of type deployments and configmaps, + If empty, all resources are included. Cannot work with IncludedClusterScopedResources, + ExcludedClusterScopedResources, IncludedNamespaceScopedResources + and ExcludedNamespaceScopedResources. items: type: string nullable: true diff --git a/pkg/apis/backups/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/backups/v1alpha1/zz_generated.deepcopy.go index 75041f598..a62ae15a8 100644 --- a/pkg/apis/backups/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/backups/v1alpha1/zz_generated.deepcopy.go @@ -144,7 +144,6 @@ func (in *BackupPolicy) DeepCopy() *BackupPolicy { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BackupSpec) DeepCopyInto(out *BackupSpec) { *out = *in - out.Storage = in.Storage if in.Destination != nil { in, out := &in.Destination, &out.Destination *out = new(Destination) @@ -202,39 +201,6 @@ func (in *BackupStatus) DeepCopy() *BackupStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BackupStorage) DeepCopyInto(out *BackupStorage) { - *out = *in - out.Location = in.Location - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorage. -func (in *BackupStorage) DeepCopy() *BackupStorage { - if in == nil { - return nil - } - out := new(BackupStorage) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BackupStorageLocation) DeepCopyInto(out *BackupStorageLocation) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStorageLocation. -func (in *BackupStorageLocation) DeepCopy() *BackupStorageLocation { - if in == nil { - return nil - } - out := new(BackupStorageLocation) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterSelector) DeepCopyInto(out *ClusterSelector) { *out = *in @@ -400,7 +366,6 @@ func (in *MigratePolicy) DeepCopy() *MigratePolicy { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MigrateSpec) DeepCopyInto(out *MigrateSpec) { *out = *in - out.Storage = in.Storage if in.SourceCluster != nil { in, out := &in.SourceCluster, &out.SourceCluster *out = new(Destination) @@ -491,6 +456,11 @@ func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter) { *out = make([]string, len(*in)) copy(*out, *in) } + if in.IncludeClusterResources != nil { + in, out := &in.IncludeClusterResources, &out.IncludeClusterResources + *out = new(bool) + **out = **in + } if in.IncludedClusterScopedResources != nil { in, out := &in.IncludedClusterScopedResources, &out.IncludedClusterScopedResources *out = make([]string, len(*in)) @@ -527,11 +497,6 @@ func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter) { } } } - if in.IncludeClusterResources != nil { - in, out := &in.IncludeClusterResources, &out.IncludeClusterResources - *out = new(bool) - **out = **in - } return }