Commit Graph

16 Commits (chart-security-mitigation)

Author SHA1 Message Date
Michael McCallum b42d7a2e97 Allow 2 point versions in images:
We only use 2 points X.Y always unless there is really a patch which is extremely uncommon.
Developers choose the X and tooling chooses the Y. That is the developers only ever have to make a simple decision did I break it or not.

* these are still semver but just treat the patch as optional
* add tests for various combinations of updates
2020-06-29 14:17:47 +12:00
Aurélien Grenotton d3c1ee82d3 Add SemVer pre-release handling
Previously, SemVer pre-release version was used to differentiate kind
of "branches", not allowing to cross pre-release on update.
According to SemVer spec, this should rather rely on the metadata.
New "keel.sh/matchPreRelease" annotation (or label) is added to disable
current keel behavior and consider the pre-release as a standard
SemVer versioning token.
For backward compatibility purpose, its value defaults to "true" if not
specified.
Closes #252

Also reviewed WatchRepositoryTagsJob tags handling.
Fixes #490
2020-04-19 01:36:21 +02:00
Karolis Rusenas ad737b69be fixed approvals 2019-05-09 16:57:25 +01:00
Mate Ory 7f6851e854
policy: allow explicitly selecting NilPolicy
this makes it easier to temporarily disable keel on a resource

Signed-off-by: Mate Ory <mate.ory@banzaicloud.com>
2018-12-06 14:17:54 +01:00
Karolis Rusenas d07b9104f3 test for number only issue 2018-12-01 22:17:47 +00:00
Karolis Rusenas 30221938c8 don't parse versions that don't look like semver 2018-12-01 22:17:32 +00:00
Karolis Rusenas 7ac34178ec tests for glob policy 2018-11-11 11:38:38 +00:00
Karolis Rusenas 27814f2b58 #295 don't error on each helm release without the keel cfg, more info if policy is unknown 2018-11-07 23:27:05 +00:00
Karolis Rusenas 56c2eaf435 checking trigger type and policy in the annotations as well 2018-11-07 23:16:09 +00:00
Karolis Rusenas 701f417741 policy parse tests 2018-09-04 21:25:44 +01:00
Karolis Rusenas 4e50f7ecdd get policy test moved 2018-09-04 21:10:57 +01:00
Karolis Rusenas 49bfb262e5 making it testable 2018-09-02 21:18:43 +01:00
Karolis Rusenas dfe21c5fc0 semver tests 2018-09-02 21:07:44 +01:00
Karolis Rusenas 47afdbd680 semver policy type 2018-09-02 18:57:25 +01:00
Karolis Rusenas 3819aae4b5 regexp policy 2018-09-02 16:32:11 +01:00
Karolis Rusenas 83f2c249ea policy refactoring 2018-09-02 16:31:22 +01:00