You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Helm chart supports creating a [Prometheus Operator](https://github.com/prometheus-operator/prometheus-operator)`ServiceMonitor` to expose version-checker's metrics.
39
+
40
+
## Options
41
+
42
+
By default, version-checker will only test containers where the pod has the annotation
43
+
`enable.version-checker.io/*my-container*`, where `*my-container*` is the `name`
44
+
of the container in the pod.
45
+
46
+
However, by passing the following flag,`-a, --test-all-containers` version-checker will test all containers within the cluster.
47
+
48
+
### Supported Annotations
49
+
50
+
`version-checker` supports the following annotations to enrich version checking on image tags:
51
+
52
+
-`pin-major.version-checker.io/my-container: 4`: will pin the major version to
53
+
check to 4 (`v4.0.0`).
54
+
55
+
-`pin-minor.version-checker.io/my-container: 3`: will pin the minor version to
56
+
check to 3 (`v0.3.0`).
57
+
58
+
-`pin-patch.version-checker.io/my-container: 23`: will pin the patch version to
59
+
check to 23 (`v0.0.23`).
60
+
61
+
-`use-metadata.version-checker.io/my-container: "true"`: will allow to search
62
+
for image tags which contain information after the first part of the semver
63
+
string. For example, this can be pre-releases or build metadata
64
+
(`v1.2.4-alpha.0`, `v1.2.3-debian-r3`).
65
+
66
+
-`use-sha.version-checker.io/my-container: "true"`: will check against the latest
67
+
SHA tag available. Essentially, the latest image by date. This is silently
68
+
set to true if no image tag, or "latest" image tag is set. Cannot be used with
69
+
any other options.
70
+
71
+
-`match-regex.version-checker.io/my-container: ^v\d+\.\d+\.\d+-debian-`: is
72
+
used for only comparing against image tags which match the regex set. For
73
+
example, the above annotation will only check against image tags which have
74
+
the form of something like `v1.3.4-debian-r30`.
75
+
`use-metadata.version-checker.io` is not required when this is set. All
76
+
other options, apart from URL overrides, are ignored when this is set.
77
+
78
+
-`override-url.version-checker.io/my-container: docker.io/bitnami/etcd`: is
79
+
used to change the URL for where to lookup where the latest image version
80
+
is. In this example, the current version of `my-container` will be compared
81
+
against the image versions in the `docker.io/bitnami/etcd` registry.
82
+
83
+
-`resolve-sha-to-tags.version-checker.io/my-container`: is used to
84
+
resolve images specified using sha256 in kubernetes manifests to valid semver
85
+
tags. To enable this the annotation value must be set to "true".
0 commit comments