Skip to content

Commit

Permalink
Update chart for operator v1.9.0 release (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
khewonc authored Oct 10, 2024
1 parent e084c86 commit efa4d66
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 22 deletions.
5 changes: 5 additions & 0 deletions charts/datadog-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.1.0

* Update Datadog Operator version to 1.9.0.
* Add DatadogDashboard configuration.

## 2.0.1

* Make Operator `livenessProbe` configurable.
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: 2.0.0
digest: sha256:39f4d700e87701398d61344f3f816586017a20396c07a4953a60da9c46edc74b
generated: "2024-08-16T15:47:01.022149-04:00"
version: 2.1.0
digest: sha256:8f24ab33303f20421688b071b9fb028c0662795952298300ed4b9a060a4332ac
generated: "2024-10-10T12:48:27.526346-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: 2.0.1
appVersion: 1.8.0
version: 2.1.0
appVersion: 1.9.0
description: Datadog Operator
keywords:
- monitoring
Expand All @@ -17,7 +17,7 @@ maintainers:
email: [email protected]
dependencies:
- name: datadog-crds
version: "=2.0.0"
version: "=2.1.0"
alias: datadogCRDs
repository: https://helm.datadoghq.com
condition: installCRDs
Expand Down
6 changes: 4 additions & 2 deletions charts/datadog-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Operator

![Version: 2.0.1](https://img.shields.io/badge/Version-2.0.1-informational?style=flat-square) ![AppVersion: 1.8.0](https://img.shields.io/badge/AppVersion-1.8.0-informational?style=flat-square)
![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![AppVersion: 1.9.0](https://img.shields.io/badge/AppVersion-1.9.0-informational?style=flat-square)

## Values

Expand All @@ -17,10 +17,12 @@
| 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.datadogDashboards | bool | `false` | Set to true to deploy the DatadogDashboard 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 |
| datadogCRDs.crds.datadogPodAutoscalers | bool | `true` | Set to true to deploy the DatadogPodAutoscalers CRD |
| datadogCRDs.crds.datadogSLOs | bool | `false` | Set to true to deploy the DatadogSLO CRD |
| datadogDashboard.enabled | bool | `false` | Enables the Datadog Dashboard controller |
| datadogMonitor.enabled | bool | `false` | Enables the Datadog Monitor controller |
| datadogSLO.enabled | bool | `false` | Enables the Datadog SLO controller |
| dd_url | string | `nil` | The host of the Datadog intake server to send Agent data to, only set this option if you need the Agent to send data to a custom URL |
Expand All @@ -30,7 +32,7 @@
| image.doNotCheckTag | bool | `false` | Permit skipping operator image tag compatibility with the chart. |
| 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.8.0"` | Define the Datadog Operator version to use |
| image.tag | string | `"1.9.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
2 changes: 1 addition & 1 deletion charts/datadog-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ Check operator image tag version.
{{- if not .Values.image.doNotCheckTag -}}
{{- .Values.image.tag -}}
{{- else -}}
{{ "1.8.0" }}
{{ "1.9.0" }}
{{- end -}}
{{- end -}}
36 changes: 29 additions & 7 deletions charts/datadog-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,9 @@ rules:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
verbs:
- '*'
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- list
- watch
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
Expand Down Expand Up @@ -772,5 +766,33 @@ rules:
- patch
- update
{{- end }}
{{- if .Values.datadogDashboard.enabled }}
- apiGroups:
- datadoghq.com
resources:
- datadogdashboards
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- datadoghq.com
resources:
- datadogdashboards/finalizers
verbs:
- update
- apiGroups:
- datadoghq.com
resources:
- datadogdashboards/status
verbs:
- get
- patch
- 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 @@ -129,6 +129,9 @@ spec:
{{- if (semverCompare ">=1.3.0" $version) }}
- "-datadogSLOEnabled={{ .Values.datadogSLO.enabled }}"
{{- end }}
{{- if (semverCompare ">=1.9.0-0" $version) }}
- "-datadogDashboardEnabled={{ .Values.datadogDashboard.enabled }}"
{{- end }}
{{- if (semverCompare ">=1.7.0" $version) }}
- "-remoteConfigEnabled={{ .Values.remoteConfiguration.enabled }}"
{{- end }}
Expand Down
7 changes: 6 additions & 1 deletion charts/datadog-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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.8.0
tag: 1.9.0
# image.pullPolicy -- Define the pullPolicy for Datadog Operator image
pullPolicy: IfNotPresent
# image.doNotCheckTag -- Permit skipping operator image tag compatibility with the chart.
Expand Down Expand Up @@ -84,6 +84,9 @@ secretBackend:
datadogAgent:
# datadogAgent.enabled -- Enables Datadog Agent controller
enabled: true
datadogDashboard:
# datadogDashboard.enabled -- Enables the Datadog Dashboard controller
enabled: false
datadogMonitor:
# datadogMonitor.enabled -- Enables the Datadog Monitor controller
enabled: false
Expand Down Expand Up @@ -142,6 +145,8 @@ datadogCRDs:
datadogMonitors: true
# datadogCRDs.crds.datadogSLOs -- Set to true to deploy the DatadogSLO CRD
datadogSLOs: false
# datadogCRDs.crds.datadogDashboards -- Set to true to deploy the DatadogDashboard CRD
datadogDashboards: false

# podAnnotations -- Allows setting additional annotations for Datadog Operator PODs
podAnnotations: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
controller-gen.kubebuilder.io/version: v0.14.0
name: datadogagents.datadoghq.com
labels:
helm.sh/chart: 'datadogCRDs-2.0.0'
helm.sh/chart: 'datadogCRDs-2.1.0'
app.kubernetes.io/managed-by: 'Helm'
app.kubernetes.io/name: 'datadogCRDs'
app.kubernetes.io/instance: 'datadog-operator'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
namespace: datadog-agent
labels:
app.kubernetes.io/name: datadog-operator
helm.sh/chart: datadog-operator-2.0.1
helm.sh/chart: datadog-operator-2.1.0
app.kubernetes.io/instance: datadog-operator
app.kubernetes.io/version: "1.8.0"
app.kubernetes.io/version: "1.9.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
Expand All @@ -35,7 +35,7 @@ spec:
serviceAccountName: datadog-operator
containers:
- name: datadog-operator
image: "gcr.io/datadoghq/operator:1.8.0"
image: "gcr.io/datadoghq/operator:1.9.0"
imagePullPolicy: IfNotPresent
env:
- name: WATCH_NAMESPACE
Expand All @@ -59,6 +59,7 @@ spec:
- "-datadogMonitorEnabled=false"
- "-datadogAgentEnabled=true"
- "-datadogSLOEnabled=false"
- "-datadogDashboardEnabled=false"
- "-remoteConfigEnabled=false"
ports:
- name: metrics
Expand Down
2 changes: 1 addition & 1 deletion test/datadog-operator/operator_deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func verifyDeployment(t *testing.T, manifest string) {
assert.Equal(t, 1, len(deployment.Spec.Template.Spec.Containers))
operatorContainer := deployment.Spec.Template.Spec.Containers[0]
assert.Equal(t, v1.PullPolicy("IfNotPresent"), operatorContainer.ImagePullPolicy)
assert.Equal(t, "gcr.io/datadoghq/operator:1.8.0", operatorContainer.Image)
assert.Equal(t, "gcr.io/datadoghq/operator:1.9.0", operatorContainer.Image)
assert.NotContains(t, operatorContainer.Args, "-webhookEnabled=false")
assert.NotContains(t, operatorContainer.Args, "-webhookEnabled=true")
}
Expand Down

0 comments on commit efa4d66

Please sign in to comment.