mirror of https://github.com/fluxcd/flux2.git
Add source-watcher to manifests
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>pull/5519/head
parent
e4dcc4bd5f
commit
0a87ed5a42
@ -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
|
Loading…
Reference in New Issue