summaryrefslogtreecommitdiff
path: root/docs/examples/index.md
blob: 15ab78b26c3cef6e616f1f45c196264dc2a8e780 (plain)
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
# Examples

## Digest
Using `digest` sha configuration for `image-list`

```
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: dev
  annotations:
    argocd-image-updater.argoproj.io/write-back-method: argocd
    argocd-image-updater.argoproj.io/image-list: api=registry.com/vendor/api:latest,front=registry.com/vendor/front:latest
    argocd-image-updater.argoproj.io/update-strategy: digest
---
apiVersion: apps/v1
kind: Deployment
spec:
  template:
    spec:
      containers:
        - name: app
          image: registry.com/vendor/api@sha256:38089... # Initial sha
```

## semver
Using `semver` defining the `update-strategy` per `image-list`

```
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: prod
  annotations:
    argocd-image-updater.argoproj.io/write-back-method: argocd
    argocd-image-updater.argoproj.io/image-list: api=registry.com/vendor/api:1.x,front=registry.com/vendor/front:1.x
    #argocd-image-updater.argoproj.io/update-strategy: semver # to apply for all the images
    argocd-image-updater.argoproj.io/api.update-strategy: semver
    argocd-image-updater.argoproj.io/front.update-strategy: semver
---
apiVersion: apps/v1
kind: Deployment
spec:
  template:
    spec:
      containers:
          image: registry.com/vendor/api:1.0
```