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, args *AdaptorArgs, logger *zap.SugaredLogger) error
Reconcile does the real logic
func ValidateSensor ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.