-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share common structs in common/v1 and adds missing fields to v2alpha1 (…
- Loading branch information
1 parent
b9ad1fc
commit 1bca592
Showing
37 changed files
with
38,596 additions
and
15,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
package common | ||
|
||
import corev1 "k8s.io/api/core/v1" | ||
|
||
// AgentImageConfig defines the agent container image config. | ||
// +kubebuilder:object:generate=true | ||
type AgentImageConfig struct { | ||
// Define the image to use: | ||
// Use "gcr.io/datadoghq/agent:latest" for Datadog Agent 7. | ||
// Use "datadog/dogstatsd:latest" for standalone Datadog Agent DogStatsD 7. | ||
// Use "gcr.io/datadoghq/cluster-agent:latest" for Datadog Cluster Agent. | ||
// Use "agent" with the registry and tag configurations for <registry>/agent:<tag>. | ||
// Use "cluster-agent" with the registry and tag configurations for <registry>/cluster-agent:<tag>. | ||
Name string `json:"name,omitempty"` | ||
|
||
// Define the image tag to use. | ||
// To be used if the Name field does not correspond to a full image string. | ||
// +optional | ||
Tag string `json:"tag,omitempty"` | ||
|
||
// Define whether the Agent image should support JMX. | ||
// +optional | ||
JMXEnabled bool `json:"jmxEnabled,omitempty"` | ||
|
||
// The Kubernetes pull policy: | ||
// Use Always, Never or IfNotPresent. | ||
PullPolicy *corev1.PullPolicy `json:"pullPolicy,omitempty"` | ||
|
||
// It is possible to specify Docker registry credentials. | ||
// See https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod | ||
// +optional | ||
PullSecrets *[]corev1.LocalObjectReference `json:"pullSecrets,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
package common | ||
|
||
import corev1 "k8s.io/api/core/v1" | ||
|
||
// SecretConfig contains a secret name and an included key. | ||
// +kubebuilder:object:generate=true | ||
type SecretConfig struct { | ||
// SecretName is the name of the secret. | ||
SecretName string `json:"secretName"` | ||
|
||
// KeyName is the key of the secret to use. | ||
// +optional | ||
KeyName string `json:"keyName,omitempty"` | ||
} | ||
|
||
// ConfigMapConfig contains ConfigMap information used to store a configuration file. | ||
// +kubebuilder:object:generate=true | ||
type ConfigMapConfig struct { | ||
// Name is the name of the ConfigMap. | ||
Name string `json:"name,omitempty"` | ||
|
||
// Items maps a ConfigMap data key to a file path mount. | ||
// +listType=map | ||
// +listMapKey=key | ||
// +optional | ||
Items []corev1.KeyToPath `json:"items,omitempty"` | ||
} | ||
|
||
// KubeletConfig contains the kubelet configuration parameters. | ||
// +kubebuilder:object:generate=true | ||
type KubeletConfig struct { | ||
// Host overrides the host used to contact kubelet API (default to status.hostIP). | ||
// +optional | ||
Host *corev1.EnvVarSource `json:"host,omitempty"` | ||
|
||
// TLSVerify toggles kubelet TLS verification. | ||
// Default: true | ||
// +optional | ||
TLSVerify *bool `json:"tlsVerify,omitempty"` | ||
|
||
// HostCAPath is the host path where the kubelet CA certificate is stored. | ||
// +optional | ||
HostCAPath string `json:"hostCAPath,omitempty"` | ||
|
||
// AgentCAPath is the container path where the kubelet CA certificate is stored. | ||
// Default: '/var/run/host-kubelet-ca.crt' if hostCAPath is set, else '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt' | ||
// +optional | ||
AgentCAPath string `json:"agentCAPath,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.