capability

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ActiveGateContainerName = "activegate"

	ActiveGateGatewayConfigVolumeName = "ag-lib-gateway-config"
	ActiveGateGatewayTempVolumeName   = "ag-lib-gateway-temp"
	ActiveGateGatewayDataVolumeName   = "ag-lib-gateway-data"
	ActiveGateGatewaySslVolumeName    = "ag-lib-gateway-ssl"
	ActiveGateLogVolumeName           = "ag-log-gateway"
	ActiveGateTmpVolumeName           = "ag-tmp-gateway"

	ActiveGateGatewayConfigMountPoint = "/var/lib/dynatrace/gateway/config"
	ActiveGateGatewayTempMountPoint   = "/var/lib/dynatrace/gateway/temp"
	ActiveGateGatewayDataMountPoint   = "/var/lib/dynatrace/gateway/data"
	ActiveGateGatewaySslMountPoint    = "/var/lib/dynatrace/gateway/ssl"
	ActiveGateLogMountPoint           = "/var/log/dynatrace/gateway"
	ActiveGateTmpMountPoint           = "/var/tmp/dynatrace/gateway"

	HttpsServicePortName = "https"
	HttpsServicePort     = 443
	HttpServicePortName  = "http"
	HttpServicePort      = 80

	EecContainerName       = ActiveGateContainerName + "-eec"
	StatsdContainerName    = ActiveGateContainerName + "-statsd"
	StatsdIngestPortName   = "statsd"
	StatsdIngestPort       = 18125
	StatsdIngestTargetPort = "statsd-port"
)
View Source
const (
	MultiActiveGateName = "activegate"
)

Variables

This section is empty.

Functions

func CalculateStatefulSetName

func CalculateStatefulSetName(capability Capability, instanceName string) string

Types

type AgServicePorts added in v0.6.0

type AgServicePorts struct {
	Webserver bool
	Statsd    bool
}

func (AgServicePorts) HasPorts added in v0.6.0

func (ports AgServicePorts) HasPorts() bool

type Capability

type Capability interface {
	Enabled() bool
	ShortName() string
	ArgName() string
	Properties() *dynatracev1beta1.CapabilityProperties
	Config() Configuration
	InitContainersTemplates() []corev1.Container
	ContainerVolumeMounts() []corev1.VolumeMount
	Volumes() []corev1.Volume
	ShouldCreateService() bool
}

type Configuration

type Configuration struct {
	SetDnsEntryPoint       bool
	SetReadinessPort       bool
	SetCommunicationPort   bool
	ServicePorts           AgServicePorts
	CreateEecRuntimeConfig bool
	ServiceAccountOwner    string
}

type KubeMonCapability

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

Deprecated

func NewKubeMonCapability

func NewKubeMonCapability(dk *dynatracev1beta1.DynaKube) *KubeMonCapability

Deprecated

func (*KubeMonCapability) ArgName

func (c *KubeMonCapability) ArgName() string

func (*KubeMonCapability) Config

func (c *KubeMonCapability) Config() Configuration

func (*KubeMonCapability) ContainerVolumeMounts

func (c *KubeMonCapability) ContainerVolumeMounts() []corev1.VolumeMount

func (*KubeMonCapability) Enabled

func (c *KubeMonCapability) Enabled() bool

func (*KubeMonCapability) InitContainersTemplates

func (c *KubeMonCapability) InitContainersTemplates() []corev1.Container

Note: Caller must set following fields:

Image:
Resources:

func (*KubeMonCapability) Properties

func (c *KubeMonCapability) Properties() *dynatracev1beta1.CapabilityProperties

func (*KubeMonCapability) ShortName

func (c *KubeMonCapability) ShortName() string

func (*KubeMonCapability) ShouldCreateService added in v0.6.0

func (c *KubeMonCapability) ShouldCreateService() bool

func (*KubeMonCapability) Volumes

func (c *KubeMonCapability) Volumes() []corev1.Volume

type MultiCapability

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

func NewMultiCapability

func NewMultiCapability(dk *dynatracev1beta1.DynaKube) *MultiCapability

func (*MultiCapability) ArgName

func (c *MultiCapability) ArgName() string

func (*MultiCapability) Config

func (c *MultiCapability) Config() Configuration

func (*MultiCapability) ContainerVolumeMounts

func (c *MultiCapability) ContainerVolumeMounts() []corev1.VolumeMount

func (*MultiCapability) Enabled

func (c *MultiCapability) Enabled() bool

func (*MultiCapability) InitContainersTemplates

func (c *MultiCapability) InitContainersTemplates() []corev1.Container

Note: Caller must set following fields:

Image:
Resources:

func (*MultiCapability) Properties

func (c *MultiCapability) Properties() *dynatracev1beta1.CapabilityProperties

func (*MultiCapability) ShortName

func (c *MultiCapability) ShortName() string

func (*MultiCapability) ShouldCreateService added in v0.6.0

func (c *MultiCapability) ShouldCreateService() bool

func (*MultiCapability) Volumes

func (c *MultiCapability) Volumes() []corev1.Volume

type RoutingCapability

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

Deprecated

func NewRoutingCapability

func NewRoutingCapability(dk *dynatracev1beta1.DynaKube) *RoutingCapability

Deprecated

func (*RoutingCapability) ArgName

func (c *RoutingCapability) ArgName() string

func (*RoutingCapability) Config

func (c *RoutingCapability) Config() Configuration

func (*RoutingCapability) ContainerVolumeMounts

func (c *RoutingCapability) ContainerVolumeMounts() []corev1.VolumeMount

func (*RoutingCapability) Enabled

func (c *RoutingCapability) Enabled() bool

func (*RoutingCapability) InitContainersTemplates

func (c *RoutingCapability) InitContainersTemplates() []corev1.Container

Note: Caller must set following fields:

Image:
Resources:

func (*RoutingCapability) Properties

func (c *RoutingCapability) Properties() *dynatracev1beta1.CapabilityProperties

func (*RoutingCapability) ShortName

func (c *RoutingCapability) ShortName() string

func (*RoutingCapability) ShouldCreateService added in v0.6.0

func (c *RoutingCapability) ShouldCreateService() bool

func (*RoutingCapability) Volumes

func (c *RoutingCapability) Volumes() []corev1.Volume

Jump to

Keyboard shortcuts

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