Skip to content

Commit

Permalink
Add Operator 1.5.0 (#1360)
Browse files Browse the repository at this point in the history
* Operator 1.5.0

* Only run operator tests when modifying operator chart
  • Loading branch information
khewonc authored Mar 28, 2024
1 parent baf5c68 commit fb82af4
Show file tree
Hide file tree
Showing 15 changed files with 296 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: run Go tests
run: |
helm dependency build ./charts/datadog-operator
make unit-test
make unit-test-operator
integ-tests:
if: ${{github.event.pull_request.head.repo.full_name == github.repository }}
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ vet:
unit-test:
go test -C test ./... -count=1

.PHONY: unit-test-operator
unit-test-operator:
go test -C test ./datadog-operator -count=1

.PHONY: update-test-baselines
update-test-baselines:
go test -C test ./... -count=1 -args -updateBaselines=true

.PHONY: update-test-baselines-operator
update-test-baselines-operator:
go test -C test ./datadog-operator -count=1 -args -updateBaselines=true

.PHONY: integration-test
integration-test:
go test -C test/integ --tags=integration -count=1 -v
Expand Down
4 changes: 4 additions & 0 deletions charts/datadog-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.6.0

* Update Datadog Operator version to 1.5.0.

## 1.5.2

* Add deprecation warning for `DatadogAgent` `v1alpha1` CRD version.
Expand Down
6 changes: 3 additions & 3 deletions charts/datadog-operator/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: datadog-crds
repository: https://helm.datadoghq.com
version: 1.4.0
digest: sha256:051b894b6d03a9a78919a1549b891592cb1aa82e59386c237b93241bdba7054c
generated: "2024-02-15T15:04:10.736131-05:00"
version: 1.5.0
digest: sha256:0d4930313af68e7bb8e9074b782b5e09fd47201343f25f5bf0c01a3e0d920a47
generated: "2024-03-28T13:57:10.146369-04:00"
6 changes: 3 additions & 3 deletions charts/datadog-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: datadog-operator
version: 1.5.2
appVersion: 1.4.0
version: 1.6.0
appVersion: 1.5.0
description: Datadog Operator
keywords:
- monitoring
Expand All @@ -17,7 +17,7 @@ maintainers:
email: support@datadoghq.com
dependencies:
- name: datadog-crds
version: "=1.4.0"
version: "=1.5.0"
alias: datadogCRDs
repository: https://helm.datadoghq.com
condition: installCRDs
Expand Down
7 changes: 4 additions & 3 deletions charts/datadog-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Operator

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

## Values

Expand All @@ -14,6 +14,7 @@
| collectOperatorMetrics | bool | `true` | Configures an openmetrics check to collect operator metrics |
| containerSecurityContext | object | `{}` | A security context defines privileges and access control settings for a container. |
| datadogAgent.enabled | bool | `true` | Enables Datadog Agent controller |
| datadogAgentProfile.enabled | bool | `false` | If true, enables DatadogAgentProfile controller (beta). Requires v1.5.0+ |
| datadogCRDs.crds.datadogAgents | bool | `true` | Set to true to deploy the DatadogAgents CRD |
| datadogCRDs.crds.datadogMetrics | bool | `true` | Set to true to deploy the DatadogMetrics CRD |
| datadogCRDs.crds.datadogMonitors | bool | `true` | Set to true to deploy the DatadogMonitors CRD |
Expand All @@ -30,7 +31,7 @@
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Define the pullPolicy for Datadog Operator image |
| image.repository | string | `"gcr.io/datadoghq/operator"` | Repository to use for Datadog Operator image |
| image.tag | string | `"1.4.0"` | Define the Datadog Operator version to use |
| image.tag | string | `"1.5.0"` | Define the Datadog Operator version to use |
| imagePullSecrets | list | `[]` | Datadog Operator repository pullSecret (ex: specify docker registry credentials) |
| installCRDs | bool | `true` | Set to true to deploy the Datadog's CRDs |
| introspection.enabled | bool | `false` | If true, enables introspection feature (beta). Requires v1.4.0+ |
Expand Down Expand Up @@ -121,7 +122,7 @@ You can update with the following:
```
helm upgrade \
datadog-operator datadog/datadog-operator \
--set image.tag=1.4.0 \
--set image.tag=1.5.0 \
--set datadogCRDs.migration.datadogAgents.version=v2alpha1 \
--set datadogCRDs.migration.datadogAgents.useCertManager=true \
--set datadogCRDs.migration.datadogAgents.conversionWebhook.enabled=true
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-operator/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ You can update with the following:
```
helm upgrade \
datadog-operator datadog/datadog-operator \
--set image.tag=1.4.0 \
--set image.tag=1.5.0 \
--set datadogCRDs.migration.datadogAgents.version=v2alpha1 \
--set datadogCRDs.migration.datadogAgents.useCertManager=true \
--set datadogCRDs.migration.datadogAgents.conversionWebhook.enabled=true
Expand Down
34 changes: 34 additions & 0 deletions charts/datadog-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,38 @@ rules:
verbs:
- list
- watch
{{- if .Values.enableDatadogAgentProfile }}
- apiGroups:
- ""
resources:
- nodes
verbs:
- patch
- apiGroups:
- datadoghq.com
resources:
- datadogagentprofiles
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- datadoghq.com
resources:
- datadogagentprofiles/status
verbs:
- get
- patch
- update
- apiGroups:
- datadoghq.com
resources:
- datadogagentprofiles/finalizers
verbs:
- update
{{- end }}
{{- end -}}
3 changes: 3 additions & 0 deletions charts/datadog-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ spec:
{{- end }}
{{- if (semverCompare ">=1.4.0" .Values.image.tag) }}
- "-introspectionEnabled={{ .Values.introspection.enabled }}"
{{- end }}
{{- if (semverCompare ">=1.5.0" .Values.image.tag) }}
- "-datadogAgentProfileEnabled={{ .Values.datadogAgentProfile.enabled }}"
{{- end }}
- "-datadogMonitorEnabled={{ .Values.datadogMonitor.enabled }}"
{{- if (semverCompare ">=1.0.0-rc.13" .Values.image.tag) }}
Expand Down
5 changes: 4 additions & 1 deletion charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ image:
# image.repository -- Repository to use for Datadog Operator image
repository: gcr.io/datadoghq/operator
# image.tag -- Define the Datadog Operator version to use
tag: 1.4.0
tag: 1.5.0
# image.pullPolicy -- Define the pullPolicy for Datadog Operator image
pullPolicy: IfNotPresent
# imagePullSecrets -- Datadog Operator repository pullSecret (ex: specify docker registry credentials)
Expand All @@ -61,6 +61,9 @@ maximumGoroutines:
introspection:
# introspection.enabled -- If true, enables introspection feature (beta). Requires v1.4.0+
enabled: false
datadogAgentProfile:
# datadogAgentProfile.enabled -- If true, enables DatadogAgentProfile controller (beta). Requires v1.5.0+
enabled: false
# supportExtendedDaemonset -- If true, supports using ExtendedDaemonSet CRD
supportExtendedDaemonset: "false"
# operatorMetricsEnabled -- Enable forwarding of Datadog Operator metrics and events to Datadog.
Expand Down
112 changes: 111 additions & 1 deletion test/datadog-operator/baseline/DatadogAgent_CRD_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
creationTimestamp: null
name: datadogagents.datadoghq.com
labels:
helm.sh/chart: 'datadogCRDs-1.4.0'
helm.sh/chart: 'datadogCRDs-1.5.0'
app.kubernetes.io/managed-by: 'Helm'
app.kubernetes.io/name: 'datadogCRDs'
app.kubernetes.io/instance: 'datadog-operator'
Expand Down Expand Up @@ -5898,6 +5898,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 @@ -6107,6 +6126,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 @@ -6393,6 +6423,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 fb82af4

Please sign in to comment.