Documentation ¶
Index ¶
- Constants
- func CheckOwnerReference(owner, object metav1.Object) bool
- func GetKubeStateMetricsConfName(dcaConf *datadoghqv1alpha1.DatadogAgent) string
- func SetOwnerReference(owner, object metav1.Object, scheme *runtime.Scheme) error
- type BuilderOptions
- type EnvVarBuilder
- type Reconciler
- type ReconcilerOptions
- type VolumeBuilder
- type VolumeMountBuilder
Constants ¶
const ( // FieldPathSpecNodeName used as FieldPath for selecting the NodeName FieldPathSpecNodeName = "spec.nodeName" // FieldPathStatusHostIP used as FieldPath to retrieve the host ip FieldPathStatusHostIP = "status.hostIP" // FieldPathStatusPodIP used as FieldPath to retrieve the pod ip FieldPathStatusPodIP = "status.podIP" // FieldPathMetaName used as FieldPath to retrieve the pod name FieldPathMetaName = "metadata.name" )
const ( // SystemProbeConfigMapSuffixName SystemProbe Config configmap name SystemProbeConfigMapSuffixName = "system-probe-config" // SystemProbeAgentSecurityConfigMapSuffixName AgentSecurity configmap name SystemProbeAgentSecurityConfigMapSuffixName = "system-probe-seccomp" )
Variables ¶
This section is empty.
Functions ¶
func CheckOwnerReference ¶ added in v0.6.0
CheckOwnerReference return true if owner is the owner of the object
func GetKubeStateMetricsConfName ¶
func GetKubeStateMetricsConfName(dcaConf *datadoghqv1alpha1.DatadogAgent) string
GetKubeStateMetricsConfName get the name of the Configmap for the KSM Core check.
Types ¶
type BuilderOptions ¶ added in v0.7.0
type BuilderOptions struct {
AllowOverride bool
}
BuilderOptions corresponds to Builders options.
func DefaultBuilderOptions ¶ added in v0.7.0
func DefaultBuilderOptions() BuilderOptions
DefaultBuilderOptions returns a default BuilderOptions instance.
type EnvVarBuilder ¶ added in v0.7.0
type EnvVarBuilder struct {
// contains filtered or unexported fields
}
EnvVarBuilder used to generate a list of EnvVar.
func NewEnvVarsBuilder ¶ added in v0.7.0
func NewEnvVarsBuilder(envVars []corev1.EnvVar, opts *BuilderOptions) *EnvVarBuilder
NewEnvVarsBuilder returns a new EnvVarsBuilder instance.
func (*EnvVarBuilder) Add ¶ added in v0.7.0
func (b *EnvVarBuilder) Add(iEnvVar *corev1.EnvVar) *EnvVarBuilder
Add used to add an EnvVar to the EnvVarBuilder.
func (*EnvVarBuilder) Build ¶ added in v0.7.0
func (b *EnvVarBuilder) Build() []corev1.EnvVar
Build return the generated EnvVar list.
func (*EnvVarBuilder) Remove ¶ added in v0.7.0
func (b *EnvVarBuilder) Remove(volumeName string) *EnvVarBuilder
Remove used to remove an EnvVar to the EnvVarBuilder.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler is the internal reconciler for Datadog Agent
func NewReconciler ¶
func NewReconciler(options ReconcilerOptions, client client.Client, versionInfo *version.Info, scheme *runtime.Scheme, log logr.Logger, recorder record.EventRecorder, metricForwarder datadog.MetricForwardersManager) (*Reconciler, error)
NewReconciler returns a reconciler for DatadogAgent
type ReconcilerOptions ¶
ReconcilerOptions provides options read from command line
type VolumeBuilder ¶ added in v0.7.0
type VolumeBuilder struct {
// contains filtered or unexported fields
}
VolumeBuilder used to generate a list of Volume.
func NewVolumeBuilder ¶ added in v0.7.0
func NewVolumeBuilder(volumes []corev1.Volume, opts *BuilderOptions) *VolumeBuilder
NewVolumeBuilder returns a new VolumeBuilder instance.
func (*VolumeBuilder) Add ¶ added in v0.7.0
func (b *VolumeBuilder) Add(iVolume *corev1.Volume) *VolumeBuilder
Add used to add an Volume to the VolumeBuilder.
func (*VolumeBuilder) Build ¶ added in v0.7.0
func (b *VolumeBuilder) Build() []corev1.Volume
Build used to generate a list of Volume.
func (*VolumeBuilder) Remove ¶ added in v0.7.0
func (b *VolumeBuilder) Remove(volumeName string) *VolumeBuilder
Remove used to remove an Volume from the VolumeBuilder.
type VolumeMountBuilder ¶ added in v0.7.0
type VolumeMountBuilder struct {
// contains filtered or unexported fields
}
VolumeMountBuilder used to generate a list of VolumeMount.
func NewVolumeMountBuilder ¶ added in v0.7.0
func NewVolumeMountBuilder(volumeMounts []corev1.VolumeMount, opts *BuilderOptions) *VolumeMountBuilder
NewVolumeMountBuilder returns a new VolumeMountBuilder instance.
func (*VolumeMountBuilder) Add ¶ added in v0.7.0
func (b *VolumeMountBuilder) Add(iVolumeMount *corev1.VolumeMount) *VolumeMountBuilder
Add used to add an VolumeMount to the VolumeMountBuilder.
func (*VolumeMountBuilder) Build ¶ added in v0.7.0
func (b *VolumeMountBuilder) Build() []corev1.VolumeMount
Build used to generate a list of VolumeMount
func (*VolumeMountBuilder) Remove ¶ added in v0.7.0
func (b *VolumeMountBuilder) Remove(volumeName string) *VolumeMountBuilder
Remove used to remove an VolumeMount from the VolumeMountBuilder.
Source Files ¶
- agent.go
- agent_rbac.go
- builder.go
- clusteragent.go
- clusteragent_metricsserver.go
- clusterchecksrunner.go
- clusterchecksrunner_rbac.go
- common_configmap.go
- common_networkpolicy.go
- common_rbac.go
- const.go
- controller.go
- event.go
- finalizer.go
- kubestatemetrics.go
- poddisruptionbudget.go
- secret.go
- secret_agent.go
- secret_clusteragent.go
- service.go
- systemprobe.go
- utils.go
- utils_kubelet.go