@@ -206,3 +206,79 @@ type Analyze struct {
206206 WeaveReport * WeaveReportAnalyze `json:"weaveReport,omitempty" yaml:"weaveReport,omitempty"`
207207 Sysctl * SysctlAnalyze `json:"sysctl,omitempty" yaml:"sysctl,omitempty"`
208208}
209+
210+ func (a * Analyze ) GetExclude () * multitype.BoolOrString {
211+ if a .ClusterVersion != nil {
212+ return a .ClusterVersion .Exclude
213+ }
214+ if a .StorageClass != nil {
215+ return a .StorageClass .Exclude
216+ }
217+ if a .CustomResourceDefinition != nil {
218+ return a .CustomResourceDefinition .Exclude
219+ }
220+ if a .Ingress != nil {
221+ return a .Ingress .Exclude
222+ }
223+ if a .Secret != nil {
224+ return a .Secret .Exclude
225+ }
226+ if a .ConfigMap != nil {
227+ return a .ConfigMap .Exclude
228+ }
229+ if a .ImagePullSecret != nil {
230+ return a .ImagePullSecret .Exclude
231+ }
232+ if a .DeploymentStatus != nil {
233+ return a .DeploymentStatus .Exclude
234+ }
235+ if a .StatefulsetStatus != nil {
236+ return a .StatefulsetStatus .Exclude
237+ }
238+ if a .JobStatus != nil {
239+ return a .JobStatus .Exclude
240+ }
241+ if a .ReplicaSetStatus != nil {
242+ return a .ReplicaSetStatus .Exclude
243+ }
244+ if a .ClusterPodStatuses != nil {
245+ return a .ClusterPodStatuses .Exclude
246+ }
247+ if a .ContainerRuntime != nil {
248+ return a .ContainerRuntime .Exclude
249+ }
250+ if a .Distribution != nil {
251+ return a .Distribution .Exclude
252+ }
253+ if a .NodeResources != nil {
254+ return a .NodeResources .Exclude
255+ }
256+ if a .TextAnalyze != nil {
257+ return a .TextAnalyze .Exclude
258+ }
259+ if a .Postgres != nil {
260+ return a .Postgres .Exclude
261+ }
262+ if a .Mysql != nil {
263+ return a .Mysql .Exclude
264+ }
265+ if a .Redis != nil {
266+ return a .Redis .Exclude
267+ }
268+ if a .CephStatus != nil {
269+ return a .CephStatus .Exclude
270+ }
271+ if a .Longhorn != nil {
272+ return a .Longhorn .Exclude
273+ }
274+ if a .RegistryImages != nil {
275+ return a .RegistryImages .Exclude
276+ }
277+ if a .WeaveReport != nil {
278+ return a .WeaveReport .Exclude
279+ }
280+ if a .Sysctl != nil {
281+ return a .Sysctl .Exclude
282+ }
283+ return nil
284+ }
0 commit comments