Skip to content

Commit

Permalink
Add crds for operator 1.5.0 (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
khewonc authored Mar 27, 2024
1 parent 9cdfcd3 commit 3edb159
Show file tree
Hide file tree
Showing 15 changed files with 898 additions and 2 deletions.
3 changes: 3 additions & 0 deletions charts/datadog-crds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.5.0
* Update CRDs from Datadog Operator v1.5.0 tag.

## 1.4.0
* Update CRDs from Datadog Operator v1.4.0 tag.

Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: datadog-crds
description: Datadog Kubernetes CRDs chart
version: 1.4.0
version: 1.5.0
appVersion: "1"
keywords:
- monitoring
Expand Down
3 changes: 2 additions & 1 deletion charts/datadog-crds/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog CRDs

![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square) ![AppVersion: 1](https://img.shields.io/badge/AppVersion-1-informational?style=flat-square)
![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![AppVersion: 1](https://img.shields.io/badge/AppVersion-1-informational?style=flat-square)

This chart was designed to allow other "datadog" charts to share `CustomResourceDefinitions` such as the `DatadogMetric`.

Expand All @@ -22,6 +22,7 @@ But the recommended Kubernetes versions are `1.16+`.

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| crds.datadogAgentProfiles | bool | `false` | Set to true to deploy the DatadogAgentProfiles CRD |
| crds.datadogAgents | bool | `false` | Set to true to deploy the DatadogAgents CRD |
| crds.datadogMetrics | bool | `false` | Set to true to deploy the DatadogMetrics CRD |
| crds.datadogMonitors | bool | `false` | Set to true to deploy the DatadogMonitors CRD |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{{- if and .Values.crds.datadogAgentProfiles (semverCompare ">1.21-0" .Capabilities.KubeVersion.GitVersion ) }}

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.1
creationTimestamp: null
name: datadogagentprofiles.datadoghq.com
labels:
helm.sh/chart: '{{ include "datadog-crds.chart" . }}'
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
app.kubernetes.io/name: '{{ include "datadog-crds.name" . }}'
app.kubernetes.io/instance: '{{ .Release.Name }}'
spec:
group: datadoghq.com
names:
kind: DatadogAgentProfile
listKind: DatadogAgentProfileList
plural: datadogagentprofiles
shortNames:
- dap
singular: datadogagentprofile
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: DatadogAgentProfile is the Schema for the datadogagentprofiles API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: DatadogAgentProfileSpec defines the desired state of DatadogAgentProfile
properties:
config:
properties:
override:
additionalProperties:
properties:
containers:
additionalProperties:
properties:
resources:
description: ResourceRequirements describes the compute resource requirements.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
type: object
type: object
type: object
type: object
profileAffinity:
properties:
profileNodeAffinity:
items:
description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: The label key that the selector applies to.
type: string
operator:
description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
type: object
type: object
status:
description: DatadogAgentProfileStatus defines the observed state of DatadogAgentProfile
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{{- if and .Values.crds.datadogAgentProfiles (semverCompare "<=1.21-0" .Capabilities.KubeVersion.GitVersion ) }}

---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.1
creationTimestamp: null
name: datadogagentprofiles.datadoghq.com
labels:
helm.sh/chart: '{{ include "datadog-crds.chart" . }}'
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
app.kubernetes.io/name: '{{ include "datadog-crds.name" . }}'
app.kubernetes.io/instance: '{{ .Release.Name }}'
spec:
group: datadoghq.com
names:
kind: DatadogAgentProfile
listKind: DatadogAgentProfileList
plural: datadogagentprofiles
shortNames:
- dap
singular: datadogagentprofile
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: DatadogAgentProfile is the Schema for the datadogagentprofiles API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: DatadogAgentProfileSpec defines the desired state of DatadogAgentProfile
properties:
config:
properties:
override:
additionalProperties:
properties:
containers:
additionalProperties:
properties:
resources:
description: ResourceRequirements describes the compute resource requirements.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
type: object
type: object
type: object
type: object
profileAffinity:
properties:
profileNodeAffinity:
items:
description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: The label key that the selector applies to.
type: string
operator:
description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
type: object
type: object
status:
description: DatadogAgentProfileStatus defines the observed state of DatadogAgentProfile
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
{{- end }}
110 changes: 110 additions & 0 deletions charts/datadog-crds/templates/datadoghq.com_datadogagents_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5919,6 +5919,25 @@ spec:
format: int32
type: integer
type: object
instrumentation:
properties:
disabledNamespaces:
items:
type: string
type: array
x-kubernetes-list-type: set
enabled:
type: boolean
enabledNamespaces:
items:
type: string
type: array
x-kubernetes-list-type: set
libVersions:
additionalProperties:
type: string
type: object
type: object
unixDomainSocketConfig:
properties:
enabled:
Expand Down Expand Up @@ -6128,6 +6147,17 @@ spec:
wpaController:
type: boolean
type: object
helmCheck:
properties:
collectEvents:
type: boolean
enabled:
type: boolean
valuesAsTags:
additionalProperties:
type: string
type: object
type: object
kubeStateMetricsCore:
properties:
conf:
Expand Down Expand Up @@ -6414,6 +6444,86 @@ spec:
url:
type: string
type: object
fips:
properties:
customFIPSConfig:
properties:
configData:
type: string
configMap:
properties:
items:
items:
properties:
key:
type: string
mode:
format: int32
type: integer
path:
type: string
required:
- key
- path
type: object
type: array
x-kubernetes-list-map-keys:
- key
x-kubernetes-list-type: map
name:
type: string
type: object
type: object
enabled:
type: boolean
image:
properties:
jmxEnabled:
type: boolean
name:
type: string
pullPolicy:
type: string
pullSecrets:
items:
properties:
name:
type: string
type: object
type: array
tag:
type: string
type: object
localAddress:
type: string
port:
format: int32
type: integer
portRange:
format: int32
type: integer
resources:
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
type: object
useHTTPS:
type: boolean
type: object
kubelet:
properties:
agentCAPath:
Expand Down
Loading

0 comments on commit 3edb159

Please sign in to comment.