Skip to content

Commit

Permalink
Add 'datadog-crds' chart as 'datadog' dependency (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
clamoriniere authored Nov 16, 2020
1 parent 07dbc19 commit 596d07f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/ct.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
chart-repos:
- stable=https://charts.helm.sh/stable
- datadog=https://helm.datadoghq.com
helm-extra-args: --timeout 300s
check-version-increment: true
debug: true
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
uses: actions/checkout@v1
- name: Add default helm repo
run: helm repo add stable https://charts.helm.sh/stable && helm repo update
- name: Add datadog helm repo
run: helm repo add datadog https://helm.datadoghq.com && helm repo update
- name: Run kubeval
env:
KUBERNETES_VERSION: ${{ matrix.k8s }}
Expand Down
5 changes: 5 additions & 0 deletions charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Datadog changelog

## 2.5.3

* Add "datadog-crds" chart as dependency. It is used to install the `DatadogMetrics` CRD if needed.

## 2.5.2

* Change `datadog.tags` to a `tpl` value

## 2.5.0
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 2.5.2
version: 2.5.3
appVersion: "7"
description: Datadog Agent
keywords:
Expand Down
4 changes: 3 additions & 1 deletion charts/datadog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog

![Version: 2.5.2](https://img.shields.io/badge/Version-2.5.2-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
![Version: 2.5.3](https://img.shields.io/badge/Version-2.5.3-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)

[Datadog](https://www.datadoghq.com/) is a hosted infrastructure monitoring platform. This chart adds the Datadog Agent to all nodes in your cluster via a DaemonSet. It also optionally depends on the [kube-state-metrics chart](https://github.com/kubernetes/charts/tree/master/stable/kube-state-metrics). For more information about monitoring Kubernetes with Datadog, please refer to the [Datadog documentation website](https://docs.datadoghq.com/agent/basic_agent_usage/kubernetes/).

Expand Down Expand Up @@ -29,6 +29,7 @@ Kubernetes 1.4+ or OpenShift 3.4+, note that:
| Repository | Name | Version |
|------------|------|---------|
| https://charts.helm.sh/stable | kube-state-metrics | =2.8.11 |
| https://helm.datadoghq.com | datadog-crds | =0.1.1 |

## Quick start

Expand Down Expand Up @@ -429,6 +430,7 @@ helm install --name <RELEASE_NAME> \
| clusterChecksRunner.tolerations | list | `[]` | Tolerations for pod assignment |
| clusterChecksRunner.volumeMounts | list | `[]` | Specify additional volumes to mount in the cluster checks container |
| clusterChecksRunner.volumes | list | `[]` | Specify additional volumes to mount in the cluster checks container |
| datadog-crds.crds.datadogMetrics | bool | `true` | Set to true to deploy the DatadogMetrics CRD |
| datadog.apiKey | string | `"<DATADOG_API_KEY>"` | Your Datadog API key ref: https://app.datadoghq.com/account/settings#agent/kubernetes |
| datadog.apiKeyExistingSecret | string | `nil` | Use existing Secret which stores API key instead of creating a new one |
| datadog.apm.enabled | bool | `false` | Enable this to enable APM and tracing, on port 8126 |
Expand Down
7 changes: 5 additions & 2 deletions charts/datadog/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
dependencies:
- name: datadog-crds
repository: https://helm.datadoghq.com
version: 0.1.1
- name: kube-state-metrics
repository: https://charts.helm.sh/stable
version: 2.8.11
digest: sha256:e72aef3e78bbdd838ec25870ee899db9c2500b7da8c0ca8ec435d02880c47366
generated: "2020-11-05T15:20:36.9037656Z"
digest: sha256:35c5ec4a7c5610cf2ff63bcd609293f8d2f8ac4bbc6e07462b9d66251b81b069
generated: "2020-11-16T14:56:38.28858+01:00"
6 changes: 6 additions & 0 deletions charts/datadog/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
dependencies:
- name: datadog-crds
version: "=0.1.1"
repository: https://helm.datadoghq.com
condition: clusterAgent.metricsProvider.useDatadogMetrics
tags:
- install-crds
- name: kube-state-metrics
version: "=2.8.11"
repository: https://charts.helm.sh/stable
Expand Down
5 changes: 5 additions & 0 deletions charts/datadog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,11 @@ clusterChecksRunner:
# clusterChecksRunner.securityContext -- Allows you to overwrite the default PodSecurityContext on the clusterchecks pods.
securityContext: {}

datadog-crds:
crds:
# datadog-crds.crds.datadogMetrics -- Set to true to deploy the DatadogMetrics CRD
datadogMetrics: true

kube-state-metrics:
rbac:
# kube-state-metrics.rbac.create -- If true, create & use RBAC resources
Expand Down

0 comments on commit 596d07f

Please sign in to comment.