Commit Graph

170 Commits

Author SHA1 Message Date
CrazyMax
b2a19c457c move imageDefaults from watch to defaults in config root 2023-09-23 13:49:15 +02:00
CrazyMax
b9615bf2db fix defaults not handled by yaml configuration 2023-09-23 13:49:15 +02:00
CrazyMax
522c8e9448 handle analysis of image with tag and digest 2023-09-16 18:41:00 +02:00
CrazyMax
78879b3fae chore: fix wording and remove unnecessary comments 2023-09-16 16:59:00 +02:00
CrazyMax
f7bb36d46f chore: use errors.Errorf 2023-09-16 12:36:35 +02:00
CrazyMax
24bc0548e0 chore: use typed error and fix missing wraps 2023-09-16 11:47:53 +02:00
CrazyMax
6a4236c545 chore: make invalid label typed error private 2023-09-16 11:47:53 +02:00
CrazyMax
49b8852a04 test: use white-box testing 2023-09-16 11:47:52 +02:00
Ian Fijolek
60ddac4a59 Global defaults for image configs
Allows setting of image configs at a global level to act as default
values.

This required a change in the model.Image struct due to a bool field not
having a third, unset state. The remedy is to unmarshal into a temporary
data structure to detect the presents of a field value and then use that
to determine if the default value should be used.

Fixes #491
2023-09-12 12:10:10 -07:00
Ian Fijolek
302caf0369 Update nomad provider to use mergo 2023-09-11 16:41:57 -07:00
CrazyMax
780f3fb81f runOnStartup watch option 2023-06-12 00:13:18 +02:00
CrazyMax
c7993f23b8 Authentication support for ntfy 2023-06-11 22:26:27 +02:00
Ben Tea
1da9ec5308 Adds ntfy.sh notification option 2023-02-18 17:29:14 -08:00
Ian Fijolek
e7051f2e38 Check Nomad group meta tags
This was intended originally and included in the documentation, but missed in
the implementation.
2023-01-11 15:22:20 -08:00
CrazyMax
88426efaa1 Align job iteration logic 2022-12-29 11:50:09 +01:00
CrazyMax
073e08ee11 Entry metadata field 2022-12-29 11:15:26 +01:00
CrazyMax
d7909f0156 Allow customizing Signal notification message 2022-12-29 07:47:38 +01:00
CrazyMax
a12d296e6f Jitter watch option 2022-12-28 14:13:47 +01:00
CrazyMax
00edf2c7d9 Fix panics when parsing notification templates 2022-12-28 03:07:22 +01:00
CrazyMax
d135167ceb Fix email notification message template 2022-12-28 00:58:32 +01:00
Ian Fijolek
6318e4f069 Add Nomad provider
I modeled it off the Kubernetes provider a bit. It supports setting task
config at group and task levels using services and meta attributes.
2022-12-27 17:35:27 +01:00
Jonas Weismueller
42e684d680 feat: support signal rest api notifications (#650) 2022-10-08 03:49:27 +02:00
vilm3r
650fbb83ec fix: test notification typo (#677) 2022-08-31 18:01:27 +02:00
CrazyMax
c89e54888e Allow customizing the hub link (#648)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-17 15:56:06 +02:00
CrazyMax
190578f612 Use OCI image.url label to override hub link (#646)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-17 14:55:14 +02:00
CrazyMax
857e462090 Tags sorting support (#645)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-17 13:47:37 +02:00
CrazyMax
64cb538dbf Go 1.18 (#592)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-09 07:57:35 +02:00
CrazyMax
848a9a08ac Move syscall to golang.org/x/sys (#525)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-26 03:59:19 +01:00
CrazyMax
82d056d3ab Move from io/ioutil to os package (#524)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-26 03:59:05 +01:00
CrazyMax
d5b3a9190a Add image prune command (#519)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-12 19:37:40 +01:00
CrazyMax
42d3535188 Fix matrix login scheme (#487)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-09-10 12:38:08 +02:00
CrazyMax
04e02d1c3e Fix notification title (#483)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-09-06 00:57:33 +02:00
CrazyMax
fc64b132ff Option to render fields (#480)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-09-04 18:41:42 +02:00
CrazyMax
fc13b8c22c Allow to choose status to be notified (#475)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-30 14:15:59 +02:00
CrazyMax
7ee84b3c96 Wrong remaining time displayed (#469)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-20 23:03:16 +02:00
CrazyMax
9f5662635c Enhance notif wording (#467)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-20 22:12:20 +02:00
CrazyMax
21f5d0839a Allow multi recipients for email notifier (#463)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-19 21:51:52 +02:00
CrazyMax
5d583809a0 Allow to customize notification message (#415)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-06-25 23:24:02 +02:00
CrazyMax
d75d05ca89 Handle registry auth config (#411)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-06-18 00:12:21 +02:00
CrazyMax
e02d443e8b Avoid notification for unupdated image (#406)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-06-17 15:20:32 +02:00
CrazyMax
1115234010 Add CLI to interact with Diun through gRPC (#382)
Add simple CLI to interact with Diun through gRPC
Create image and notif proto services
Compile and validate protos through a dedicated Dockerfile and bake target
Implement proto definitions
Move server as `serve` command
New commands `image` and `notif`
Refactor command line usage doc
Better CLI error handling
Tools build constraint to manage tools deps through go modules
Add upgrade notes

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-26 18:18:10 +02:00
CrazyMax
50c41b85c3 Add NO_COLOR support (#384)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-25 11:37:26 +02:00
CrazyMax
e235cd27fc Fix swarm provider (#351)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-30 04:12:13 +02:00
CrazyMax
6ac7139ce2 Dockerfile provider (#329)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-29 18:15:29 +02:00
CrazyMax
e972002b7a Make profiler optional (#341)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-25 22:54:01 +02:00
CrazyMax
de7eeadcd2 Fix profiler path (#339)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-25 21:07:23 +02:00
CrazyMax
0438ca485f Add profiler flag (#336)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-25 18:04:07 +02:00
CrazyMax
9b4e62474b Handle digest based image reference (#335)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-25 00:28:20 +02:00
CrazyMax
9785d3cc4c Allow telegram chat IDs as file (#301)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-03-14 15:32:58 +01:00
Francois Blackburn
b912aee5e4 Allow to configure scheme for MQTT broker (#292) 2021-03-07 17:05:11 +01:00