// GetSyncedAppsByStage returns the Applications that synced during the given stage
GetSyncedAppsByStage returns the Applications that synced during the given stage
// GetSyncedAppsByStage returns the Applications that synced during the given stage
func GetSyncedAppsByStage(apps []argov1alpha1.Application, stage syncv1alpha1.ProgressiveSyncStage, pss ProgressiveSyncState) []argov1alpha1.Application {
	var result []argov1alpha1.Application
	for _, app := range apps {
		if app.Status.Sync.Status == argov1alpha1.SyncStatusCodeSynced && pss.IsAppMarkedInStage(app, stage) {
			result = append(result, app)
		}
	}
	return result
}
func GetSyncedAppsByStage ( apps [ ] argov1alpha1 . Application , stage syncv1alpha1 . ProgressiveSyncStage , pss ProgressiveSyncState ) [ ] argov1alpha1 . Application { var result [ ] argov1alpha1 . Application for _ , app := range apps { if app . Status . Sync . Status == argov1alpha1 . SyncStatusCodeSynced && pss . IsAppMarkedInStage ( app , stage ) { result = append ( result , app ) } } return result }
GetSyncedAppsByStage returns the Applications that synced during the given stage
GetSyncedAppsByStage returns the Applications that synced during the given stage