Documentation ¶
Index ¶
Constants ¶
const ( KindHPA = "HorizontalPodAutoscaler" KindDeployment = "Deployment" KindStatefulSet = "StatefulSet" GVKDeployment = "apps/v1, Kind=Deployment" GVKStatefulSet = "apps/v1, Kind=StatefulSet" LabelKey = "hpatrait.oam.crossplane.io" )
Variables ¶
var (
GroupVersionHPA = v2beta1.SchemeGroupVersion.String()
)
Functions ¶
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 ¶
+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.