Documentation
¶
Index ¶
- Constants
- func MountAttemptsToTimeout(maxAttempts int) string
- type FeatureFlags
- func (ff *FeatureFlags) AGIgnoresProxy() booldeprecated
- func (ff *FeatureFlags) DisableMetadataEnrichment() booldeprecated
- func (ff *FeatureFlags) GetAPIRequestThreshold() time.Durationdeprecated
- func (ff *FeatureFlags) GetAgentInitialConnectRetry(isIstio bool) int
- func (ff *FeatureFlags) GetAutomaticK8sAPIMonitoringClusterName() string
- func (ff *FeatureFlags) GetCSIMaxFailedMountAttempts() int
- func (ff *FeatureFlags) GetCSIMaxRetryTimeout() time.Duration
- func (ff *FeatureFlags) GetIgnoredNamespaces(ns string) []string
- func (ff *FeatureFlags) GetInjectionFailurePolicy() string
- func (ff *FeatureFlags) GetNoProxy() string
- func (ff *FeatureFlags) GetNodeImagePullTechnology() string
- func (ff *FeatureFlags) GetOneAgentMaxUnavailable() int
- func (ff *FeatureFlags) GetOneAgentSecCompProfile() stringdeprecated
- func (ff *FeatureFlags) HasInitSeccomp() bool
- func (ff *FeatureFlags) IsActiveGateAppArmor() bool
- func (ff *FeatureFlags) IsActiveGateAutomaticTLSCertificate() bool
- func (ff *FeatureFlags) IsActiveGateUpdatesDisabled() bool
- func (ff *FeatureFlags) IsAutomaticInjection() bool
- func (ff *FeatureFlags) IsAutomaticK8sAPIMonitoring() bool
- func (ff *FeatureFlags) IsK8sAppEnabled() bool
- func (ff *FeatureFlags) IsLabelVersionDetection() bool
- func (ff *FeatureFlags) IsNodeImagePull() bool
- func (ff *FeatureFlags) IsOneAgentPrivileged() bool
- func (ff *FeatureFlags) IsPublicRegistry() bool
- func (ff *FeatureFlags) OneAgentIgnoresProxy() booldeprecated
- func (ff *FeatureFlags) SkipOneAgentLivenessProbe() bool
Constants ¶
const ( // Deprecated: Auto-update is enabled unless version or image is defined. AGDisableUpdatesKey = FFPrefix + "disable-activegate-updates" // Deprecated: Use NoProxy instead. AGIgnoreProxyKey = FFPrefix + "activegate-ignore-proxy" // Deprecated: Auto-update is enabled unless version or image is defined. AGUpdatesKey = FFPrefix + "activegate-updates" AGAppArmorKey = FFPrefix + "activegate-apparmor" AGAutomaticK8sAPIMonitoringKey = FFPrefix + "automatic-kubernetes-api-monitoring" AGAutomaticK8sAPIMonitoringClusterNameKey = FFPrefix + "automatic-kubernetes-api-monitoring-cluster-name" AGK8sAppEnabledKey = FFPrefix + "k8s-app-enabled" AGAutomaticTLSCertificateKey = FFPrefix + "automatic-tls-certificate" )
const ( CSIMaxFailedMountAttemptsKey = FFPrefix + "max-csi-mount-attempts" CSIMaxMountTimeoutKey = FFPrefix + "max-csi-mount-timeout" )
const ( DefaultCSIMaxMountTimeout = "10m" DefaultCSIMaxFailedMountAttempts = 10 )
const ( FFPrefix = "feature.dynatrace.com/" PublicRegistryKey = FFPrefix + "public-registry" NoProxyKey = FFPrefix + "no-proxy" // Deprecated: Dedicated field since v1beta2. APIRequestThresholdKey = FFPrefix + "dynatrace-api-request-threshold" DefaultMinRequestThresholdMinutes = 15 )
const ( // Deprecated: Dedicated field since v1beta3. InjectionDisableMetadataEnrichmentKey = FFPrefix + "disable-metadata-enrichment" // Deprecated: Dedicated field since v1beta3. InjectionMetadataEnrichmentKey = FFPrefix + "metadata-enrichment" InjectionIgnoredNamespacesKey = FFPrefix + "ignored-namespaces" InjectionAutomaticKey = FFPrefix + "automatic-injection" InjectionLabelVersionDetectionKey = FFPrefix + "label-version-detection" InjectionFailurePolicyKey = FFPrefix + "injection-failure-policy" InjectionSeccompKey = FFPrefix + "init-container-seccomp-profile" )
const ( // Deprecated: OAProxyIgnoredKey use NoProxy annotation instead. OAProxyIgnoredKey = FFPrefix + "oneagent-ignore-proxy" OAInitialConnectRetryKey = FFPrefix + "oneagent-initial-connect-retry-ms" OAPrivilegedKey = FFPrefix + "oneagent-privileged" OASkipLivenessProbeKey = FFPrefix + "oneagent-skip-liveness-probe" // Deprecated: Dedicated field since v1beta2. OASecCompProfileKey = FFPrefix + "oneagent-seccomp-profile" OANodeImagePullKey = FFPrefix + "node-image-pull" // OANodeImagePullTechnologiesKey can be set on a Pod or DynaKube to configure which code module technologies to download. It's set to // "all" if not set. OANodeImagePullTechnologiesKey = "oneagent.dynatrace.com/technologies" )
const (
DefaultOAIstioInitialConnectRetry = 6000
)
Variables ¶
This section is empty.
Functions ¶
func MountAttemptsToTimeout ¶
MountAttemptsToTimeout converts the (old) number of csi mount attempts into a time.Duration string. The converted value is based on the exponential backoff's algorithm. The output is string because it's main purpose is to convert the value of an annotation to another annotation.
Types ¶
type FeatureFlags ¶
type FeatureFlags struct {
// contains filtered or unexported fields
}
func NewFlags ¶
func NewFlags(annotations map[string]string) *FeatureFlags
func (*FeatureFlags) AGIgnoresProxy
deprecated
func (ff *FeatureFlags) AGIgnoresProxy() bool
Deprecated: Use NoProxy annotation instead. AGIgnoresProxy is a feature flag to ignore the proxy for ActiveGate when set in CR.
func (*FeatureFlags) DisableMetadataEnrichment
deprecated
func (ff *FeatureFlags) DisableMetadataEnrichment() bool
Deprecated: Dedicated field since v1beta3.
func (*FeatureFlags) GetAPIRequestThreshold
deprecated
added in
v1.7.0
func (ff *FeatureFlags) GetAPIRequestThreshold() time.Duration
Deprecated: Dedicated field since v1beta2.
func (*FeatureFlags) GetAgentInitialConnectRetry ¶
func (ff *FeatureFlags) GetAgentInitialConnectRetry(isIstio bool) int
GetAgentInitialConnectRetry is a feature flag to configure startup delay of standalone agents.
func (*FeatureFlags) GetAutomaticK8sAPIMonitoringClusterName ¶ added in v1.7.0
func (ff *FeatureFlags) GetAutomaticK8sAPIMonitoringClusterName() string
GetAutomaticK8sAPIMonitoringClusterName is a feature flag to set custom cluster name for automatic-kubernetes-api-monitoring.
func (*FeatureFlags) GetCSIMaxFailedMountAttempts ¶
func (ff *FeatureFlags) GetCSIMaxFailedMountAttempts() int
func (*FeatureFlags) GetCSIMaxRetryTimeout ¶
func (ff *FeatureFlags) GetCSIMaxRetryTimeout() time.Duration
func (*FeatureFlags) GetIgnoredNamespaces ¶
func (ff *FeatureFlags) GetIgnoredNamespaces(ns string) []string
GetIgnoredNamespaces is a feature flag for ignoring certain namespaces. defaults to "[ \"^dynatrace$\", \"^kube-.*\", \"openshift(-.*)?\" ]".
func (*FeatureFlags) GetInjectionFailurePolicy ¶
func (ff *FeatureFlags) GetInjectionFailurePolicy() string
func (*FeatureFlags) GetNoProxy ¶
func (ff *FeatureFlags) GetNoProxy() string
GetNoProxy is a feature flag to set the NO_PROXY value to be used by the dtClient.
func (*FeatureFlags) GetNodeImagePullTechnology ¶
func (ff *FeatureFlags) GetNodeImagePullTechnology() string
func (*FeatureFlags) GetOneAgentMaxUnavailable ¶
func (ff *FeatureFlags) GetOneAgentMaxUnavailable() int
GetOneAgentMaxUnavailable is a feature flag to configure maxUnavailable on the OneAgent DaemonSets rolling upgrades.
func (*FeatureFlags) GetOneAgentSecCompProfile
deprecated
func (ff *FeatureFlags) GetOneAgentSecCompProfile() string
Deprecated: Dedicated field since v1beta2.
func (*FeatureFlags) HasInitSeccomp ¶
func (ff *FeatureFlags) HasInitSeccomp() bool
func (*FeatureFlags) IsActiveGateAppArmor ¶
func (ff *FeatureFlags) IsActiveGateAppArmor() bool
IsActiveGateAppArmor is a feature flag to enable AppArmor in ActiveGate container.
func (*FeatureFlags) IsActiveGateAutomaticTLSCertificate ¶
func (ff *FeatureFlags) IsActiveGateAutomaticTLSCertificate() bool
IsActiveGateAutomaticTLSCertificate is a feature flag to disable automatic creation of ActiveGate TLS certificate.
func (*FeatureFlags) IsActiveGateUpdatesDisabled ¶
func (ff *FeatureFlags) IsActiveGateUpdatesDisabled() bool
IsActiveGateUpdatesDisabled is a feature flag to disable ActiveGate updates.
func (*FeatureFlags) IsAutomaticInjection ¶
func (ff *FeatureFlags) IsAutomaticInjection() bool
IsAutomaticInjection controls OneAgent is injected to pods in selected namespaces automatically ("automatic-injection=true" or flag not set) or if pods need to be opted-in one by one ("automatic-injection=false").
func (*FeatureFlags) IsAutomaticK8sAPIMonitoring ¶ added in v1.7.0
func (ff *FeatureFlags) IsAutomaticK8sAPIMonitoring() bool
IsAutomaticK8sAPIMonitoring is a feature flag to enable automatic kubernetes api monitoring, which ensures that settings for this kubernetes cluster exist in Dynatrace.
func (*FeatureFlags) IsK8sAppEnabled ¶
func (ff *FeatureFlags) IsK8sAppEnabled() bool
IsK8sAppEnabled is a feature flag to enable automatically enable current Kubernetes cluster for the Kubernetes app.
func (*FeatureFlags) IsLabelVersionDetection ¶
func (ff *FeatureFlags) IsLabelVersionDetection() bool
IsLabelVersionDetection is a feature flag to enable injecting additional environment variables based on user labels.
func (*FeatureFlags) IsNodeImagePull ¶
func (ff *FeatureFlags) IsNodeImagePull() bool
func (*FeatureFlags) IsOneAgentPrivileged ¶
func (ff *FeatureFlags) IsOneAgentPrivileged() bool
func (*FeatureFlags) IsPublicRegistry ¶
func (ff *FeatureFlags) IsPublicRegistry() bool
func (*FeatureFlags) OneAgentIgnoresProxy
deprecated
func (ff *FeatureFlags) OneAgentIgnoresProxy() bool
Deprecated: Use NoProxy annotation instead. OneAgentIgnoresProxy is a feature flag to ignore the proxy for oneAgents when set in CR.
func (*FeatureFlags) SkipOneAgentLivenessProbe ¶
func (ff *FeatureFlags) SkipOneAgentLivenessProbe() bool