healthchecksio-operator

command module
v0.0.0-...-958fe41 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

README

healthchecksio-operator

A Kubernetes operator for Healthchecks.io, implemented in go using kubebuilder.

Status

GitHub GitHub GitHub go.mod Go version

Supported resources

  • Check

Example

---
apiVersion: monitoring.healthchecks.io/v1alpha1
kind: Check
metadata:
  name: check-sample
spec:
  schedule: "*/10 * * * *"
  timezone: "Europe/Stockholm"
  gracePeriod: 120
  channels:
    - "email"
    - "webhook"
  tags:
    - healthchecksio-operator
    - prod
Configuration
Flag Environment variable Type Required Description
- HEALTHCHECKSIO_API_KEY string true The healthchecks.io API Key.
metrics-addr OPERATOR_METRICS_ADDR string false The address the metric endpoint binds to.
enable-leader-election OPERATOR_ENABLE_LEADER_ELECTION bool false Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.
development OPERATOR_DEVELOPMENT bool false Run the operator in development mode.
log-level OPERATOR_LOG_LEVEL string false The log level used by the operator.
name-prefix OPERATOR_NAME_PREFIX string false Prefix used to create unique resources across clusters.
reconcile-interval OPERATOR_RECONCILE_INTERVAL duration false The interval for the reconcile loop.

Development

Pre-requisites
Getting started
export HEALTHCHECKSIO_API_KEY='<API_KEY>'
export OPERATOR_DEVELOPMENT='true'
make install
make run
Running tests
make test

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the monitoring v1alpha1 API group +kubebuilder:object:generate=true +groupName=monitoring.healthchecks.io
Package v1alpha1 contains API Schema definitions for the monitoring v1alpha1 API group +kubebuilder:object:generate=true +groupName=monitoring.healthchecks.io

Jump to

Keyboard shortcuts

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