From 09f145d8803a92680330809dd408413e172db71b Mon Sep 17 00:00:00 2001
From: Michael Bridgen <michael@weave.works>
Date: Thu, 10 Dec 2020 14:47:24 +0000
Subject: [PATCH] Add kustomizations for the image-* controllers

I have used the cookie-cutter from the examples already there.

Signed-off-by: Michael Bridgen <michael@weave.works>
---
 .../image-automation-controller/kustomization.yaml   | 12 ++++++++++++
 .../bases/image-automation-controller/patch.yaml     |  3 +++
 .../image-reflector-controller/kustomization.yaml    | 12 ++++++++++++
 .../bases/image-reflector-controller/patch.yaml      |  3 +++
 manifests/install/kustomization.yaml                 |  2 ++
 5 files changed, 32 insertions(+)
 create mode 100644 manifests/bases/image-automation-controller/kustomization.yaml
 create mode 100644 manifests/bases/image-automation-controller/patch.yaml
 create mode 100644 manifests/bases/image-reflector-controller/kustomization.yaml
 create mode 100644 manifests/bases/image-reflector-controller/patch.yaml

diff --git a/manifests/bases/image-automation-controller/kustomization.yaml b/manifests/bases/image-automation-controller/kustomization.yaml
new file mode 100644
index 00000000..2edf16cb
--- /dev/null
+++ b/manifests/bases/image-automation-controller/kustomization.yaml
@@ -0,0 +1,12 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+resources:
+- https://github.com/fluxcd/image-automation-controller/archive/v0.1.0.zip//image-automation-controller-0.1.0/config/crd
+- https://github.com/fluxcd/image-automation-controller/archive/v0.1.0.zip//image-automation-controller-0.1.0/config/manager
+patchesJson6902:
+- target:
+    group: apps
+    version: v1
+    kind: Deployment
+    name: image-automation-controller
+  path: patch.yaml
diff --git a/manifests/bases/image-automation-controller/patch.yaml b/manifests/bases/image-automation-controller/patch.yaml
new file mode 100644
index 00000000..e5ee6192
--- /dev/null
+++ b/manifests/bases/image-automation-controller/patch.yaml
@@ -0,0 +1,3 @@
+- op: add
+  path: /spec/template/spec/containers/0/args/0
+  value: --events-addr=http://notification-controller/
diff --git a/manifests/bases/image-reflector-controller/kustomization.yaml b/manifests/bases/image-reflector-controller/kustomization.yaml
new file mode 100644
index 00000000..79486db4
--- /dev/null
+++ b/manifests/bases/image-reflector-controller/kustomization.yaml
@@ -0,0 +1,12 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+resources:
+- https://github.com/fluxcd/image-reflector-controller/archive/v0.1.0.zip//image-reflector-controller-0.1.0/config/crd
+- https://github.com/fluxcd/image-reflector-controller/archive/v0.1.0.zip//image-reflector-controller-0.1.0/config/manager
+patchesJson6902:
+- target:
+    group: apps
+    version: v1
+    kind: Deployment
+    name: image-reflector-controller
+  path: patch.yaml
diff --git a/manifests/bases/image-reflector-controller/patch.yaml b/manifests/bases/image-reflector-controller/patch.yaml
new file mode 100644
index 00000000..e5ee6192
--- /dev/null
+++ b/manifests/bases/image-reflector-controller/patch.yaml
@@ -0,0 +1,3 @@
+- op: add
+  path: /spec/template/spec/containers/0/args/0
+  value: --events-addr=http://notification-controller/
diff --git a/manifests/install/kustomization.yaml b/manifests/install/kustomization.yaml
index 65b57db7..712102e4 100644
--- a/manifests/install/kustomization.yaml
+++ b/manifests/install/kustomization.yaml
@@ -7,6 +7,8 @@ resources:
   - ../bases/kustomize-controller
   - ../bases/notification-controller
   - ../bases/helm-controller
+  - ../bases/image-reflector-controller
+  - ../bases/image-automation-controller
   - ../rbac
   - ../policies
 transformers:
-- 
GitLab