Skip to content

Commit 5f4e145

Browse files
committed
feat: add flux images
1 parent 3d66024 commit 5f4e145

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

internal/flux_deployer/constants.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ const (
2020
FluxCDSourceControllerResourceName = "fluxcd-source-controller"
2121
FluxCDKustomizationControllerResourceName = "fluxcd-kustomize-controller"
2222
FluxCDHelmControllerResourceName = "fluxcd-helm-controller"
23+
FluxCDNotificationControllerName = "fluxcd-notification-controller"
24+
FluxCDImageReflectorControllerName = "fluxcd-image-reflector-controller"
25+
FluxCDImageAutomationControllerName = "fluxcd-image-automation-controller"
2326
)

internal/flux_deployer/deployer.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ func (d *FluxDeployer) Template() (err error) {
197197
if err = templateInput.AddImageResource(d.fluxcdCV, FluxCDHelmControllerResourceName, "helmController"); err != nil {
198198
return fmt.Errorf("failed to apply fluxcd helm controller template input: %w", err)
199199
}
200+
if err = templateInput.AddImageResource(d.fluxcdCV, FluxCDNotificationControllerName, "notificationController"); err != nil {
201+
return fmt.Errorf("failed to apply fluxcd notification controller template input: %w", err)
202+
}
203+
if err = templateInput.AddImageResource(d.fluxcdCV, FluxCDImageReflectorControllerName, "imageReflectorController"); err != nil {
204+
return fmt.Errorf("failed to apply fluxcd image reflector controller template input: %w", err)
205+
}
206+
if err = templateInput.AddImageResource(d.fluxcdCV, FluxCDImageAutomationControllerName, "imageAutomationController"); err != nil {
207+
return fmt.Errorf("failed to apply fluxcd image automation controller template input: %w", err)
208+
}
200209

201210
if err = TemplateDirectory(d.templatesDir, templateInput, d.repoDir, d.log); err != nil {
202211
return fmt.Errorf("failed to apply templates from directory %s: %w", d.templatesDir, err)

0 commit comments

Comments
 (0)