-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and align with stable components patterns
This is an attempt to bring the api and controller logic closer to what the other controller components already have set as patterns. 1. Adopt the k8s standard Condition type. 2. Rename `ScanInterval` to `Interval` to be consistent with the `Interval` attribute other Spec types have defined, translating to reconciliation interval. This attribute is now required. 3. Add `ScanTime` attribute to the `ScanResult` type, enabling keeping track of the last successful scan execution. Use this value for scan frequency throttling. 4. Add optional `Timeout` attribute to allow custom scan timeout handling. The default value is equal to that of the `Interval` attr. Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
- Loading branch information
Showing
7 changed files
with
118 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.