Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( log logrus.FieldLogger, f informers.SharedInformerFactory, k8sVersion version.Version, ) *Controller
func (*Controller) AddSubscribers ¶ added in v0.41.1
func (c *Controller) AddSubscribers(subs ...ObjectSubscriber)
func (*Controller) GetPodOwnerID ¶ added in v0.41.1
func (c *Controller) GetPodOwnerID(pod *corev1.Pod) string
GetPodOwnerID returns last pod owner ID. In most cases for pod it will search for Deployment or CronJob uid if exists.
func (*Controller) NeedLeaderElection ¶ added in v0.47.2
func (c *Controller) NeedLeaderElection() bool
type ObjectSubscriber ¶
type ResourceEventHandler ¶
Click to show internal directories.
Click to hide internal directories.