Skip to content

Commit

Permalink
Fix ArgoCd SyncWindow configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-urbanski-freiheit-com committed Jul 6, 2022
1 parent 9cfdf67 commit fbc0958
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions services/cd-service/pkg/argocd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ func RenderV1Alpha1(gitUrl string, gitBranch string, config config.EnvironmentCo
}
syncWindows = append(syncWindows, &v1alpha1.SyncWindow{
Applications: apps,
Clusters: []string{"*"},
Namespaces: []string{"*"},
// NOTE: Applications, Clusters and Namespaces are an OR-expression!
// Example: You set Application="my-app" and Clusters="*"
// This means: It applies to ALL applications.
// To avoid this, we omit the settings for Clusters and Namespaces:
//Clusters: []string{"*"},
//Namespaces: []string{"*"},
Schedule: w.Schedule,
Duration: w.Duration,
Kind: w.Kind,
Expand Down

0 comments on commit fbc0958

Please sign in to comment.