-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimage-auto-etcd-backup.yaml
69 lines (64 loc) · 1.41 KB
/
image-auto-etcd-backup.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: image-repo-etcd
namespace: flux-system
spec:
image: gcr.io/etcd-development/etcd
interval: 100m0s
accessFrom:
namespaceSelectors:
- matchLabels: {}
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: image-policy-etcd
namespace: flux-system
spec:
imageRepositoryRef:
name: image-repo-etcd
policy:
semver:
range: '~v3.5.x'
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: flux-system-image-automation
namespace: flux-system
spec:
interval: 10m0s
sourceRef:
kind: GitRepository
name: flux-system
git:
checkout:
ref:
branch: main
commit:
author:
email: [email protected]
name: flux
messageTemplate: |
Automated image update by Flux
Automation name: {{ .AutomationObject }}
Files:
{{ range $filename, $_ := .Updated.Files -}}
- {{ $filename }}
{{ end -}}
Objects:
{{ range $resource, $_ := .Updated.Objects -}}
- {{ $resource.Kind }} {{ $resource.Name }}
{{ end -}}
Images:
{{ range .Updated.Images -}}
- {{.}}
{{ end -}}
push:
branch: images-update
update:
path: ./infra/utils/etcd-backup
strategy: Setters
...