watch-auditor

command module
v0.0.0-...-f1f8829 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Watch Auditor

The Watch Auditor is a tool that ensures that measures watch misses between Pepr and the kube-apiserver. The soak test is configured to delete pods from the pepr-demo namespace. The Watch Auditor deploys pods at an interval and checks to see if Pepr properly deleted them and reports any failures through Prometheus metrics.

NOTE Watch Auditor needs amd64 image for GitHub Actions. use make build-push-prod-image

Configurability:

The Watch Auditor is configured through args in the Deployment's container spec.

Start the server

Usage:
  watch-auditor serve [flags]

Flags:
  -e, --every duration          Interval to check in seconds (default 30s)
  -h, --help                    help for serve
  -l, --log-level string        Log level (debug, info, error) (default "info")
  -p, --port int                Port to listen on (default 8080)
  -n, --namespace string        Namespace to check (default "pepr-demo")

Metics

watch_controller_failures_total 10 

Developing

Deploy Dev Environment:

make deploy-dev

Check Dev Logs:

make check-logs

Check Dev Metrics:

make check-metrics

Clean up Dev Environment:

make clean-dev

unit tests:

make unit-test

integration tests:

make e2e-test

Documentation

Overview

Copyright © 2024 Case Wylie <casewylie@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL