sensor

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 28 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// ControllerName is name of the controller
	ControllerName = "sensor-controller"
)

Variables

This section is empty.

Functions

func NewReconciler added in v0.17.0

func NewReconciler(client client.Client, scheme *runtime.Scheme, sensorImage string, logger *zap.SugaredLogger) reconcile.Reconciler

NewReconciler returns a new reconciler

func Reconcile added in v0.17.0

func Reconcile(client client.Client, eventBus *eventbusv1alpha1.EventBus, args *AdaptorArgs, logger *zap.SugaredLogger) error

Reconcile does the real logic

func ValidateSensor

func ValidateSensor(s *v1alpha1.Sensor, b *eventbusv1alpha1.EventBus) error

ValidateSensor accepts a sensor and performs validation against it we return an error so that it can be logged as a message on the sensor status the error is ignored by the operation context as subsequent re-queues would produce the same error. Exporting this function so that external APIs can use this to validate sensor resource.

Types

type AdaptorArgs added in v0.17.0

type AdaptorArgs struct {
	Image  string
	Sensor *v1alpha1.Sensor
	Labels map[string]string
}

AdaptorArgs are the args needed to create a sensor deployment

Jump to

Keyboard shortcuts

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