hpatrait

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindHPA         = "HorizontalPodAutoscaler"
	KindDeployment  = "Deployment"
	KindStatefulSet = "StatefulSet"

	GVKDeployment  = "apps/v1, Kind=Deployment"
	GVKStatefulSet = "apps/v1, Kind=StatefulSet"

	LabelKey = "hpatrait.oam.crossplane.io"
)

Variables

View Source
var (
	GroupVersionHPA = v2beta1.SchemeGroupVersion.String()
)

Functions

func Setup

func Setup(mgr ctrl.Manager, args controller.Args, log logging.Logger) error

Setup adds a controller that reconciles ContainerizedWorkload.

Types

type Reconciler

type Reconciler struct {
	client.Client
	discovery.DiscoveryClient

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a ManualScalarTrait object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=core.oam.dev,resources=horizontalpodautoscalertraits,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core.oam.dev,resources=horizontalpodautoscalertraits/status,verbs=get;update;patch +kubebuilder:rbac:groups=core.oam.dev,resources=workloaddefinitions,verbs=get;list;watch +kubebuilder:rbac:groups=core.oam.dev,resources=containerizedworkloads/status,verbs=get; +kubebuilder:rbac:groups=core.oam.dev,resources=containerizedworkloads,verbs=get;list;watch;update;patch;delete +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;update;patch;delete +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;update;patch;delete +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager to setup k8s controller.

Jump to

Keyboard shortcuts

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