1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Add source-watcher to the install and bootstrap commands

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2025-09-15 21:23:09 +03:00
parent 0a87ed5a42
commit 3542d61afd
7 changed files with 83 additions and 14 deletions

View File

@@ -46,5 +46,5 @@ func TestGenerate(t *testing.T) {
t.Errorf("Generation warning '%s' not found", warning)
}
fmt.Println(output)
t.Log(output)
}

View File

@@ -44,7 +44,7 @@ func MakeDefaultOptions() Options {
Version: "latest",
Namespace: "flux-system",
Components: []string{"source-controller", "kustomize-controller", "helm-controller", "notification-controller"},
ComponentsExtra: []string{"image-reflector-controller", "image-automation-controller"},
ComponentsExtra: []string{"image-reflector-controller", "image-automation-controller", "source-watcher"},
EventsAddr: "",
Registry: "ghcr.io/fluxcd",
RegistryCredential: "",

View File

@@ -65,7 +65,7 @@ patches:
- op: replace
path: /spec/template/spec/containers/0/args/1
value: --log-level={{$logLevel}}
{{- else if eq $component "source-controller" }}
{{- else if or (eq $component "source-controller") (eq $component "source-watcher") }}
- target:
group: apps
version: v1
@@ -102,7 +102,17 @@ patches:
value: --log-level={{$logLevel}}
{{- end }}
{{- end }}
{{- range $i, $component := .Components }}
{{- if eq $component "source-watcher" }}
- target:
kind: Deployment
name: "(kustomize-controller|helm-controller)"
patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --feature-gates=ExternalArtifact=true
{{- end }}
{{- end }}
{{- if $registry }}
images:
{{- range $i, $component := .Components }}