feat(probes)!: rewrite probes logic with named probes #9

Merged
Piotr Icikowski merged 1 commits from naming into devel 2024-03-03 00:06:05 +01:00
  • ProbeFunction is now an interface for easier use
  • ProbeFunctions can be auto-updated with specified update interval
  • StatefulProbes changed into ManualProbes and implement ProbeFunction interface
  • ManualProbes allows for marking probe as unhealthy with custom cause
  • handlers now return JSON response with failed probes
  • handler's response can be set to verbose via Kubeprobes option or via ?v request param

BREAKING CHANGE: type definitions were replaced with more robust implementation.

- `ProbeFunction` is now an interface for easier use - `ProbeFunction`s can be auto-updated with specified update interval - `StatefulProbes` changed into `ManualProbes` and implement `ProbeFunction` interface - `ManualProbes` allows for marking probe as unhealthy with custom cause - handlers now return JSON response with failed probes - handler's response can be set to verbose via `Kubeprobes` option or via `?v` request param BREAKING CHANGE: type definitions were replaced with more robust implementation.
Piotr Icikowski added 1 commit 2024-03-03 00:02:41 +01:00
feat(probes)!: rewrite probes logic with named probes
All checks were successful
ci/woodpecker/pr/test Pipeline was successful
9dd25ff024
- `ProbeFunction` is now an interface for easier use
- `ProbeFunction`s can be auto-updated with specified update interval
- `StatefulProbes` changed into `ManualProbes` and implement `ProbeFunction` interface
- `ManualProbes` allows for marking probe as unhealthy with custom cause
- handlers now return JSON response with failed probes
- handler's response can be set to verbose via `Kubeprobes` option or via `?v` request param

BREAKING CHANGE: type definitions were replaced with more robust implementation.
Piotr Icikowski force-pushed naming from 9e65dd14a9 to 2d04b4c66b 2024-03-03 00:04:38 +01:00 Compare
Piotr Icikowski force-pushed naming from 2d04b4c66b to 9dd25ff024 2024-03-03 00:05:23 +01:00 Compare
Piotr Icikowski merged commit ff3db1ea10 into devel 2024-03-03 00:06:05 +01:00
Piotr Icikowski deleted branch naming 2024-03-03 00:06:05 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: go/kubeprobes#9
No description provided.