barometer

package
v0.0.0-...-0a53738 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OperatorName = "UNKNOW"

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Barometer Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileBarometer

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

ReconcileBarometer reconciles a Barometer object

func (*ReconcileBarometer) CheckForConfigMap

func (r *ReconcileBarometer) CheckForConfigMap(instance *collectdv1alpha1.Barometer, reqLogger logr.Logger) ReturnValues

CheckForConfigMap ..If configmap doesn't exist , do not deploy/

func (*ReconcileBarometer) Reconcile

func (r *ReconcileBarometer) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Barometer object and makes changes based on the state read and what is in the Barometer.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*ReconcileBarometer) ReconcileConfigMap

func (r *ReconcileBarometer) ReconcileConfigMap(instance *collectdv1alpha1.Barometer, reqLogger logr.Logger) ReturnValues

ReconcileConfigMap ..DON'T use this function for now... /

func (*ReconcileBarometer) ReconcileDeployment

func (r *ReconcileBarometer) ReconcileDeployment(instance *collectdv1alpha1.Barometer, cmVersion string, reqLogger logr.Logger) ReturnValues

ReconcileDeployment ...

func (*ReconcileBarometer) ReconcileServiceAccount

func (r *ReconcileBarometer) ReconcileServiceAccount(instance *collectdv1alpha1.Barometer, reqLogger logr.Logger) ReturnValues

ReconcileServiceAccount ...

func (*ReconcileBarometer) UpdateCondition

func (r *ReconcileBarometer) UpdateCondition(instance *collectdv1alpha1.Barometer, reason string, reqLogger logr.Logger) error

UpdateCondition ...

type ReturnValues

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

ReturnValues ...

Jump to

Keyboard shortcuts

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