Add source-watcher to the install and bootstrap commands
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
@@ -46,5 +46,5 @@ func TestGenerate(t *testing.T) {
|
||||
t.Errorf("Generation warning '%s' not found", warning)
|
||||
}
|
||||
|
||||
fmt.Println(output)
|
||||
t.Log(output)
|
||||
}
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user