wavefrontproxy

package
v0.0.0-...-1210ca6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new WavefrontProxy 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 InternalWavefrontProxy

type InternalWavefrontProxy struct {

	// -----Wavefront Proxy Deployment related.----- //
	// The container ports required to be opened up for wavefront proxy
	ContainerPorts    []corev1.ContainerPort
	ContainerPortsMap map[string]corev1.ContainerPort

	// The Environment args that need to be set for wavefront proxy
	EnvWavefrontProxyArgs string

	// ------Wavefront Proxy Service related.------ //
	// The container ports required to be opened up for wavefront proxy service.
	ServicePorts    []corev1.ServicePort
	ServicePortsMap map[string]corev1.ServicePort
	// contains filtered or unexported fields
}

Internal Wavefront Proxy struct contains the actual desired instance plus other runtime objects as first class spec configs used during create/update of Container deployments/pod/services. This provides an interface to synchronize between spec parameters like Ports which have different constructs for different k8s types but are essentially the same. Change in Pod port => Change in Svc port but not vice versa.

type ReconcileWavefrontProxy

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

ReconcileWavefrontProxy reconciles a WavefrontProxy object

func (*ReconcileWavefrontProxy) Reconcile

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

Jump to

Keyboard shortcuts

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