connectioninfo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TenantTokenName            = "tenant-token"
	CommunicationEndpointsName = "communication-endpoints"
	TenantUUIDName             = "tenant-uuid"

	TokenBasePath         = "/var/lib/dynatrace/secrets/tokens"
	TenantTokenMountPoint = TokenBasePath + "/tenant-token"

	TenantSecretVolumeName = "connection-info-secret"

	EnvDtServer = "DT_SERVER"
	EnvDtTenant = "DT_TENANT"
)
View Source
const (
	DefaultHttpPort = uint32(80)
)

Variables

View Source
var NoOneAgentCommunicationHostsError = errors.New("no communication hosts for OneAgent are available")

Functions

func GetActiveGateEndpointsAsCommunicationHosts

func GetActiveGateEndpointsAsCommunicationHosts(dynakube *dynatracev1beta1.DynaKube) []dtclient.CommunicationHost

func GetOneAgentCommunicationHosts

func GetOneAgentCommunicationHosts(dynakube *dynatracev1beta1.DynaKube) []dtclient.CommunicationHost

func GetPortOrDefault

func GetPortOrDefault(u *url.URL, defaultPort uint32) (uint32, error)

Types

type Reconciler

type Reconciler interface {
	ReconcileActiveGate(ctx context.Context, dynakube *dynatracev1beta1.DynaKube) error
	ReconcileOneAgent(ctx context.Context, dynakube *dynatracev1beta1.DynaKube) error
}

func NewReconciler

func NewReconciler(clt client.Client, apiReader client.Reader, scheme *runtime.Scheme, dtc dtclient.Client) Reconciler

type ReconcilerBuilder added in v1.0.0

type ReconcilerBuilder func(clt client.Client, apiReader client.Reader, scheme *runtime.Scheme, dtc dtclient.Client) Reconciler

Jump to

Keyboard shortcuts

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