dynakube

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

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

func BuildDynatraceClient

func BuildDynatraceClient(properties DynatraceClientProperties) (dtclient.Client, error)

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

Types

type DynatraceClientFunc

type DynatraceClientFunc func(properties DynatraceClientProperties) (dtclient.Client, error)

func StaticDynatraceClient

func StaticDynatraceClient(c dtclient.Client) DynatraceClientFunc

StaticDynatraceClient creates a DynatraceClientFunc always returning c.

type DynatraceClientProperties

type DynatraceClientProperties struct {
	ApiReader           client.Reader
	Secret              *corev1.Secret
	Proxy               *DynatraceClientProxy
	ApiUrl              string
	Namespace           string
	NetworkZone         string
	TrustedCerts        string
	SkipCertCheck       bool
	DisableHostRequests bool
}

func NewDynatraceClientProperties

func NewDynatraceClientProperties(ctx context.Context, apiReader client.Reader, dk dynatracev1beta1.DynaKube) (*DynatraceClientProperties, error)

type DynatraceClientProxy

type DynatraceClientProxy struct {
	Value     string
	ValueFrom string
}

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
}

ReconcileDynaKube 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 ReconcileDynaKube

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