dynakube

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Proxy        = "proxy"
	Certificates = "certs"
)
View Source
const (

	// EnvVarDisableActiveGateUpdates is an internal environment variable to disable ActiveGate updates, since there is
	// no documented way to do so otherwise.
	EnvVarDisableActiveGateUpdates = "OPERATOR_ACTIVEGATE_DISABLE_UPDATES"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, _ string) error

func BuildDynatraceClient

func BuildDynatraceClient(rtc client.Client, instance *dynatracev1alpha1.DynaKube, secret *corev1.Secret) (dtclient.Client, error)

BuildDynatraceClient creates a new Dynatrace client using the settings configured on the given instance.

Types

type DynatraceClientFunc

type DynatraceClientFunc func(rtc client.Client, instance *dynatracev1alpha1.DynaKube, secret *corev1.Secret) (dtclient.Client, error)

func StaticDynatraceClient

func StaticDynatraceClient(c dtclient.Client) DynatraceClientFunc

StaticDynatraceClient creates a DynatraceClientFunc always returning c.

type DynatraceClientReconciler

type DynatraceClientReconciler struct {
	Client              client.Client
	DynatraceClientFunc DynatraceClientFunc
	Now                 metav1.Time
	UpdatePaaSToken     bool
	UpdateAPIToken      bool
}

func (*DynatraceClientReconciler) Reconcile

type ReconcileDynaKube

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

ReconcileActiveGate reconciles a DynaKube object

func NewDynaKubeReconciler

func NewDynaKubeReconciler(c client.Client, apiReader client.Reader, scheme *runtime.Scheme, dtcBuildFunc DynatraceClientFunc, logger logr.Logger, config *rest.Config) *ReconcileDynaKube

func NewReconciler

func NewReconciler(mgr manager.Manager) *ReconcileDynaKube

NewReconciler returns a new ReconcileActiveGate

func (*ReconcileDynaKube) Reconcile

func (r *ReconcileDynaKube) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a DynaKube object and makes changes based on the state read and what is in the DynaKube.Spec 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 (*ReconcileDynaKube) SetupWithManager

func (r *ReconcileDynaKube) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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