standalone

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoHostTenant                  = "-"
	ContainerConfFilenameTemplate = "container_%s.conf"
	SecretConfigFieldName         = "config"

	// Env Vars
	InstallerMode InstallMode = "installer"
	CsiMode       InstallMode = "csi"

	ModeEnv         = "MODE"
	CanFailEnv      = "FAILURE_POLICY"
	InstallerUrlEnv = "INSTALLER_URL"

	InstallerFlavorEnv = "FLAVOR"
	InstallerTechEnv   = "TECHNOLOGIES"
	InstallerArchEnv   = "ARCH"

	K8NodeNameEnv    = "K8S_NODE_NAME"
	K8PodNameEnv     = "K8S_PODNAME"
	K8PodUIDEnv      = "K8S_PODUID"
	K8BasePodNameEnv = "K8S_BASEPODNAME"
	K8NamespaceEnv   = "K8S_NAMESPACE"

	WorkloadKindEnv = "DT_WORKLOAD_KIND"
	WorkloadNameEnv = "DT_WORKLOAD_NAME"

	InstallPathEnv            = "INSTALLPATH"
	ContainerCountEnv         = "CONTAINERS_COUNT"
	ContainerNameEnvTemplate  = "CONTAINER_%d_NAME"
	ContainerImageEnvTemplate = "CONTAINER_%d_IMAGE"

	OneAgentInjectedEnv   = "ONEAGENT_INJECTED"
	DataIngestInjectedEnv = "DATA_INGEST_INJECTED"
)

Variables

View Source
var (

	// Mount Path
	BinDirMount    = filepath.Join("mnt", "bin")
	ShareDirMount  = filepath.Join("mnt", "share")
	ConfigDirMount = filepath.Join("mnt", "config")

	EnrichmentPath = filepath.Join("var", "lib", "dynatrace", "enrichment")
)

Functions

This section is empty.

Types

type InstallMode

type InstallMode string

type Runner

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

func NewRunner

func NewRunner(fs afero.Fs) (*Runner, error)

func (*Runner) Run

func (runner *Runner) Run() error

type SecretConfig

type SecretConfig struct {
	// For the client
	ApiUrl        string `json:"apiUrl"`
	ApiToken      string `json:"apiToken"`
	PaasToken     string `json:"paasToken"`
	Proxy         string `json:"proxy"`
	NetworkZone   string `json:"networkZone"`
	TrustedCAs    string `json:"trustedCAs"`
	SkipCertCheck bool   `json:"skipCertCheck"`

	// For the injection
	TenantUUID      string            `json:"tenantUUID"`
	HasHost         bool              `json:"hasHost"`
	MonitoringNodes map[string]string `json:"monitoringNodes"`
	TlsCert         string            `json:"tlsCert"`
	HostGroup       string            `json:"hostGroup"`

	// For the enrichment
	ClusterID string `json:"clusterID"`
}

Jump to

Keyboard shortcuts

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