Skip to content

Commit

Permalink
Introducing defaulting logic (#324)
Browse files Browse the repository at this point in the history
* Generating crds/apis. 
* Updating plugins, types, default logic, main controller loop, licenses. 
* Updating logic to default the main agent, cluster agent, cluster check runners, default features. 
* Add tests, logic to patch features. repackage default vars.
  • Loading branch information
Charly Fontaine committed Jun 30, 2021
1 parent 61f5b48 commit 2b31269
Show file tree
Hide file tree
Showing 44 changed files with 25,244 additions and 1,241 deletions.
4 changes: 2 additions & 2 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ core,"github.com/beorn7/perks/quantile",MIT
core,"github.com/cenkalti/backoff",MIT
core,"github.com/cespare/xxhash/v2",MIT
core,"github.com/davecgh/go-spew/spew",ISC
core,"github.com/docker/spdystream",Apache-2.0
core,"github.com/docker/spdystream/spdy",Apache-2.0
core,"github.com/dsnet/compress",FreeBSD
core,"github.com/dsnet/compress/bzip2",FreeBSD
core,"github.com/dsnet/compress/bzip2/internal/sais",FreeBSD
Expand Down Expand Up @@ -95,6 +93,8 @@ core,"github.com/mailru/easyjson/jwriter",MIT
core,"github.com/mattn/go-runewidth",MIT
core,"github.com/matttproud/golang_protobuf_extensions/pbutil",Apache-2.0
core,"github.com/mholt/archiver/v3",MIT
core,"github.com/moby/spdystream",Apache-2.0
core,"github.com/moby/spdystream/spdy",Apache-2.0
core,"github.com/modern-go/concurrent",Apache-2.0
core,"github.com/modern-go/reflect2",Apache-2.0
core,"github.com/nwaples/rardecode",FreeBSD
Expand Down
26 changes: 0 additions & 26 deletions api/v1alpha1/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ const (
ClusterAgentCustomConfigVolumePath = "/etc/datadog-agent/datadog-cluster.yaml"
ClusterAgentCustomConfigVolumeSubPath = "datadog-cluster.yaml"

DefaultSystemProbeSecCompRootPath = "/var/lib/kubelet/seccomp"
DefaultAppArmorProfileName = "unconfined"
DefaultSeccompProfileName = "localhost/system-probe"
SysteProbeAppArmorAnnotationKey = "container.apparmor.security.beta.kubernetes.io/system-probe"
SysteProbeSeccompAnnotationKey = "container.seccomp.security.alpha.kubernetes.io/system-probe"
SystemProbeOSReleaseDirVolumeName = "host-osrelease"
Expand All @@ -225,29 +222,6 @@ const (
KubeEndpointsListener = "kube_endpoints"
KubeServicesAndEndpointsListeners = "kube_services kube_endpoints"

// Liveness probe default config

DefaultLivenessProbeInitialDelaySeconds int32 = 15
DefaultLivenessProbePeriodSeconds int32 = 15
DefaultLivenessProbeTimeoutSeconds int32 = 5
DefaultLivenessProbeSuccessThreshold int32 = 1
DefaultLivenessProbeFailureThreshold int32 = 6
DefaultAgentHealthPort int32 = 5555
DefaultLivenessProbeHTTPPath = "/live"

// Readiness probe default config

DefaultReadinessProbeInitialDelaySeconds int32 = 15
DefaultReadinessProbePeriodSeconds int32 = 15
DefaultReadinessProbeTimeoutSeconds int32 = 5
DefaultReadinessProbeSuccessThreshold int32 = 1
DefaultReadinessProbeFailureThreshold int32 = 6
DefaultReadinessProbeHTTPPath = "/ready"

// APM default values

DefaultAPMAgentTCPPort int32 = 8126

// Consts used to setup Rbac config
// API Groups

Expand Down

0 comments on commit 2b31269

Please sign in to comment.