cronhpa

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CRD = &extensionsobj.CustomResourceDefinition{
	ObjectMeta: metav1.ObjectMeta{
		Name: "cronhpas.extensions.tkestack.io",
	},
	TypeMeta: metav1.TypeMeta{
		Kind:       "CustomResourceDefinition",
		APIVersion: "apiextensions.k8s.io/v1beta1",
	},
	Spec: extensionsobj.CustomResourceDefinitionSpec{
		Group:   "extensions.tkestack.io",
		Version: "v1",
		Scope:   extensionsobj.ResourceScope("Namespaced"),
		Names: extensionsobj.CustomResourceDefinitionNames{
			Plural:   "cronhpas",
			Singular: "cronhpa",
			Kind:     "CronHPA",
			ListKind: "CronHPAList",
		},
	},
}

Functions

func EnsureCRDCreated

func EnsureCRDCreated(client apiextensionsclient.Interface) (created bool, err error)

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is the controller implementation for cronhpa resources

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	cronhpaclientset clientset.Interface,
	rootClientBuilder controllerpkg.ControllerClientBuilder) (*Controller, error)

NewController returns a new cronhpa controller

func (*Controller) GetEventRecorder

func (c *Controller) GetEventRecorder() record.EventRecorder

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

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