This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
/
config.go
52 lines (38 loc) · 2.51 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package webhook
const (
// LabelInstance can be set in a Namespace and indicates the corresponding OneAgentAPM object assigned to it.
LabelInstance = "oneagent.dynatrace.com/instance"
// AnnotationInject can be set at pod or namespace label to enable/disable injection, where at pod level has higher
// priority.
AnnotationInject = "oneagent.dynatrace.com/inject"
// AnnotationInjected is set to "true" by the webhook to Pods to indicate that it has been modified.
AnnotationInjected = "oneagent.dynatrace.com/injected"
// AnnotationFlavor can be set on a Pod to configure which code modules flavor to download. It's set to "default"
// if not set.
AnnotationFlavor = "oneagent.dynatrace.com/flavor"
// AnnotationTechnologies can be set on a Pod to configure which code module technologies to download. It's set to
// "all" if not set.
AnnotationTechnologies = "oneagent.dynatrace.com/technologies"
// AnnotationInstallPath can be set on a Pod to configure on which directory the OneAgent will be available from,
// defaults to DefaultInstallPath if not set.
AnnotationInstallPath = "oneagent.dynatrace.com/install-path"
// AnnotationInstallerUrl can be set on a Pod to configure the installer url for downloading the agent
// defaults to the PaaS installer download url of your tenant
AnnotationInstallerUrl = "oneagent.dynatrace.com/installer-url"
// AnnotationFailurePolicy can be set on a Pod to control what the init container does on failures. When set to
// "fail", the init container will exit with error code 1. Defaults to "silent".
AnnotationFailurePolicy = "oneagent.dynatrace.com/failure-policy"
// AnnotationImage can be set on a Pod to configure OneAgent image to use
// defaults to the image defined in the CustomResource
AnnotationImage = "oneagent.dynatrace.com/image"
// DefaultInstallPath is the default directory to install the app-only OneAgent package.
DefaultInstallPath = "/opt/dynatrace/oneagent-paas"
// SecretConfigName is the name of the secret where the Operator replicates the config data.
SecretConfigName = "dynatrace-oneagent-config"
// PullSecretName is the name of the pullsecret for getting the image from the Dynatrace environment
PullSecretName = "dynatrace-oneagent-pull-secret"
// SecretCertsName is the name of the secret where the webhook certificates are stored.
SecretCertsName = "dynatrace-oneagent-webhook-certs"
// ServiceName is the name used for the webhook's corresponding Service and MutatingWebhookConfiguration objects.
ServiceName = "dynatrace-oneagent-webhook"
)