func watchArgoCDExportResources(c controller.Controller) error {
	// Watch for changes to primary resource ArgoCDExport
	if err := c.Watch(&source.Kind{Type: &argoproj.ArgoCDExport{}}, &handler.EnqueueRequestForObject{}); err != nil {
		return err
	}

	// Watch for changes to CronJob sub-resources owned by ArgoCDExport instances.
	if err := watchArgoCDExportOwnedResource(c, &batchv1b1.CronJob{}); err != nil {
		return err
	}

	// Watch for changes to Job sub-resources owned by ArgoCD instances.
	if err := watchArgoCDExportOwnedResource(c, &batchv1.Job{}); err != nil {
		return err
	}

	// Watch for changes to PersistentVolumeClaim sub-resources owned by ArgoCD instances.
	if err := watchArgoCDExportOwnedResource(c, &corev1.PersistentVolumeClaim{}); err != nil {
		return err
	}

	// Watch for changes to Secret sub-resources owned by ArgoCD instances.
	if err := watchArgoCDExportOwnedResource(c, &corev1.Secret{}); err != nil {
		return err
	}

	return nil
}
// watchArgoCDExportResources will register Watches for each of the supported Resources.
watchArgoCDExportResources will register Watches for each of the supported Resources.
// watchArgoCDExportResources will register Watches for each of the supported Resources .
func watchArgoCDExportResources(c controller.Controller) error {
	if err := c.Watch(&source.Kind{Type: &argoproj.ArgoCDExport{}}, &handler.EnqueueRequestForObject{}); err != nil {
		return err
	}
	if err := watchArgoCDExportOwnedResource(c, &batchv1b1.CronJob{}); err != nil {
		return err
	}
	if err := watchArgoCDExportOwnedResource(c, &batchv1.Job{}); err != nil {
		return err
	}
	if err := watchArgoCDExportOwnedResource(c, &corev1.PersistentVolumeClaim{}); err != nil {
		return err
	}
	if err := watchArgoCDExportOwnedResource(c, &corev1.Secret{}); err != nil {
		return err
	}
	return nil
}
func watchArgoCDExportResources ( c controller . Controller ) error { if err := c . Watch ( & source . Kind { Type : & argoproj . ArgoCDExport { } } , & handler . EnqueueRequestForObject { } ) ; err != nil { return err } if err := watchArgoCDExportOwnedResource ( c , & batchv1b1 . CronJob { } ) ; err != nil { return err } if err := watchArgoCDExportOwnedResource ( c , & batchv1 . Job { } ) ; err != nil { return err } if err := watchArgoCDExportOwnedResource ( c , & corev1 . PersistentVolumeClaim { } ) ; err != nil { return err } if err := watchArgoCDExportOwnedResource ( c , & corev1 . Secret { } ) ; err != nil { return err } return nil }
watchArgoCDExportResources will register Watches for each of the supported Resources.
watchArgoCDExportResources will register Watches for each of the supported Resources .
// Watch for changes to primary resource ArgoCDExport // Watch for changes to CronJob sub-resources owned by ArgoCDExport instances. // Watch for changes to Job sub-resources owned by ArgoCD instances. // Watch for changes to PersistentVolumeClaim sub-resources owned by ArgoCD instances. // Watch for changes to Secret sub-resources owned by ArgoCD instances.