Skip to content

jthomperoo/custom-pod-autoscaler-operator

Repository files navigation

Build go.dev Go Report Card License

Custom Pod Autoscaler Operator

This is the operator for managing Custom Pod Autoscalers (CPA). This allows you to add your own CPAs to the cluster to manage autoscaling deployments, enabling this is a requirement before you can add your own CPAs.

Installation

See the install guide to see more in depth installation options, such as namespace specific installs and installation using kubectl.

Quick start

Run this to install the Operator and Custom Pod Autoscaler definition with cluster-wide scope on your cluster:

VERSION=v1.4.2
HELM_CHART=custom-pod-autoscaler-operator
helm install ${HELM_CHART} https://github.com/jthomperoo/custom-pod-autoscaler-operator/releases/download/${VERSION}/custom-pod-autoscaler-operator-${VERSION}.tgz

Usage

See the usage guide to see some simple usage options. For more indepth examples, check out the Custom Pod Autoscaler repo.

Developing

Developing this project requires these dependencies:

  • Go == 1.18

See the contributing guide for more information about how you can develop and contribute to this project.

Commands

  • make - builds the operator binary.
  • make docker - build the docker image for the operator.
  • make lint - lints the codebase.
  • make format - formats the codebase, must be run to pass the CI.
  • make test - runs the Go tests.
  • make generate - generates boilerplate and YAML config for the operator.
  • make view_coverage - opens up any generated coverage reports in the browser.