Skip to content

Commit

Permalink
Merge branch 'main' into lebauce/sysimage-rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
tbavelier authored Oct 14, 2024
2 parents 9306d70 + bd3847a commit c2ecba3
Show file tree
Hide file tree
Showing 18 changed files with 71 additions and 29 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: support@datadoghq.com
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
4 changes: 4 additions & 0 deletions charts/private-action-runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Datadog changelog

## 0.14.1

* Update private action image version to `v0.1.2-beta`

## 0.14.0

* Add support for `kubernetesActions`.
Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: private-action-runner
description: A Helm chart to deploy the private action runner

type: application
version: 0.14.0
version: 0.14.1
appVersion: "1.22.0"
keywords:
- app builder
Expand Down
4 changes: 2 additions & 2 deletions charts/private-action-runner/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Private Action Runner

![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![AppVersion: v0.1.1-beta](https://img.shields.io/badge/AppVersion-v0.1.1--beta-informational?style=flat-square)
![Version: 0.14.1](https://img.shields.io/badge/Version-0.14.1-informational?style=flat-square) ![AppVersion: v0.1.2-beta](https://img.shields.io/badge/AppVersion-v0.1.2--beta-informational?style=flat-square)

This Helm Chart deploys the Datadog Private Action runner inside a Kubernetes cluster. It allows you to use private actions from the Datadog Workflow and Datadog App Builder products. When deploying this chart, you can give permissions to the runner in order to be able to run Kubernetes actions.

Expand Down Expand Up @@ -42,7 +42,7 @@ helm repo update

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| common.image | object | `{"repository":"us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner","tag":"v0.1.1-beta"}` | Current Datadog Private Action Runner image |
| common.image | object | `{"repository":"us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner","tag":"v0.1.2-beta"}` | Current Datadog Private Action Runner image |
| credentialFiles | list | `[]` | List of credential files to be used by the Datadog Private Action Runner |
| runners[0].config | object | `{"actionsAllowlist":[],"ddBaseURL":"https://app.datadoghq.com","modes":["workflowAutomation","appBuilder"],"port":9016,"privateKey":"CHANGE_ME_PRIVATE_KEY_FROM_CONFIG","urn":"CHANGE_ME_URN_FROM_CONFIG"}` | Configuration for the Datadog Private Action Runner |
| runners[0].config.actionsAllowlist | list | `[]` | List of actions that the Datadog Private Action Runner is allowed to execute |
Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Private Action Runner

![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![AppVersion: v0.1.1-beta](https://img.shields.io/badge/AppVersion-v0.1.1--beta-informational?style=flat-square)
![Version: 0.14.1](https://img.shields.io/badge/Version-0.14.1-informational?style=flat-square) ![AppVersion: v0.1.2-beta](https://img.shields.io/badge/AppVersion-v0.1.2--beta-informational?style=flat-square)

This Helm Chart deploys the Datadog Private Action runner inside a Kubernetes cluster. It allows you to use private actions from the Datadog Workflow and Datadog App Builder products. When deploying this chart, you can give permissions to the runner in order to be able to run Kubernetes actions.

Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ common:
# -- Current Datadog Private Action Runner image
image:
repository: us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner
tag: v0.1.1-beta
tag: v0.1.2-beta

runners:
# runners[0].name -- Name of the Datadog Private Action Runner
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
2 changes: 1 addition & 1 deletion test/private-action-runner/__snapshot__/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
value: nodeless
containers:
- name: runner
image: "us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner:v0.1.1-beta"
image: "us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner:v0.1.2-beta"
imagePullPolicy: IfNotPresent
ports:
- name: http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ spec:
value: nodeless
containers:
- name: runner
image: "us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner:v0.1.1-beta"
image: "us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner:v0.1.2-beta"
imagePullPolicy: IfNotPresent
ports:
- name: http
Expand Down

0 comments on commit c2ecba3

Please sign in to comment.