reconcilerevent

package
v0.0.0-...-af52fa7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

The events represented by this package serve *two* purposes. Internally they are used to inform different parts of the operator what previous parts have done, and externally they are published as Kubernetes events.

Index

Constants

View Source
const (
	K8sEventTypeNormal  = "Normal"
	K8sEventTypeWarning = "Warning"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupFailed

type BackupFailed struct {
	For runtime.Object
}

BackupFailed is an event generated when the backup has failed.

func (*BackupFailed) Record

func (o *BackupFailed) Record(recorder record.EventRecorder)

type BackupSucceeded

type BackupSucceeded struct {
	For runtime.Object
}

BackupSucceeded is an event generated when the backup has succeeded.

func (*BackupSucceeded) Record

func (o *BackupSucceeded) Record(recorder record.EventRecorder)

type MemberAddedEvent

type MemberAddedEvent struct {
	Object runtime.Object
	Member *etcdclient.Member
	Name   string
}

func (*MemberAddedEvent) Record

func (s *MemberAddedEvent) Record(recorder record.EventRecorder)

type MemberRemovedEvent

type MemberRemovedEvent struct {
	Object runtime.Object
	Member *etcdclient.Member
	Name   string
}

func (*MemberRemovedEvent) Record

func (s *MemberRemovedEvent) Record(recorder record.EventRecorder)

type ObjectCreatedEvent

type ObjectCreatedEvent struct {
	Log    logr.Logger
	For    runtime.Object
	Object runtime.Object
}

ObjectCreatedEvent is recorded each time the controller successfully creates a new API resource. It performs runtime inspection of the supplied object in order to log kind, group and name of the object.

func (*ObjectCreatedEvent) Record

func (o *ObjectCreatedEvent) Record(recorder record.EventRecorder)

type PeerCreatedEvent

type PeerCreatedEvent struct {
	Object   runtime.Object
	PeerName string
}

func (*PeerCreatedEvent) Record

func (s *PeerCreatedEvent) Record(recorder record.EventRecorder)

type PeerRemovedEvent

type PeerRemovedEvent struct {
	Object   runtime.Object
	PeerName string
}

func (*PeerRemovedEvent) Record

func (s *PeerRemovedEvent) Record(recorder record.EventRecorder)

type ReconcilerEvent

type ReconcilerEvent interface {

	// Record this into an event recorder as a Kubernetes API event
	Record(recorder record.EventRecorder)
}

ReconcilerEvent represents the action of the operator having actually done anything. Any meaningful change should result in one of these.

type ServiceCreatedEvent

type ServiceCreatedEvent struct {
	Object      runtime.Object
	ServiceName string
}

func (*ServiceCreatedEvent) Record

func (s *ServiceCreatedEvent) Record(recorder record.EventRecorder)

Jump to

Keyboard shortcuts

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