Documentation
¶
Index ¶
- Constants
- func MountAttemptsToTimeout(maxAttempts int) string
- type FeatureFlags
- func (ff *FeatureFlags) AGIgnoresProxy() booldeprecated
- func (ff *FeatureFlags) DisableMetadataEnrichment() booldeprecated
- func (ff *FeatureFlags) GetAgentInitialConnectRetry(isIstio bool) int
- func (ff *FeatureFlags) GetApiRequestThreshold() time.Durationdeprecated
- 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) IgnoreUnknownState() 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) IsCSIVolumeReadOnly() bool
- func (ff *FeatureFlags) IsEnforcementMode() 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: AGDisableUpdatesKey use AnnotationFeatureActiveGateUpdates instead. AGDisableUpdatesKey = FFPrefix + "disable-activegate-updates" // Deprecated: Use NoProxy instead. AGIgnoreProxyKey = FFPrefix + "activegate-ignore-proxy" 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" CSIReadOnlyVolumeKey = FFPrefix + "injection-readonly-volume" )
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" InjectionIgnoreUnknownStateKey = FFPrefix + "ignore-unknown-state" InjectionIgnoredNamespacesKey = FFPrefix + "ignored-namespaces" InjectionAutomaticKey = FFPrefix + "automatic-injection" InjectionLabelVersionDetectionKey = FFPrefix + "label-version-detection" InjectionFailurePolicyKey = FFPrefix + "injection-failure-policy" InjectionSeccompKey = FFPrefix + "init-container-seccomp-profile" InjectionEnforcementModeKey = FFPrefix + "enforcement-mode" )
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) GetAgentInitialConnectRetry ¶
func (ff *FeatureFlags) GetAgentInitialConnectRetry(isIstio bool) int
GetAgentInitialConnectRetry is a feature flag to configure startup delay of standalone agents.
func (*FeatureFlags) GetApiRequestThreshold
deprecated
func (ff *FeatureFlags) GetApiRequestThreshold() time.Duration
Deprecated: Dedicated field since v1beta2.
func (*FeatureFlags) GetAutomaticK8sApiMonitoringClusterName ¶
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) IgnoreUnknownState ¶
func (ff *FeatureFlags) IgnoreUnknownState() bool
IgnoreUnknownState is a feature flag that makes the operator inject into applications even when the dynakube is in an UNKNOWN state, this may cause extra host to appear in the tenant for each process.
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 ¶
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) IsCSIVolumeReadOnly ¶
func (ff *FeatureFlags) IsCSIVolumeReadOnly() bool
func (*FeatureFlags) IsEnforcementMode ¶
func (ff *FeatureFlags) IsEnforcementMode() bool
IsEnforcementMode is a feature flag to control how the initContainer sets the tenantUUID to the container.conf file (always vs if oneAgent is present).
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