// reconcileSourceResource handles updates to any other (not `FieldExport`) ACK
// resources
reconcileSourceResource handles updates to any other (not `FieldExport`) ACK
resources
// reconcileSourceResource handles updates to any other ( not ` FieldExport ` ) ACK // resources
func (r *fieldExportResourceReconciler) reconcileSourceResource(ctx context.Context, req ctrlrt.Request) error {
	res, err := r.getSourceResource(ctx, r.rd, req.NamespacedName)
	if err != nil {
		if client.IgnoreNotFound(err) != nil {
			return requeue.None(err)
		}
		return nil
	}
	exports, err := r.GetFieldExportsForResource(ctx,
		*r.rd.GroupKind(),
		types.NamespacedName{
			Namespace: res.MetaObject().GetNamespace(),
			Name:      res.MetaObject().GetName(),
		},
	)
	if err != nil {
		return err
	}
	for _, export := range exports {
		if _, err = r.Sync(ctx, res, export); err != nil {
			return err
		}
	}
	return nil
}
func ( r * fieldExportResourceReconciler ) reconcileSourceResource ( ctx context . Context , req ctrlrt . Request ) error { res , err := r . getSourceResource ( ctx , r . rd , req . NamespacedName ) if err != nil { if client . IgnoreNotFound ( err ) != nil { return requeue . None ( err ) } return nil } exports , err := r . GetFieldExportsForResource ( ctx , * r . rd . GroupKind ( ) , types . NamespacedName { Namespace : res . MetaObject ( ) . GetNamespace ( ) , Name : res . MetaObject ( ) . GetName ( ) , } , ) if err != nil { return err } for _ , export := range exports { if _ , err = r . Sync ( ctx , res , export ) ; err != nil { return err } } return nil }
reconcileSourceResource handles updates to any other (not `FieldExport`) ACK
resources
reconcileSourceResource handles updates to any other ( not ` FieldExport ` ) ACK resources
// Can't attach this error to any particular FieldExport object, so // it will only be displayed in the controller logs. // Get each of the exports referencing this AWS resource // Iterate through each export and sync it