Add source-watcher to manifests

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/5519/head
Stefan Prodan 18 hours ago
parent e4dcc4bd5f
commit 0a87ed5a42
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: source-watcher

@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/fluxcd/source-watcher/releases/download/v2.0.0/source-watcher.crds.yaml
- https://github.com/fluxcd/source-watcher/releases/download/v2.0.0/source-watcher.deployment.yaml
- account.yaml
transformers:
- labels.yaml
patches:
- target:
group: apps
version: v1
kind: Deployment
name: source-watcher
path: patch.yaml

@ -0,0 +1,13 @@
apiVersion: builtin
kind: LabelTransformer
metadata:
name: labels
labels:
app.kubernetes.io/component: source-watcher
app.kubernetes.io/part-of: flux
fieldSpecs:
- path: metadata/labels
create: true
- kind: Deployment
path: spec/template/metadata/labels
create: true

@ -0,0 +1,17 @@
- op: add
path: /spec/template/spec/containers/0/args/0
value: --events-addr=http://notification-controller.flux-system.svc.cluster.local./
- op: add
path: /spec/template/spec/serviceAccountName
value: source-watcher
- op: add
path: /spec/template/spec/priorityClassName
value: system-cluster-critical
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
containerName: manager
resource: limits.memory

@ -7,3 +7,4 @@ resources:
- https://github.com/fluxcd/notification-controller/releases/download/v1.6.0/notification-controller.crds.yaml - https://github.com/fluxcd/notification-controller/releases/download/v1.6.0/notification-controller.crds.yaml
- https://github.com/fluxcd/image-reflector-controller/releases/download/v1.0.0/image-reflector-controller.crds.yaml - https://github.com/fluxcd/image-reflector-controller/releases/download/v1.0.0/image-reflector-controller.crds.yaml
- https://github.com/fluxcd/image-automation-controller/releases/download/v0.41.2/image-automation-controller.crds.yaml - https://github.com/fluxcd/image-automation-controller/releases/download/v0.41.2/image-automation-controller.crds.yaml
- https://github.com/fluxcd/source-watcher/releases/download/v2.0.0/source-watcher.crds.yaml

@ -18,6 +18,9 @@ rules:
- apiGroups: ['image.toolkit.fluxcd.io'] - apiGroups: ['image.toolkit.fluxcd.io']
resources: ['*'] resources: ['*']
verbs: ['*'] verbs: ['*']
- apiGroups: ['source.extensions.fluxcd.io']
resources: ['*']
verbs: ['*']
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
@ -109,3 +112,6 @@ subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: image-automation-controller name: image-automation-controller
namespace: flux-system namespace: flux-system
- kind: ServiceAccount
name: source-watcher
namespace: flux-system

Loading…
Cancel
Save