Skip to content

Commit 8dc5087

Browse files
committed
feat: add flux images to repo manager
1 parent 5f4e145 commit 8dc5087

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

internal/deployment-repo/deploymentRepoManager.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ const (
3030
FluxCDSourceControllerResourceName = "fluxcd-source-controller"
3131
FluxCDKustomizationControllerResourceName = "fluxcd-kustomize-controller"
3232
FluxCDHelmControllerResourceName = "fluxcd-helm-controller"
33+
FluxCDNotificationControllerName = "fluxcd-notification-controller"
34+
FluxCDImageReflectorControllerName = "fluxcd-image-reflector-controller"
35+
FluxCDImageAutomationControllerName = "fluxcd-image-automation-controller"
3336

3437
EnvsDirectoryName = "envs"
3538
ResourcesDirectoryName = "resources"
@@ -251,6 +254,21 @@ func (m *DeploymentRepoManager) ApplyTemplates(ctx context.Context) error {
251254
return fmt.Errorf("failed to apply fluxcd helm controller template input: %w", err)
252255
}
253256

257+
err = applyFluxCDTemplateInput(templateInput, m.fluxcdCV, FluxCDNotificationControllerName, "notificationController")
258+
if err != nil {
259+
return fmt.Errorf("failed to apply fluxcd helm controller template input: %w", err)
260+
}
261+
262+
err = applyFluxCDTemplateInput(templateInput, m.fluxcdCV, FluxCDImageReflectorControllerName, "imageReflectorController")
263+
if err != nil {
264+
return fmt.Errorf("failed to apply fluxcd image reflector controller template input: %w", err)
265+
}
266+
267+
err = applyFluxCDTemplateInput(templateInput, m.fluxcdCV, FluxCDImageAutomationControllerName, "imageAutomationController")
268+
if err != nil {
269+
return fmt.Errorf("failed to apply fluxcd image automation controller template input: %w", err)
270+
}
271+
254272
err = TemplateDir(m.templatesDir, templateInput, m.gitRepo)
255273
if err != nil {
256274
return fmt.Errorf("failed to apply templates from directory %s: %w", m.templatesDir, err)

0 commit comments

Comments
 (0)