handlers

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaprHandler

type DaprHandler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

DaprHandler handles the lifetime for Dapr CRDs.

func NewDaprHandler

func NewDaprHandler(mgr ctrl.Manager) *DaprHandler

NewDaprHandler returns a new Dapr handler.

func (*DaprHandler) Init

func (h *DaprHandler) Init() error

Init allows for various startup tasks.

type DeploymentWrapper added in v1.6.0

type DeploymentWrapper struct {
	appsv1.Deployment
}

func (*DeploymentWrapper) GetMatchLabels added in v1.6.0

func (d *DeploymentWrapper) GetMatchLabels() map[string]string

func (*DeploymentWrapper) GetObject added in v1.6.0

func (d *DeploymentWrapper) GetObject() client.Object

func (*DeploymentWrapper) GetTemplateAnnotations added in v1.6.0

func (d *DeploymentWrapper) GetTemplateAnnotations() map[string]string

type ObjectWrapper added in v1.6.0

type ObjectWrapper interface {
	GetMatchLabels() map[string]string
	GetTemplateAnnotations() map[string]string
	GetObject() client.Object
}

type Reconciler added in v1.6.0

type Reconciler struct {
	*DaprHandler
	// contains filtered or unexported fields
}

func (*Reconciler) Reconcile added in v1.6.0

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

Reconcile the expected services for deployments | statefulset annotated for Dapr.

type StatefulSetWrapper added in v1.6.0

type StatefulSetWrapper struct {
	appsv1.StatefulSet
}

func (*StatefulSetWrapper) GetMatchLabels added in v1.6.0

func (s *StatefulSetWrapper) GetMatchLabels() map[string]string

func (*StatefulSetWrapper) GetObject added in v1.6.0

func (s *StatefulSetWrapper) GetObject() client.Object

func (*StatefulSetWrapper) GetTemplateAnnotations added in v1.6.0

func (s *StatefulSetWrapper) GetTemplateAnnotations() map[string]string

Jump to

Keyboard shortcuts

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