mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-25 09:01:48 +00:00
Add source-watcher to manifests
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
e4dcc4bd5f
commit
0a87ed5a42
6 changed files with 56 additions and 0 deletions
4
manifests/bases/source-watcher/account.yaml
Normal file
4
manifests/bases/source-watcher/account.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: source-watcher
|
||||||
15
manifests/bases/source-watcher/kustomization.yaml
Normal file
15
manifests/bases/source-watcher/kustomization.yaml
Normal file
|
|
@ -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
|
||||||
13
manifests/bases/source-watcher/labels.yaml
Normal file
13
manifests/bases/source-watcher/labels.yaml
Normal file
|
|
@ -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
|
||||||
17
manifests/bases/source-watcher/patch.yaml
Normal file
17
manifests/bases/source-watcher/patch.yaml
Normal file
|
|
@ -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…
Reference in a new issue