Skip to content

Commit

Permalink
convert GitOpsConfig to flux config when reading spec from cluster (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
danbudris authored May 3, 2022
1 parent 4aba0fe commit 23f438c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions pkg/cluster/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func BuildSpecForCluster(ctx context.Context, cluster *v1alpha1.Cluster, bundles
if err != nil {
return nil, err
}
fluxConfig = gitOpsConfig.ConvertToFluxConfig()
}
}

Expand Down
1 change: 0 additions & 1 deletion pkg/cluster/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ func WithFluxConfig(fluxConfig *eksav1alpha1.FluxConfig) SpecOpt {
func WithGitOpsConfig(gitOpsConfig *eksav1alpha1.GitOpsConfig) SpecOpt {
return func(s *Spec) {
s.GitOpsConfig = gitOpsConfig
s.FluxConfig = gitOpsConfig.ConvertToFluxConfig()
}
}

Expand Down

0 comments on commit 23f438c

Please sign in to comment.