controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WatchingResourcesCount = prometheus.NewGauge(prometheus.GaugeOpts{
	Name: "heimdall_watching_resource_count",
	Help: "Number of resources being watched by Heimdall",
})

Functions

func NewMetrics added in v0.6.0

func NewMetrics()

Types

type ConsumerHandler added in v1.0.0

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

func (*ConsumerHandler) Cleanup added in v1.0.0

Cleanup Necessary for Consumer Groups

func (*ConsumerHandler) ConsumeClaim added in v1.0.0

func (*ConsumerHandler) Setup added in v1.0.0

Setup Necessary for Consumer Groups

type Controller

type Controller struct {
	Client client.Client
	Scheme *runtime.Scheme
}

func (*Controller) InitializeController

func (c *Controller) InitializeController(mgr manager.Manager, requiredLabel string) error

InitializeController Add +kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch

func (*Controller) Reconcile

Reconcile Placeholder for now as we don't need a traditional reconcile loop

func (*Controller) ReconcileNotificationCadence added in v0.5.0

func (c *Controller) ReconcileNotificationCadence(resource *u.Unstructured, url string, priority string, settings v1.ConfigMap, resources v1.ConfigMap, secret v1.Secret) error

func (*Controller) ResourceReconcile added in v1.0.0

func (c *Controller) ResourceReconcile(ctx context.Context, resource *u.Unstructured) (reconcile.Result, error)

func (*Controller) WatchResources

func (c *Controller) WatchResources(discoveryClient *discovery.DiscoveryClient, dynamicClient dynamic.Interface, requiredLabel string) error

type ResourceDetails added in v1.0.0

type ResourceDetails struct {
	MessageID uuid.UUID
	Name      string
	Namespace string
	Kind      string
	Group     string
	Version   string
	Resource  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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